input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
two_$this_nary_nin_int_array_returns_false_when_field_value_does_not_match_expression ( ) { com . redhat . lightblue . query . QueryExpression q = com . redhat . lightblue . eval . EvalTestContext . queryExpressionFromJson ( "{'field':'field6.$this.$this.nf3','op':'$nin','values':[1,2,3,4]}" ) ; com . redhat . lightblu...
org . junit . Assert . assertFalse ( ctx . getResult ( ) )
testParseNull ( ) { java . util . Date parsed = new org . eluder . coveralls . maven . plugin . util . TimestampParser ( null ) . parse ( null ) ; "<AssertPlaceHolder>" ; } parse ( java . lang . String ) { if ( org . codehaus . plexus . util . StringUtils . isBlank ( timestamp ) ) { return null ; } try { return parser ...
org . junit . Assert . assertNull ( parsed )
testListConverter ( ) { java . lang . String one = "One" ; java . lang . String two = "Two" ; java . lang . String three = "Three" ; java . lang . String fourA = "FourA" ; java . lang . String fourB = "FourB" ; java . lang . String input = ( ( ( ( ( ( ( one + "," ) + two ) + "," ) + three ) + "," ) + fourA ) + "\\," ) ...
org . junit . Assert . assertEquals ( expected , converted )
testGetDifferenceVal1 ( ) { classUnderTest . setDifferenceVal1 ( null ) ; "<AssertPlaceHolder>" ; } getDifferenceVal1 ( ) { return _differenceVal1 ; }
org . junit . Assert . assertNull ( classUnderTest . getDifferenceVal1 ( ) )
testInternalNioBuffer ( ) { java . lang . String sample = randomString ( 1024 ) ; byte [ ] sampleBytes = sample . getBytes ( ) ; io . netty . buffer . ByteBuf byteBuf = io . netty . buffer . Unpooled . directBuffer ( com . ctrip . xpipe . redis . proxy . handler . DEFAULT_BLOCK_SIZE ) ; int idx = byteBuf . writerIndex ...
org . junit . Assert . assertEquals ( sample , byteBuf . toString ( java . nio . charset . Charset . defaultCharset ( ) ) )
testAuthenticate ( ) { org . springframework . security . core . Authentication a = userService . authenticate ( foo . getEmail ( ) , "123456" ) ; "<AssertPlaceHolder>" ; com . github . emailtohl . building . site . service . user . UserServiceImplTest . logger . debug ( gson . toJson ( a ) ) ; } getEmail ( ) { return ...
org . junit . Assert . assertNotNull ( a )
shouldFailWebSocketConnectionWhenServerSendTextFrameWithRsv2 ( ) { final org . apache . mina . core . service . IoHandler handler = context . mock ( org . apache . mina . core . service . IoHandler . class ) ; context . checking ( new org . jmock . Expectations ( ) { { oneOf ( handler ) . sessionCreated ( with ( any ( ...
org . junit . Assert . assertTrue ( connectFuture . isConnected ( ) )
leLengthString ( ) { io . netty . buffer . ByteBuf dest = io . netty . buffer . Unpooled . buffer ( ) ; io . netty . util . AsciiString string = io . netty . util . AsciiString . of ( "test" ) ; com . voxelwind . server . network . mcpe . McpeUtil . writeLELengthAsciiString ( dest , string ) ; "<AssertPlaceHolder>" ; d...
org . junit . Assert . assertEquals ( string , com . voxelwind . server . network . mcpe . McpeUtil . readLELengthAsciiString ( dest ) )
getServiceInfo ( ) { org . apache . ambari . server . state . ServiceInfo si = org . apache . ambari . server . api . services . AmbariMetaInfoTest . metaInfo . getService ( org . apache . ambari . server . api . services . AmbariMetaInfoTest . STACK_NAME_HDP , org . apache . ambari . server . api . services . AmbariMe...
org . junit . Assert . assertNotNull ( si )
shouldReturnReferencedDataActivityContainer ( ) { final org . bonitasoft . studio . model . expression . Expression expr = ExpressionFactory . eINSTANCE . createExpression ( ) ; final org . bonitasoft . studio . model . process . Data refData = ProcessFactory . eINSTANCE . createData ( ) ; refData . setName ( "myData" ...
org . junit . Assert . assertEquals ( container , activity )
WhenTransitionExistsButGuardConditionNotMet_TriggerCanBeFired ( ) { com . github . oxo42 . stateless4j . StateRepresentation < com . github . oxo42 . stateless4j . State , com . github . oxo42 . stateless4j . Trigger > rep = CreateRepresentation ( State . B ) ; rep . addTriggerBehaviour ( new com . github . oxo42 . sta...
org . junit . Assert . assertFalse ( rep . canHandle ( Trigger . X ) )
testSetsEnabled ( ) { com . eclipsesource . tabris . ui . ActionConfiguration configuration = new com . eclipsesource . tabris . ui . ActionConfiguration ( "foo" , com . eclipsesource . tabris . internal . ui . TestAction . class ) . setEnabled ( false ) ; com . eclipsesource . tabris . internal . ui . ActionDescriptor...
org . junit . Assert . assertFalse ( descriptor . isEnabled ( ) )
testMinValues ( ) { final com . spotify . heroic . aggregation . simple . StripedMaxBucket b = new com . spotify . heroic . aggregation . simple . StripedMaxBucket ( 0 ) ; b . updatePoint ( com . spotify . heroic . aggregation . simple . MaxBucketTest . TAGS , new com . spotify . heroic . metric . Point ( 0 , 20.0 ) ) ...
org . junit . Assert . assertEquals ( 20.0 , b . value ( ) , 0.0 )
validateSpecialCharactersDoubleQuoteStart ( ) { java . lang . String fileName = "\"test.txt" ; "<AssertPlaceHolder>" ; } hasSpecialCharacters ( java . lang . String ) { java . util . regex . Pattern special = java . util . regex . Pattern . compile ( org . digidoc4j . utils . Helper . SPECIAL_CHARACTERS ) ; java . util...
org . junit . Assert . assertTrue ( org . digidoc4j . utils . Helper . hasSpecialCharacters ( fileName ) )
getBxDocumentWithGeneralLabelsTest ( ) { pl . edu . icm . cermine . InputStream testStream = pl . edu . icm . cermine . ContentExtractorTest . class . getResourceAsStream ( pl . edu . icm . cermine . ContentExtractorTest . TEST_PDF_1 ) ; pl . edu . icm . cermine . structure . model . BxDocument testDocument ; try { ext...
org . junit . Assert . assertTrue ( pl . edu . icm . cermine . structure . tools . BxModelUtils . areEqual ( expDocument , testDocument ) )
testHasDifferenceInParameters_DifferenceInInt ( ) { final com . igormaznitsa . mindmap . swing . panel . MindMapPanelConfig one = new com . igormaznitsa . mindmap . swing . panel . MindMapPanelConfig ( ) ; final com . igormaznitsa . mindmap . swing . panel . MindMapPanelConfig two = new com . igormaznitsa . mindmap . s...
org . junit . Assert . assertTrue ( one . hasDifferenceInParameters ( two ) )
testQueryParamSpaceBuild ( ) { java . lang . String expected = "http://localhost:8080?name=%20" ; java . net . URI uri = javax . ws . rs . core . UriBuilder . fromUri ( "http://localhost:8080" ) . queryParam ( "name" , "%20" ) . build ( ) ; "<AssertPlaceHolder>" ; } toString ( ) { return name ; }
org . junit . Assert . assertEquals ( expected , uri . toString ( ) )
headNotExit ( ) { int ret = mFsShell . run ( "head" , "/testFile" ) ; "<AssertPlaceHolder>" ; } run ( alluxio . grpc . RunPRequest , io . grpc . stub . StreamObserver ) { alluxio . RpcUtils . call ( alluxio . master . job . JobMasterClientServiceHandler . LOG , ( ( alluxio . RpcUtils . RpcCallableThrowsIOException < al...
org . junit . Assert . assertEquals ( ( - 1 ) , ret )
testHashCode ( ) { "<AssertPlaceHolder>" ; } hashCode ( ) { return expression . hashCode ( ) ; }
org . junit . Assert . assertEquals ( v . hashCode ( ) , person . hashCode ( ) )
decodeExtended ( ) { final java . io . ByteArrayInputStream stream = new java . io . ByteArrayInputStream ( extended ) ; final com . flagstone . transform . coder . SWFDecoder decoder = new com . flagstone . transform . coder . SWFDecoder ( stream ) ; final com . flagstone . transform . coder . Context context = new co...
org . junit . Assert . assertNotNull ( fixture )
should_not_iterate_over_empty_toml ( ) { com . moandjiezana . toml . Toml toml = new com . moandjiezana . toml . Toml ( ) . read ( "" ) ; "<AssertPlaceHolder>" ; } entrySet ( ) { java . util . Set < Map . Entry < java . lang . String , java . lang . Object > > entries = new java . util . LinkedHashSet < Map . Entry < j...
org . junit . Assert . assertThat ( toml . entrySet ( ) , org . hamcrest . Matchers . empty ( ) )
testFindPathAnchorFromBottomIgnoreIsIgnored ( ) { org . batfish . specifier . parboiled . ParserUtils . PathElement ignoreElement = new org . batfish . specifier . parboiled . ParserUtils . PathElement ( "aloha" , 0 , IGNORE ) ; "<AssertPlaceHolder>" ; } findPathAnchorFromBottom ( java . util . List , int ) { if ( leve...
org . junit . Assert . assertThat ( org . batfish . specifier . parboiled . ParserUtils . findPathAnchorFromBottom ( com . google . common . collect . ImmutableList . of ( ignoreElement ) , 0 ) , org . hamcrest . Matchers . equalTo ( java . util . Optional . empty ( ) ) )
testBug49424NoChunking ( ) { org . apache . catalina . startup . Tomcat tomcat = getTomcatInstance ( ) ; org . apache . catalina . Context root = tomcat . addContext ( "" , java . lang . System . getProperty ( "java.io.tmpdir" ) ) ; org . apache . catalina . startup . Tomcat . addServlet ( root , "Bug37794" , new org ....
org . junit . Assert . assertNotNull ( is )
testExpression19 ( ) { java . lang . String expr = "-3<sp>*<sp>-24.23" ; double expected = ( - 3 ) * ( - 24.23 ) ; net . objecthunter . exp4j . Expression e = new net . objecthunter . exp4j . ExpressionBuilder ( expr ) . build ( ) ; "<AssertPlaceHolder>" ; } evaluate ( ) { final net . objecthunter . exp4j . ArrayStack ...
org . junit . Assert . assertTrue ( ( expected == ( e . evaluate ( ) ) ) )
testDiffRootNullToTree ( ) { write ( new java . io . File ( db . getDirectory ( ) . getParent ( ) , "test.txt" ) , "test" ) ; java . io . File folder = new java . io . File ( db . getDirectory ( ) . getParent ( ) , "folder" ) ; org . eclipse . jgit . util . FileUtils . mkdir ( folder ) ; write ( new java . io . File ( ...
org . junit . Assert . assertEquals ( expected , actual )
shouldHandleNonAsciiCharactersWhenCaseSensitive ( ) { content = "<sp>and" ; makeCaseSensitive ( ) ; tokens . consume ( "" ) ; tokens . consume ( "and" ) ; "<AssertPlaceHolder>" ; } hasNext ( ) { return ( index ) < ( size ) ; }
org . junit . Assert . assertThat ( tokens . hasNext ( ) , org . hamcrest . core . Is . is ( false ) )
testInitialContent ( ) { com . xpn . xwiki . doc . XWikiDocument doc = new com . xpn . xwiki . doc . XWikiDocument ( new org . xwiki . model . reference . DocumentReference ( "somewiki" , "somespace" , "somepage" ) ) ; "<AssertPlaceHolder>" ; } getContent ( ) { if ( ( this . getFileItem ( ) ) != null ) { return super ....
org . junit . Assert . assertEquals ( "" , doc . getContent ( ) )
uploadCompressedAndDownload ( ) { final org . apache . xmlrpc . client . XmlRpcClient xmlrpc = getClient ( ) ; final java . lang . String resURI = XmldbURI . ROOT_COLLECTION_URI . append ( "test.bin" ) . toString ( ) ; final org . exist . xmlrpc . Date now = new org . exist . xmlrpc . Date ( java . lang . System . curr...
org . junit . Assert . assertArrayEquals ( binary , data )
isCaseSensitive ( ) { org . jsoup . parser . Tag p1 = org . jsoup . parser . Tag . valueOf ( "P" ) ; org . jsoup . parser . Tag p2 = org . jsoup . parser . Tag . valueOf ( "p" ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ( this ) == obj ) return true ; if ( obj == null ) return false ; if ( ( ge...
org . junit . Assert . assertFalse ( p1 . equals ( p2 ) )
testQuotedTableName ( ) { java . util . Properties props = new java . util . Properties ( ) ; java . sql . Connection conn = java . sql . DriverManager . getConnection ( ( "jdbc:relique:csv:" + ( org . relique . jdbc . csv . TestDoubleQuoting . filePath ) ) , props ) ; java . sql . Statement stmt = conn . createStateme...
org . junit . Assert . assertTrue ( rs1 . next ( ) )
testIndicatieConversieVoorNull ( ) { nl . bzk . brp . model . operationeel . kern . PersistentPersoon dbPersoon = new nl . bzk . brp . model . operationeel . kern . PersistentPersoon ( ) ; dbPersoon . setPersoonIndicaties ( null ) ; nl . bzk . brp . model . logisch . Persoon persoon = nl . bzk . brp . dataaccess . conv...
org . junit . Assert . assertTrue ( persoon . getIndicaties ( ) . isEmpty ( ) )
testEqualsSame ( ) { org . hipparchus . complex . Complex x = new org . hipparchus . complex . Complex ( 3.0 , 4.0 ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ( this ) == other ) { return true ; } if ( other instanceof org . hipparchus . stat . fitting . MultivariateNormalMixtureExpectationMaxi...
org . junit . Assert . assertTrue ( x . equals ( x ) )
testParseHemisphereLon ( ) { "<AssertPlaceHolder>" ; } parseHemisphereLon ( int ) { char ch = getCharValue ( index ) ; net . sf . marineapi . nmea . util . CompassPoint d = net . sf . marineapi . nmea . util . CompassPoint . valueOf ( ch ) ; if ( ( d != ( net . sf . marineapi . nmea . util . CompassPoint . EAST ) ) && ...
org . junit . Assert . assertEquals ( CompassPoint . EAST , instance . parseHemisphereLon ( 3 ) )
ImmutableList_castToList ( ) { org . eclipse . collections . api . list . ImmutableList < java . lang . Integer > immutableList = this . newWith ( 3 , 3 , 3 , 2 , 2 , 1 ) ; java . util . List < java . lang . Integer > list = immutableList . castToList ( ) ; "<AssertPlaceHolder>" ; } castToList ( ) { return this ; }
org . junit . Assert . assertSame ( immutableList , list )
createUser ( ) { updater . createUser ( org . apache . druid . security . authentication . CoordinatorBasicAuthenticatorMetadataStorageUpdaterTest . AUTHENTICATOR_NAME , "druid" ) ; java . util . Map < java . lang . String , org . apache . druid . security . basic . authentication . entity . BasicAuthenticatorUser > ex...
org . junit . Assert . assertEquals ( expectedUserMap , actualUserMap )
testDoubleSHA256 ( ) { org . provebit . merkle . FileMerkle mTree1 = new org . provebit . merkle . FileMerkle ( HashType . DOUBLE_SHA256 ) ; mTree1 . addTracking ( org . provebit . merkle . FileMerkleTest . recursiveDirPath , true ) ; org . provebit . merkle . FileMerkle mTree2 = new org . provebit . merkle . FileMerkl...
org . junit . Assert . assertTrue ( ( ( tree1Root . compareTo ( tree2Root ) ) != 0 ) )
testFetchByPrimaryKeyExisting ( ) { com . liferay . portal . kernel . model . Contact newContact = addContact ( ) ; com . liferay . portal . kernel . model . Contact existingContact = _persistence . fetchByPrimaryKey ( newContact . getPrimaryKey ( ) ) ; "<AssertPlaceHolder>" ; } getPrimaryKey ( ) { return _amImageEntry...
org . junit . Assert . assertEquals ( existingContact , newContact )
shouldSetExternalTaskRetriesWithQueryAsync ( ) { org . camunda . bpm . engine . externaltask . ExternalTaskQuery externalTaskQuery = engineRule . getExternalTaskService ( ) . createExternalTaskQuery ( ) ; org . camunda . bpm . engine . batch . Batch batch = externalTaskService . setRetriesAsync ( null , externalTaskQue...
org . junit . Assert . assertEquals ( 5 , ( ( int ) ( task . getRetries ( ) ) ) )
shouldConvert ( ) { br . com . uol . pagseguro . api . utils . RequestMap expectedMap = new br . com . uol . pagseguro . api . utils . RequestMap ( ) ; expectedMap . putMap ( new java . util . HashMap < java . lang . String , java . lang . String > ( ) { { put ( "installmentQuantity" , "1" ) ; put ( "installmentValue" ...
org . junit . Assert . assertEquals ( expectedMap , map )
testDSLQuery ( ) { service . store ( "00123" , new org . infinispan . test . integration . as . query . Book ( "Functional<sp>Programming<sp>in<sp>Scala" , "manning" , new java . util . Date ( ) ) , true ) ; java . util . List < org . infinispan . test . integration . as . query . Book > results = service . findByPubli...
org . junit . Assert . assertEquals ( 1 , results . size ( ) )
testRank ( ) { double [ ] [ ] d = new double [ ] [ ] { new double [ ] { 1 , 1 , 1 } , new double [ ] { 0 , 0 , 0 } , new double [ ] { 1 , 2 , 3 } } ; org . apache . commons . math4 . linear . RealMatrix m = new org . apache . commons . math4 . linear . Array2DRowRealMatrix ( d ) ; org . apache . commons . math4 . linea...
org . junit . Assert . assertEquals ( 2 , qr . getRank ( 0 ) )
testNoChange ( ) { org . jboss . errai . databinding . client . MockHandler mh1 = new org . jboss . errai . databinding . client . MockHandler ( ) ; support . addPropertyChangeHandler ( mh1 ) ; java . lang . Object eventSource = new java . lang . Object ( ) ; support . notifyHandlers ( new org . jboss . errai . databin...
org . junit . Assert . assertEquals ( 0 , mh1 . getEvents ( ) . size ( ) )
validateNullValue ( ) { cascading . tuple . Fields input = new cascading . tuple . Fields ( "foo" , java . lang . String . class ) ; java . lang . Object [ ] result = com . hotels . plunger . FieldTypeValidator . validateValues ( input , null ) ; "<AssertPlaceHolder>" ; } validateValues ( cascading . tuple . Fields , j...
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( new java . lang . Object [ 1 ] ) )
testNoMatch04 ( ) { boolean matchResult = simpleNamePatternMatcher . matchesEndToEnd ( "a<sp>b" ) ; "<AssertPlaceHolder>" ; } matchesEndToEnd ( java . lang . String ) { return pattern . matcher ( input ) . matches ( ) ; }
org . junit . Assert . assertFalse ( matchResult )
testGetSessionCookie ( ) { org . eclipse . jetty . server . session . SessionHandler sessionHandler = createNiceMock ( org . eclipse . jetty . server . session . SessionHandler . class ) ; javax . servlet . SessionCookieConfig sessionCookieConfig = createNiceMock ( javax . servlet . SessionCookieConfig . class ) ; org ...
org . junit . Assert . assertEquals ( "SESSION_COOKIE" , ambariSessionManager . getSessionCookie ( ) )
testCreate ( ) { long initialCount = activityDao . getCount ( ) ; exerciseCreate ( ) ; "<AssertPlaceHolder>" ; } getCount ( ) { return count ; }
org . junit . Assert . assertEquals ( ( 1 + initialCount ) , activityDao . getCount ( ) )
shouldReturnLabel ( ) { org . neo4j . neode . test . Db . usingSampleDataset ( new org . neo4j . neode . test . Db . WithSampleDataset ( ) { @ org . neo4j . neode . Override public void execute ( org . neo4j . graphdb . GraphDatabaseService db , org . neo4j . graphdb . Node firstNode , org . neo4j . graphdb . Node seco...
org . junit . Assert . assertEquals ( "user" , nodeCollection . labelName ( ) )
testGetAutoIncColumnNoAutoIncColumns ( ) { final com . nearinfinity . honeycomb . mysql . schema . TableSchema schema = new com . nearinfinity . honeycomb . mysql . schema . TableSchema ( com . google . common . collect . ImmutableList . < com . nearinfinity . honeycomb . mysql . schema . ColumnSchema > of ( com . near...
org . junit . Assert . assertEquals ( null , schema . getAutoIncrementColumn ( ) )
testGetIdentifyingInformation ( ) { org . finra . herd . model . api . xml . JobDefinition jobDefinition = jobDefinitionServiceTestHelper . createJobDefinition ( org . finra . herd . service . ACTIVITI_XML_LOG_VARIABLES_NO_REGEX_WITH_CLASSPATH ) ; java . util . List < org . finra . herd . model . api . xml . JobAction ...
org . junit . Assert . assertEquals ( expectedValue , notificationActionService . getIdentifyingInformation ( storageUnitNotificationEventParamsDto , businessObjectDataHelper ) )
testDoubleArray ( ) { double [ ] arr = new double [ ] { 10.1 , 20.1 , 30.1 } ; "<AssertPlaceHolder>" ; } marshalUnmarshal ( java . lang . Object ) { org . apache . ignite . internal . marshaller . optimized . OptimizedObjectOutputStream out = null ; org . apache . ignite . internal . marshaller . optimized . OptimizedO...
org . junit . Assert . assertArrayEquals ( arr , marshalUnmarshal ( arr ) , 0 )
testDescriptions ( ) { openTestURL ( ) ; checkTooltipNotPresent ( ) ; com . vaadin . testbench . elements . TableElement table = $ ( com . vaadin . testbench . elements . TableElement . class ) . first ( ) ; java . util . List < com . vaadin . testbench . elements . CheckBoxElement > checkboxes = $ ( com . vaadin . tes...
org . junit . Assert . assertEquals ( 3 , checkboxes . size ( ) )
testCameraInfo ( ) { java . lang . String productName = edsdk . TestEDSDK . camera . getProductName ( ) ; "<AssertPlaceHolder>" ; System . out . println ( ( ( "Canon<sp>Camera:<sp>" + productName ) + "<sp>is<sp>connected" ) ) ; } getProductName ( ) { return executeNow ( new edsdk . api . commands . GetPropertyCommand ....
org . junit . Assert . assertNotNull ( productName )
testGetDateParser_LocalTimeZone ( ) { java . sql . Date date = new java . sql . Date ( org . apache . phoenix . util . DateUtil . getDateTimeParser ( "yyyy-MM-dd" , PDate . INSTANCE , java . util . TimeZone . getDefault ( ) . getID ( ) ) . parseDateTime ( "1970-01-01" ) ) ; "<AssertPlaceHolder>" ; } valueOf ( org . apa...
org . junit . Assert . assertEquals ( java . sql . Date . valueOf ( "1970-01-01" ) , date )
testGetCurrent_returnsNullOnBackgroundThread ( ) { final java . util . concurrent . atomic . AtomicReference < org . eclipse . swt . widgets . Display > resultCaptor = new java . util . concurrent . atomic . AtomicReference < org . eclipse . swt . widgets . Display > ( display ) ; runInThread ( new java . lang . Runnab...
org . junit . Assert . assertNull ( resultCaptor . get ( ) )
test_UrlBuilder ( ) { java . lang . String baseURL = "http://www.fakex.com/course" ; java . util . Map < java . lang . String , java . lang . String > queryParams = new java . util . HashMap ( ) ; queryParams . put ( "search_query" , "mobile<sp>linux" ) ; java . lang . String expected = "http://www.fakex.com/course?sea...
org . junit . Assert . assertEquals ( expected , output )
testBuildReportChunkSuccessfull4 ( ) { dchunk . setContent ( thdata ) ; instance . buildReportChunk ( dchunk , doc , true ) ; java . util . ArrayList < java . lang . Object [ ] > events = docListener . getCapturedEvents ( ) ; "<AssertPlaceHolder>" ; java . lang . Object [ ] event = events . get ( 0 ) ; confirmParagraph...
org . junit . Assert . assertTrue ( ( ( events . size ( ) ) == 5 ) )
testConvertPositive ( ) { org . openl . rules . convertor . String2BigIntegerConvertor converter = new org . openl . rules . convertor . String2BigIntegerConvertor ( ) ; java . lang . Number result = converter . parse ( "123456789012345678901234567890" , null ) ; "<AssertPlaceHolder>" ; } parse ( org . openl . rules . ...
org . junit . Assert . assertEquals ( new java . math . BigInteger ( "123456789012345678901234567890" ) , result )
testGetMethodInfosForGlobalVariable ( ) { org . uberfire . client . callbacks . Callback < java . util . List < org . kie . soup . project . datamodel . oracle . MethodInfo > > callback = spy ( new org . uberfire . client . callbacks . Callback < java . util . List < org . kie . soup . project . datamodel . oracle . Me...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
testFetchByPrimaryKeyMissing ( ) { long pk = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; com . liferay . friendly . url . model . FriendlyURLEntry missingFriendlyURLEntry = _persistence . fetchByPrimaryKey ( pk ) ; "<AssertPlaceHolder>" ; } fetchByPrimaryKey ( long ) { return com . l...
org . junit . Assert . assertNull ( missingFriendlyURLEntry )
testLegacyPortletWithNoControlPanelEntry ( ) { int initialServiceRegistrationsSize = _hotDeployListener . getServiceRegistrationsSize ( ) ; com . liferay . portal . kernel . deploy . hot . HotDeployEvent hotDeployEvent = getHotDeployEvent ( ( "classpath:/com/liferay/application/list/deploy/hot/test" + "/dependencies/no...
org . junit . Assert . assertEquals ( initialServiceRegistrationsSize , _hotDeployListener . getServiceRegistrationsSize ( ) )
shouldRespondToPostBuildEvents ( ) { org . eclipse . core . resources . IResourceChangeEvent event = new org . eclipse . core . internal . events . ResourceChangeEvent ( this , org . eclipse . core . resources . IResourceChangeEvent . POST_BUILD , org . eclipse . core . resources . IncrementalProjectBuilder . AUTO_BUIL...
org . junit . Assert . assertTrue ( processor . canProcessEvent ( event ) )
testAppend ( ) { org . dresdenocl . tools . codegen . ocl2java . types . OclSequence < java . lang . String > sequence1 ; org . dresdenocl . tools . codegen . ocl2java . types . OclSequence < java . lang . String > sequence2 ; java . lang . String object1 ; java . lang . String object2 ; java . lang . String object3 ; ...
org . junit . Assert . assertEquals ( sequence1 , sequence2 )
isProviderIdentifierUnique_shouldReturnTrueIfTheIdentifierIsABlankString ( ) { org . openmrs . Provider provider = new org . openmrs . Provider ( ) ; provider . setIdentifier ( "" ) ; "<AssertPlaceHolder>" ; } isProviderIdentifierUnique ( org . openmrs . Provider ) { org . hibernate . Criteria criteria = getSession ( )...
org . junit . Assert . assertTrue ( service . isProviderIdentifierUnique ( provider ) )
testReplace3Arg_Initial ( ) { boolean v = map . replace ( 123 , "abc" , "bla" ) ; "<AssertPlaceHolder>" ; } replace ( K , V , V ) { return cache . replace ( passingKeyTransformer . compact ( key ) , passingValueTransformer . compact ( oldValue ) , valueTransformer . compact ( newValue ) ) ; }
org . junit . Assert . assertFalse ( v )
testNonCacheableResponseIsNotCachedAndIsReturnedAsIs ( ) { final org . apache . hc . client5 . http . impl . cache . CacheConfig configDefault = CacheConfig . DEFAULT ; impl = createCachingExecChain ( new org . apache . hc . client5 . http . impl . cache . BasicHttpCache ( new org . apache . hc . client5 . http . impl ...
org . junit . Assert . assertTrue ( org . apache . hc . client5 . http . impl . cache . HttpTestUtils . semanticallyTransparent ( resp1 , result ) )
testIfDerived_MavenPath_3 ( ) { final org . eclipse . xtext . generator . OutputConfiguration output = new org . eclipse . xtext . generator . OutputConfiguration ( "TEST" ) ; output . setOutputDirectory ( "xtend_gen" ) ; final org . eclipse . xtext . generator . OutputConfiguration . SourceMapping sourceMapping = new ...
org . junit . Assert . assertFalse ( this . classNameValidator . isDerived ( file ) )
testTwoIf1 ( ) { instrument ( org . jacoco . core . test . validation . java5 . CyclomaticComplexityTest . TwoIf . class ) ; final org . jacoco . core . analysis . ICounter complexity = analyze ( ) ; "<AssertPlaceHolder>" ; } getInstance ( int , int ) { if ( ( missed <= ( org . jacoco . core . internal . analysis . Cou...
org . junit . Assert . assertEquals ( org . jacoco . core . internal . analysis . CounterImpl . getInstance ( 3 , 0 ) , complexity )
testMissingNamespace ( ) { final java . lang . String annoName = "myanno" ; try { final java . lang . String annotationContent = "{p->duration(p)}" ; type . setAnnotation ( annoName , annotationContent ) ; org . junit . Assert . fail ( "Unknown<sp>namespace<sp>error<sp>expected" ) ; } catch ( org . rapla . entities . I...
org . junit . Assert . assertEquals ( annotationContent , externalRepresentation )
setRepeatingRowsAndColumnsBug29747 ( ) { org . apache . poi . hssf . usermodel . HSSFWorkbook wb = new org . apache . poi . hssf . usermodel . HSSFWorkbook ( ) ; wb . createSheet ( ) ; wb . createSheet ( ) ; org . apache . poi . hssf . usermodel . HSSFSheet sheet2 = wb . createSheet ( ) ; sheet2 . setRepeatingRows ( or...
org . junit . Assert . assertEquals ( 3 , nameRecord . getSheetNumber ( ) )
testParameters ( ) { org . apache . uima . UimaContext context = org . apache . uima . fit . factory . UimaContextFactory . createUimaContext ( DirectoryDataWriterFactory . PARAM_OUTPUT_DIRECTORY , this . outputDirectoryName ) ; org . cleartk . ml . jar . DirectoryDataWriterFactoryTest . Factory factory = new org . cle...
org . junit . Assert . assertNotNull ( factory . getOutputDirectory ( ) )
testGetTotalTimeMillis_1 ( ) { org . audit4j . core . util . StopWatch fixture = new org . audit4j . core . util . StopWatch ( "" ) ; fixture . setKeepTaskList ( true ) ; fixture . start ( "" ) ; halt ( ) ; fixture . stop ( ) ; long result = fixture . getTotalTimeMillis ( ) ; "<AssertPlaceHolder>" ; } getTotalTimeMilli...
org . junit . Assert . assertTrue ( ( result > 0L ) )
init_enabled_true ( ) { javax . xml . ws . Holder < java . lang . Boolean > registered = new javax . xml . ws . Holder ( ) ; new mockit . MockUp < com . google . common . eventbus . EventBus > ( eventBus ) { @ mockit . Mock void register ( java . lang . Object object ) { registered . value = true ; } } ; org . apache ....
org . junit . Assert . assertTrue ( registered . value )
testFetchByPrimaryKeyMissing ( ) { long pk = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; com . liferay . expando . kernel . model . ExpandoValue missingExpandoValue = _persistence . fetchByPrimaryKey ( pk ) ; "<AssertPlaceHolder>" ; } fetchByPrimaryKey ( long ) { return com . liferay...
org . junit . Assert . assertNull ( missingExpandoValue )
testGetLastValidSubscriptionId_OneElementInput ( ) { org . oscm . billingservice . business . calculation . revenue . SubscriptionHistoryEvaluator subHistoryEvaluator = newSubHistoryEvaluator ( newSubscriptionHistory ( 1L , SubscriptionStatus . ACTIVE , ModificationType . MODIFY , "subId" , 5 ) ) ; java . lang . String...
org . junit . Assert . assertEquals ( "subId" , result )
testReleaseOnFileDeletion ( ) { getClusterBuilder ( ) . setNumDatanodes ( 1 ) . setMaxLockedMemory ( org . apache . hadoop . hdfs . server . datanode . fsdataset . impl . BLOCK_SIZE ) . build ( ) ; final java . lang . String METHOD_NAME = org . apache . hadoop . test . GenericTestUtils . getMethodName ( ) ; final org ....
org . junit . Assert . assertThat ( fsd . getCacheUsed ( ) , org . hamcrest . core . Is . is ( ( ( long ) ( org . apache . hadoop . hdfs . server . datanode . fsdataset . impl . BLOCK_SIZE ) ) ) )
testZijnJuisteCategorieenAanwezigMetNietToegestaneElementenAanwezig ( ) { final java . util . List < nl . bzk . migratiebrp . conversie . model . lo3 . syntax . Lo3CategorieWaarde > waarden = java . util . Arrays . asList ( new nl . bzk . migratiebrp . conversie . model . lo3 . syntax . Lo3CategorieWaarde ( nl . bzk . ...
org . junit . Assert . assertEquals ( 3 , ae . getFoutMeldingen ( ) . size ( ) )
testSingleCloseDoc ( ) { org . apache . tika . parser . Parser p = new org . apache . tika . parser . AutoDetectParser ( ) ; org . apache . tika . metadata . Metadata m = new org . apache . tika . metadata . Metadata ( ) ; org . apache . tika . parser . ParseContext c = new org . apache . tika . parser . ParseContext (...
org . junit . Assert . assertEquals ( 1 , ( ( org . apache . tika . parser . pdf . PDFParserTest . EventCountingHandler ) ( h ) ) . getEndDocument ( ) )
testGetSpouseAndDependents ( ) { boolean isArchived = true ; int headClientId1 = 101 ; int headClientId2 = 202 ; org . oscarehr . common . model . JointAdmission jointAdmission1 = new org . oscarehr . common . model . JointAdmission ( ) ; org . oscarehr . common . dao . utils . EntityDataGenerator . generateTestDataFor...
org . junit . Assert . assertTrue ( true )
testReducerForIntWritableKeyAndValue ( ) { org . apache . hadoop . io . IntWritable key = new org . apache . hadoop . io . IntWritable ( 123 ) ; co . nubetech . hiho . dedup . HihoTuple hihoTuple = new co . nubetech . hiho . dedup . HihoTuple ( ) ; hihoTuple . setKey ( key ) ; org . apache . hadoop . io . IntWritable v...
org . junit . Assert . assertEquals ( 1 , context . getCounter ( DedupRecordCounter . OUTPUT ) . getValue ( ) )
testOwnerParam ( ) { final org . apache . hadoop . hdfs . web . resources . OwnerParam p = new org . apache . hadoop . hdfs . web . resources . OwnerParam ( OwnerParam . DEFAULT ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return sb . toString ( ) ; }
org . junit . Assert . assertEquals ( null , p . getValue ( ) )
testGetReviewersWithComma ( ) { dialog . setText ( "a,b," ) ; "<AssertPlaceHolder>" ; } getReviewers ( ) { java . lang . String [ ] reviewers = reviewersEditor . getText ( ) . split ( "," ) ; java . util . List < java . lang . String > result = new java . util . ArrayList < java . lang . String > ( reviewers . length )...
org . junit . Assert . assertEquals ( java . util . Arrays . asList ( "a" , "b" ) , dialog . getReviewers ( ) )
testZippel1_random ( ) { org . apache . commons . math3 . random . RandomGenerator rnd = getRandom ( ) ; cc . redberry . rings . util . RandomDataGenerator rndd = getRandomData ( ) ; cc . redberry . rings . IntegersZp64 ring = Zp64 ( cc . redberry . rings . primes . SmallPrimes . nextPrime ( ( 1 << 20 ) ) ) ; org . apa...
org . junit . Assert . assertEquals ( expected , actual )
testExistingEquals ( ) { try { org . eclipse . xtend2 . lib . StringConcatenation _builder = new org . eclipse . xtend2 . lib . StringConcatenation ( ) ; _builder . append ( "@Data<sp>class<sp>Foo<sp>{" ) ; _builder . newLine ( ) ; _builder . append ( "\t" ) ; _builder . append ( "int<sp>foo" ) ; _builder . newLine ( )...
org . junit . Assert . assertEquals ( java . lang . Boolean . valueOf ( true ) , equals . invoke ( instance , java . lang . Integer . valueOf ( 1 ) ) )
testBuild ( ) { try ( jdk . incubator . sql2 . DataSource ds = dsFactory . builder ( ) . url ( getUrl ( ) ) . username ( getUser ( ) ) . password ( getPassword ( ) ) . build ( ) ) { "<AssertPlaceHolder>" ; } } build ( ) { if ( isBuilt ) { throw new java . lang . IllegalStateException ( "cannot<sp>build<sp>more<sp>than<...
org . junit . Assert . assertNotNull ( ds )
listAllUsers ( ) { java . util . List < java . util . LinkedHashMap < java . lang . String , java . lang . Object > > usersMap = restTemplate . getForObject ( ( ( com . zeusjava . RestFulClientTest . REST_SERVICE_URI ) + "/user/" ) , java . util . List . class ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( usersMap )
testGetRasterWidth ( ) { "<AssertPlaceHolder>" ; } getRasterWidth ( ) { return 0 ; }
org . junit . Assert . assertEquals ( 0 , metadata . getRasterWidth ( ) )
testTruncTimestampValues_Minute ( ) { java . lang . String sqlText = "values<sp>truncate(timestamp('2011-12-26',<sp>'17:13:30'),<sp>'minute')" ; java . sql . ResultSet rs = com . splicemachine . derby . impl . sql . execute . operations . TruncateFunctionIT . spliceClassWatcher . executeQuery ( sqlText ) ; java . lang ...
org . junit . Assert . assertEquals ( ( ( "\n" + sqlText ) + "\n" ) , expected , TestUtils . FormattedResult . ResultFactory . toStringUnsorted ( rs ) )
testDelete ( ) { java . lang . String grammar = "grammar<sp>T;\n" + ( ( ( ( "options<sp>{output=AST;}\n" + "a<sp>:<sp>ID<sp>INT<sp>-><sp>;\n" ) + "ID<sp>:<sp>\'a\'..\'z\'+<sp>;\n" ) + "INT<sp>:<sp>\'0\'..\'9\'+;\n" ) + "WS<sp>:<sp>(\'<sp>\'|\'\\n\')<sp>{$channel=HIDDEN;}<sp>;\n" ) ; java . lang . String found = execPar...
org . junit . Assert . assertEquals ( "" , found )
rangeSearch ( ) { final org . lmdbjava . Dbi < java . nio . ByteBuffer > db = env . openDbi ( org . lmdbjava . TestUtils . DB_1 , org . lmdbjava . DbiFlags . MDB_CREATE ) ; final java . nio . ByteBuffer key = allocateDirect ( env . getMaxKeySize ( ) ) ; key . put ( "cherry" . getBytes ( org . lmdbjava . UTF_8 ) ) . fli...
org . junit . Assert . assertEquals ( 3 , keysFound . size ( ) )
testEntity ( ) { org . apache . cayenne . map . Attribute a = new org . apache . cayenne . map . MockAttribute ( ) ; org . apache . cayenne . map . Entity tstEntity = new org . apache . cayenne . map . MockEntity ( ) ; a . setEntity ( tstEntity ) ; "<AssertPlaceHolder>" ; } getEntity ( ) { return entity ; }
org . junit . Assert . assertSame ( tstEntity , a . getEntity ( ) )
shouldGiveErrorsIfBillDatesNotProper ( ) { billRegister . setBillDate ( org . egov . infra . utils . DateUtils . getDate ( "20-02-2011" , "dd-MM-yyyy" ) ) ; billRegister . setPartyBillDate ( org . egov . infra . utils . DateUtils . getDate ( "20-02-2099" , "dd-MM-yyyy" ) ) ; when ( financialYearHibernateDAO . getFinanc...
org . junit . Assert . assertEquals ( 3 , errors . size ( ) )
testGetGroup ( ) { final uk . gov . gchq . gaffer . data . element . Edge edge = new uk . gov . gchq . gaffer . data . element . Edge . Builder ( ) . group ( TestGroups . ENTITY ) . source ( "source" ) . dest ( "destination" ) . directed ( true ) . build ( ) ; final byte [ ] serialisedEdge = elementSerialiser . seriali...
org . junit . Assert . assertEquals ( TestGroups . ENTITY , elementSerialiser . getGroup ( serialisedEdge ) )
shouldIterativelyCheckEachDownloaderToSeeIfItWillReturnAnyFiles ( ) { com . facebook . buck . file . downloader . Downloader noMatch = org . easymock . EasyMock . createNiceMock ( "noMatch" , com . facebook . buck . file . downloader . Downloader . class ) ; com . facebook . buck . file . downloader . Downloader except...
org . junit . Assert . assertTrue ( result )
testAndDisjoint ( ) { org . locationtech . jts . geom . Coordinate [ ] coords = new org . locationtech . jts . geom . Coordinate [ ] { new org . locationtech . jts . geom . Coordinate ( 0 , 0 ) , new org . locationtech . jts . geom . Coordinate ( 10 , 10 ) } ; org . locationtech . jts . geom . LineString lineString = n...
org . junit . Assert . assertEquals ( new org . locationtech . jts . geom . Envelope ( 50 , 150 , 50 , 150 ) , env )
testGetInfo ( ) { com . kyrioslab . jffmpegw . attributes . parser . MultimediaInfo info = com . kyrioslab . jffmpegw . attributes . parser . InfoParser . getInfo ( "/home/wizzard/diploma_work/dsvc/ffmpeg/ffprobe" , this . getClass ( ) . getResource ( "/u4.mp4" ) . getPath ( ) ) ; "<AssertPlaceHolder>" ; } getInfo ( ja...
org . junit . Assert . assertNotNull ( info )
testReplaceButEscapeDoubleDollarProperties ( ) { java . util . Properties custom = new java . util . Properties ( ) ; custom . setProperty ( "foo" , "bar" ) ; custom . setProperty ( "boo" , "foo" ) ; final java . lang . String original = "I<sp>have<sp>a<sp>${foo}<sp>and<sp>a<sp>${baz:wiz},<sp>but<sp>not<sp>a<sp>$${foo}...
org . junit . Assert . assertEquals ( expected , actual )
runInTransactionShouldCallFunctionAndRollbackOnCommitConflict ( ) { final com . spotify . styx . storage . DatastoreStorage storage = new com . spotify . styx . storage . DatastoreStorage ( datastore , java . time . Duration . ZERO , storageTransactionFactory , executor ) ; final com . spotify . styx . storage . Checke...
org . junit . Assert . assertThat ( e , org . hamcrest . Matchers . is ( expectedException ) )
testGetLocalizedStringNullLocale ( ) { org . pentaho . metadata . model . concept . types . LocalizedString s = new org . pentaho . metadata . model . concept . types . LocalizedString ( ) ; "<AssertPlaceHolder>" ; } getLocalizedString ( java . lang . String ) { java . lang . String str = getString ( locale ) ; java . ...
org . junit . Assert . assertNull ( s . getLocalizedString ( null ) )
limitingNullGivesNull ( ) { java . lang . String result = com . khartec . waltz . common . StringUtilities . limit ( null , 10 ) ; "<AssertPlaceHolder>" ; } limit ( java . lang . String , int ) { if ( str == null ) return null ; int howMuch = java . lang . Math . min ( maxLength , str . length ( ) ) ; return str . subs...
org . junit . Assert . assertNull ( result )
test_readUnsignedShort1024 ( ) { java . nio . ByteBuffer buf = java . nio . ByteBuffer . allocate ( 2 ) ; buf . putShort ( ( ( short ) ( 1024 ) ) ) ; buf . rewind ( ) ; org . kairosdb . util . ByteBufferDataInput dataInput = new org . kairosdb . util . ByteBufferDataInput ( buf ) ; "<AssertPlaceHolder>" ; } readUnsigne...
org . junit . Assert . assertEquals ( 1024 , dataInput . readUnsignedShort ( ) )