input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testExtractDayOfYearDate ( ) { java . lang . String sqlText = ( "select<sp>d,<sp>EXTRACT(DAYOFYEAR<sp>FROM<sp>d)<sp>as<sp>\"DAYOFYEAR\"<sp>from<sp>" + ( com . splicemachine . derby . utils . SpliceDateFunctionsIT . tableWatcherI ) ) + "<sp>order<sp>by<sp>d" ; try ( com . splicemachine . derby . utils . ResultSet rs = m...
org . junit . Assert . assertEquals ( ( ( "\n" + sqlText ) + "\n" ) , expected , TestUtils . FormattedResult . ResultFactory . toStringUnsorted ( rs ) )
testSelectClasses ( ) { org . qualipso . factory . jabuti . test . JabutiServiceTest . logger . info ( "testSelectClassesAndGetRequiredElements()" ) ; try { java . lang . String user = "SA" ; org . qualipso . factory . jabuti . test . MyStringArray classes = new org . qualipso . factory . jabuti . test . MyStringArray ...
org . junit . Assert . assertEquals ( message , "The<sp>classes<sp>were<sp>instrumented." )
testParserLexerCombo ( ) { org . antlr . v4 . misc . Graph < java . lang . String > g = new org . antlr . v4 . misc . Graph < java . lang . String > ( ) ; g . addEdge ( "JavaLexer.tokens" , "JavaLexer.g4" ) ; g . addEdge ( "JavaParser.g4" , "JavaLexer.tokens" ) ; g . addEdge ( "Def.g4" , "JavaLexer.tokens" ) ; g . addE...
org . junit . Assert . assertEquals ( expecting , result )
testRevoke ( ) { java . lang . String cn = java . util . UUID . randomUUID ( ) . toString ( ) ; org . bouncycastle . pkcs . PKCS10CertificationRequest csr = generateCSR ( cn ) ; org . apache . hadoop . yarn . server . resourcemanager . security . RMAppSecurityActions actor = org . apache . hadoop . yarn . server . reso...
org . junit . Assert . assertEquals ( 200 , response )
testFalse ( ) { this . verifier . withCreateActualResults ( false ) . verify ( TableTestUtils . TABLE_NAME , TableTestUtils . ACTUAL ) ; this . verifier . succeeded ( this . description . get ( ) ) ; "<AssertPlaceHolder>" ; } getActualFile ( ) { java . io . File dir = this . directoryStrategy . getActualDirectory ( thi...
org . junit . Assert . assertFalse ( this . verifier . getActualFile ( ) . exists ( ) )
testGetMappingName ( ) { java . lang . String name = "name" ; when ( delegate . getMappingName ( ) ) . thenReturn ( name ) ; "<AssertPlaceHolder>" ; } getMappingName ( ) { return delegate . getMappingName ( ) ; }
org . junit . Assert . assertEquals ( name , mapping . getMappingName ( ) )
testEqualsNull ( ) { org . apache . cayenne . ObjectId o = org . apache . cayenne . ObjectId . of ( "T" , "ARTIST_ID" , 42 ) ; "<AssertPlaceHolder>" ; } of ( java . lang . String , java . lang . String , java . lang . Object ) { if ( value instanceof java . lang . Number ) { return new org . apache . cayenne . ObjectId...
org . junit . Assert . assertNotNull ( o )
testSerializesAndDeserializes ( ) { org . calrissian . mango . domain . Attribute attribute = new org . calrissian . mango . domain . Attribute ( "key" , "val" , com . google . common . collect . ImmutableMap . of ( "metaKey" , "metaVal" ) ) ; byte [ ] serialized = serialize ( new org . calrissian . accumulorecipes . c...
org . junit . Assert . assertEquals ( attribute , actual )
createBillingDataForOrganization_EmptyList ( ) { org . oscm . billingservice . business . model . billingresult . BillingDetailsType doc = createBillingDataForOrganization ( 1 , 1 , 10 , 20 , 0 , new org . oscm . domobjects . BillingResult ( ) , true , new java . util . ArrayList < org . oscm . domobjects . Subscriptio...
org . junit . Assert . assertNull ( doc )
checkMessageMethod ( ) { java . lang . String str = "test" ; info . smart_tools . smartactors . feature_loading_system . interfaces . ifilesystem_tracker . exception . FilesystemTrackerStartupException exception = new info . smart_tools . smartactors . feature_loading_system . interfaces . ifilesystem_tracker . excepti...
org . junit . Assert . assertEquals ( exception . getMessage ( ) , str )
testGroupByError ( ) { java . lang . String sql = "select<sp>count(clickcount_ag)<sp>as<sp>\"clickcount_ag\",<sp>testDim<sp>from<sp>tabletest<sp>group<sp>by<sp>testDim<sp>order<sp>by<sp>count(clickcount_ag)<sp>limit<sp>100" ; com . ebay . pulsar . analytics . query . sql . SQLTranslator sqlTranslator = org . mockito . ...
org . junit . Assert . assertTrue ( true )
testGeenMeldingOmdatKindZelfdeNaamHeeftAlsBroerEnZus ( ) { final nl . bzk . brp . model . hisvolledig . impl . kern . PersoonHisVolledigImpl ouder1 = new nl . bzk . brp . model . hisvolledig . impl . kern . PersoonHisVolledigImpl ( new nl . bzk . brp . model . algemeen . stamgegeven . kern . SoortPersoonAttribuut ( nl ...
org . junit . Assert . assertEquals ( 0 , resultaat . size ( ) )
testPlainTextToDeveloper ( ) { java . util . List < java . lang . String > errors = messageManager . processMessage ( org . sagebionetworks . repo . manager . MessageManagerImplSESTest . MESSAGE_ID_PLAIN_TEXT , mockProgressCallback ) ; "<AssertPlaceHolder>" ; } toString ( ) { double percent = ( ( ( double ) ( currentIn...
org . junit . Assert . assertEquals ( errors . toString ( ) , 0 , errors . size ( ) )
existingDocumentNonTerminalFromUIDeprecatedCheckEscaping ( ) { org . xwiki . model . reference . DocumentReference documentReference = new org . xwiki . model . reference . DocumentReference ( "xwiki" , java . util . Arrays . asList ( "Main" ) , "WebHome" ) ; com . xpn . xwiki . doc . XWikiDocument document = mock ( co...
org . junit . Assert . assertNull ( result )
registered_device_with_rpk_to_server_with_x509cert ( ) { helper . createServerWithX509Cert ( ) ; helper . server . start ( ) ; boolean useServerCertifcatePublicKey = true ; helper . createRPKClient ( useServerCertifcatePublicKey ) ; helper . client . start ( ) ; helper . getSecurityStore ( ) . add ( org . eclipse . les...
org . junit . Assert . assertNotNull ( helper . getCurrentRegistration ( ) )
testParseNegativeY ( ) { java . lang . String source = ( "{1" + ( getDecimalCharacter ( ) ) ) + "2323}" ; org . apache . commons . math3 . geometry . euclidean . oned . Vector1D expected = new org . apache . commons . math3 . geometry . euclidean . oned . Vector1D ( 1.2323 ) ; org . apache . commons . math3 . geometry ...
org . junit . Assert . assertEquals ( expected , actual )
testRootBean ( ) { final org . apache . commons . beanutils2 . bugs . RootBean bean = new org . apache . commons . beanutils2 . bugs . FirstChildBean ( ) ; final java . lang . Class < ? > propertyType = org . apache . commons . beanutils2 . PropertyUtils . getPropertyType ( bean , "file[0]" ) ; "<AssertPlaceHolder>" ; ...
org . junit . Assert . assertEquals ( java . lang . String . class . getName ( ) , propertyType . getName ( ) )
testMinusOneParallelRulesBuildThresholdConfiguration ( ) { try { java . lang . System . getProperties ( ) . put ( ParallelRulesBuildThresholdOption . PROPERTY_NAME , "-1" ) ; org . drools . compiler . builder . impl . KnowledgeBuilderConfigurationImpl kbConfigImpl = new org . drools . compiler . builder . impl . Knowle...
org . junit . Assert . assertThat ( kbConfigImpl . getParallelRulesBuildThreshold ( ) , org . hamcrest . CoreMatchers . is ( ( - 1 ) ) )
appendStringWithSeparatorAndStartAndEnd ( ) { org . eclipse . collections . api . RichIterable < java . lang . Object > collection = this . newWith ( 1 , 2 , 3 ) ; java . lang . Appendable builder = new java . lang . StringBuilder ( ) ; collection . appendString ( builder , "[" , ",<sp>" , "]" ) ; "<AssertPlaceHolder>"...
org . junit . Assert . assertEquals ( collection . toString ( ) , builder . toString ( ) )
isValidAnonymous ( ) { boolean ok = container . isValid ( "anonymous" , "anonymous" ) ; "<AssertPlaceHolder>" ; } isValid ( java . lang . String , java . lang . String ) { if ( ( "anonymous" . equals ( principal ) ) && ( "anonymous" . equals ( ticket ) ) ) return true ; org . apache . zeppelin . ticket . TicketContaine...
org . junit . Assert . assertTrue ( ok )
testGetId ( ) { net . bluemix . todo . model . CloudantRow row = new net . bluemix . todo . model . CloudantRow ( ) ; row . setId ( "123" ) ; "<AssertPlaceHolder>" ; } getId ( ) { return id ; }
org . junit . Assert . assertEquals ( "123" , row . getId ( ) )
return_expression_name_when_use_constructor_with_message ( ) { final org . bonitasoft . engine . expression . exception . SExpressionEvaluationException sExpressionEvaluationException = new org . bonitasoft . engine . expression . exception . SExpressionEvaluationException ( message , expressionName ) ; final java . la...
org . junit . Assert . assertEquals ( expressionName , result )
testGlobal ( ) { "<AssertPlaceHolder>" ; } global ( ) { synchronized ( ch . cyberduck . core . threading . BackgroundActionRegistry . lock ) { if ( null == ( ch . cyberduck . core . threading . BackgroundActionRegistry . global ) ) { ch . cyberduck . core . threading . BackgroundActionRegistry . global = new ch . cyber...
org . junit . Assert . assertSame ( ch . cyberduck . core . threading . BackgroundActionRegistry . global ( ) , ch . cyberduck . core . threading . BackgroundActionRegistry . global ( ) )
testDatanodeRollingUpgradeWithFinalize ( ) { try { startCluster ( ) ; org . apache . hadoop . fs . Path testFile1 = new org . apache . hadoop . fs . Path ( ( ( "/" + ( org . apache . hadoop . test . GenericTestUtils . getMethodName ( ) ) ) + ".01.dat" ) ) ; org . apache . hadoop . fs . Path testFile2 = new org . apache...
org . junit . Assert . assertFalse ( isTrashRootPresent ( ) )
testSub ( ) { com . pack . one . Calculator calculator = new com . pack . one . Calculator ( ) ; "<AssertPlaceHolder>" ; } sub ( float , float ) { return a - b ; }
org . junit . Assert . assertEquals ( 10 , calculator . sub ( 15 , 5 ) , ( - 1 ) )
testGreaterThanOrEquals2 ( ) { com . liferay . dynamic . data . mapping . expression . internal . DDMExpressionImpl < java . lang . Boolean > ddmExpression = createDDMExpression ( "1<sp>>=<sp>2" ) ; "<AssertPlaceHolder>" ; } evaluate ( ) { java . util . stream . Stream < java . lang . reflect . Method > methodStream = ...
org . junit . Assert . assertFalse ( ddmExpression . evaluate ( ) )
getLineFeedSeparatedList_whenConstructedWithALineFeedSeparatedListOfLocations_shouldReturnLineFeedSeparatedString ( ) { org . jkiss . dbeaver . ext . greenplum . model . GreenplumExternalTableUriLocationsHandler handler = new org . jkiss . dbeaver . ext . greenplum . model . GreenplumExternalTableUriLocationsHandler ( ...
org . junit . Assert . assertEquals ( "location1\nlocation2" , handler . getLineFeedSeparatedList ( ) )
testLeeg ( ) { final nl . bzk . brp . util . hisvolledig . kern . PersoonHisVolledigImplBuilder builder = new nl . bzk . brp . util . hisvolledig . kern . PersoonHisVolledigImplBuilder ( nl . bzk . brp . model . algemeen . stamgegeven . kern . SoortPersoon . INGESCHREVENE ) ; final nl . bzk . brp . model . hisvolledig ...
org . junit . Assert . assertNull ( brpBijhoudingsaard )
testDoCollectStream ( ) { final java . util . Collection < eu . toolchain . concurrent . Stage < java . lang . Object > > futures = com . google . common . collect . ImmutableList . of ( f1 , f2 ) ; doReturn ( completable ) . when ( underTest ) . completable ( ) ; doNothing ( ) . when ( underTest ) . bindSignals ( comp...
org . junit . Assert . assertEquals ( completable , underTest . doStreamCollect ( futures , consumer , supplier ) )
testConstructor ( ) { org . openhealthtools . mdht . uml . cda . cdt . operations . ReasonForVisitSectionOperations obj = new org . openhealthtools . mdht . uml . cda . cdt . operations . ReasonForVisitSectionOperations ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( true )
testEmptyServiceList ( ) { final org . osgi . framework . BundleContext context = mock ( org . osgi . framework . BundleContext . class ) ; org . osgi . framework . ServiceReference [ ] refs = new org . osgi . framework . ServiceReference [ ] { } ; when ( context . getServiceReferences ( isA ( java . lang . String . cl...
org . junit . Assert . assertThat ( matches . isEmpty ( ) , org . hamcrest . Matchers . is ( true ) )
testFirstWithNullInput ( ) { com . mitchellbosecke . pebble . PebbleEngine pebble = new com . mitchellbosecke . pebble . PebbleEngine . Builder ( ) . loader ( new com . mitchellbosecke . pebble . loader . StringLoader ( ) ) . strictVariables ( false ) . build ( ) ; com . mitchellbosecke . pebble . template . PebbleTemp...
org . junit . Assert . assertEquals ( "" , writer . toString ( ) )
shouldNotBeDiagnosticMode ( ) { java . io . File file = com . oracle . bedrock . runtime . console . FileWriterApplicationConsoleTest . temporaryFolder . newFile ( ) ; com . oracle . bedrock . runtime . console . FileWriterApplicationConsole console = new com . oracle . bedrock . runtime . console . FileWriterApplicati...
org . junit . Assert . assertThat ( console . isDiagnosticsEnabled ( ) , org . hamcrest . CoreMatchers . is ( false ) )
testLongReversed ( ) { for ( int n = 1 ; n < 1000 ; n ++ ) { final int N = n ; io . reactivex . Flowable < java . lang . Integer > a = io . reactivex . Flowable . range ( 1 , n ) . map ( new io . reactivex . functions . Function < java . lang . Integer , java . lang . Integer > ( ) { @ com . github . davidmoten . rx2 ....
org . junit . Assert . assertTrue ( equals )
testFindByPrimaryKeyExisting ( ) { com . liferay . portal . workflow . kaleo . model . KaleoDefinition newKaleoDefinition = addKaleoDefinition ( ) ; com . liferay . portal . workflow . kaleo . model . KaleoDefinition existingKaleoDefinition = _persistence . findByPrimaryKey ( newKaleoDefinition . getPrimaryKey ( ) ) ; ...
org . junit . Assert . assertEquals ( existingKaleoDefinition , newKaleoDefinition )
instantiation ( ) { int sum = com . m3 . scalaflavor4j . Seq . apply ( "aaa" , "bbbb" , "ccc" ) . foldRight ( 0 , new com . m3 . scalaflavor4j . FoldRightF2 < java . lang . String , java . lang . Integer > ( ) { public com . m3 . scalaflavor4j . Integer apply ( java . lang . String str , java . lang . Integer sum ) { r...
org . junit . Assert . assertThat ( sum , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( 10 ) ) )
testCurrentSchemaSerializerForLazilyRegisteredStateSerializerProvider ( ) { org . apache . flink . runtime . testutils . statemigration . TestType . V1TestTypeSerializer serializer = new org . apache . flink . runtime . testutils . statemigration . TestType . V1TestTypeSerializer ( ) ; org . apache . flink . runtime . ...
org . junit . Assert . assertTrue ( ( ( testProvider . currentSchemaSerializer ( ) ) instanceof org . apache . flink . runtime . testutils . statemigration . TestType . V1TestTypeSerializer ) )
testRemove ( ) { gatewayResource . remove ( ResourceType . EXPERIMENT , testExpID ) ; "<AssertPlaceHolder>" ; } isExists ( org . apache . airavata . registry . core . experiment . catalog . ResourceType , java . lang . Object ) { javax . persistence . EntityManager em = null ; try { switch ( type ) { case GATEWAY_WORKE...
org . junit . Assert . assertFalse ( gatewayResource . isExists ( ResourceType . EXPERIMENT , testExpID ) )
forLoop ( ) { com . gs . collections . api . set . sorted . ImmutableSortedSet < java . lang . Integer > set = this . classUnderTest ( ) ; for ( java . lang . Integer each : set ) { "<AssertPlaceHolder>" ; } } classUnderTest ( ) { return SortedBags . immutable . empty ( ) ; }
org . junit . Assert . assertNotNull ( each )
testIncorrectPublicKey ( ) { org . kaaproject . kaa . server . bootstrap . service . security . BootstrapFileKeyStoreService ks = new org . kaaproject . kaa . server . bootstrap . service . security . BootstrapFileKeyStoreService ( ) ; "<AssertPlaceHolder>" ; ks . setPublicKeyLocation ( org . kaaproject . kaa . server ...
org . junit . Assert . assertNotNull ( ks )
testWriteReadRoundtrip ( ) { final org . apache . flink . runtime . state . KeyGroupRange keyRange = new org . apache . flink . runtime . state . KeyGroupRange ( 0 , 2 ) ; org . apache . flink . runtime . state . KeyedStateCheckpointOutputStream stream = org . apache . flink . runtime . state . KeyedStateCheckpointOutp...
org . junit . Assert . assertNotNull ( fullHandle )
testGetFilesInExistingDir ( ) { java . lang . String file = this . getClass ( ) . getClassLoader ( ) . getResource ( "." ) . getFile ( ) ; org . sonar . plugins . tsql . rules . files . BaseReportsProvider cut = new org . sonar . plugins . tsql . rules . files . BaseReportsProvider ( ".xml" ) ; java . io . File [ ] fil...
org . junit . Assert . assertEquals ( 5 , files . length )
testString ( ) { java . lang . String [ ] vals = new java . lang . String [ ] { "foo" , "bazz" 0 , "bazz" } ; int [ ] expectedLengths = new int [ ] { 5 , 8 , 6 } ; for ( org . apache . hadoop . hbase . util . Order ord : new org . apache . hadoop . hbase . util . Order [ ] { Order . ASCENDING , Order . DESCENDING } ) {...
org . junit . Assert . assertEquals ( java . lang . String . format ( "bazz" 1 , sortedVals [ i ] , decoded , ord ) , sortedVals [ i ] , decoded )
validate_missingSampleValue_returnFalse ( ) { meterValue . setSampledValue ( null ) ; boolean isValid = meterValue . validate ( ) ; "<AssertPlaceHolder>" ; } validate ( ) { return true ; }
org . junit . Assert . assertThat ( isValid , org . hamcrest . CoreMatchers . is ( false ) )
testEquals ( ) { org . jfree . data . time . Day day1 = new org . jfree . data . time . Day ( 29 , org . jfree . date . MonthConstants . MARCH , 2002 ) ; org . jfree . data . time . Hour hour1 = new org . jfree . data . time . Hour ( 15 , day1 ) ; org . jfree . data . time . Minute minute1 = new org . jfree . data . ti...
org . junit . Assert . assertTrue ( minute1 . equals ( minute2 ) )
testDynamicQueryByProjectionMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . portal . workflow . kaleo . model . KaleoLog . class , _dynamicQueryClassLoader ) ; dynamicQuery . setPro...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
toSortedArray ( ) { super . toSortedArray ( ) ; com . gs . collections . api . set . primitive . ImmutableByteSet set = this . newWith ( ( ( byte ) ( 0 ) ) , ( ( byte ) ( 1 ) ) , ( ( byte ) ( 31 ) ) ) ; "<AssertPlaceHolder>" ; } toSortedArray ( ) { int [ ] array = this . toArray ( ) ; java . util . Arrays . sort ( arra...
org . junit . Assert . assertArrayEquals ( new byte [ ] { ( ( byte ) ( 0 ) ) , ( ( byte ) ( 1 ) ) , ( ( byte ) ( 31 ) ) } , set . toSortedArray ( ) )
testSortingWithOptions2 ( ) { io . anserini . eval . ResultDoc d1 = new io . anserini . eval . ResultDoc ( "1" , 1.0001 , true , false ) ; io . anserini . eval . ResultDoc d2 = new io . anserini . eval . ResultDoc ( "010" , 1.0001 , true , false ) ; io . anserini . eval . ResultDoc d3 = new io . anserini . eval . Resul...
org . junit . Assert . assertArrayEquals ( expected , sorted )
setFrontRemovedTest ( ) { org . threadly . concurrent . collections . ConcurrentArrayList . DataSet < java . lang . Integer > result = org . threadly . concurrent . collections . ConcurrentArrayListDataSetTest . removedFromFront . set ( 9 , 100 ) . set ( 5 , 0 ) . set ( 0 , 10 ) ; java . lang . Integer [ ] expectedResu...
org . junit . Assert . assertTrue ( result . equals ( org . threadly . concurrent . collections . ConcurrentArrayListDataSetTest . makeDataSet ( expectedResult , 0 , expectedResult . length ) ) )
testTenantDeployer ( ) { org . alfresco . repo . content . ContentStore contentStore = new org . alfresco . repo . tenant . MultiTAdminServiceImplTest . ConcreteTenantDeployer ( ) ; org . alfresco . repo . tenant . TenantDeployer tenantDeployer = tenantAdmin . tenantDeployer ( contentStore ) ; "<AssertPlaceHolder>" ; }...
org . junit . Assert . assertNotNull ( tenantDeployer )
testFromJson ( ) { com . fasterxml . jackson . databind . node . ObjectNode node = null ; com . redhat . lightblue . query . ForEachExpression expResult = null ; com . redhat . lightblue . query . ForEachExpression result = com . redhat . lightblue . query . ForEachExpression . fromJson ( node ) ; "<AssertPlaceHolder>"...
org . junit . Assert . assertEquals ( expResult , result )
testGetIndicesVector ( ) { org . nd4j . linalg . api . ndarray . INDArray line = org . nd4j . linalg . factory . Nd4j . linspace ( 1 , 4 , 4 , DataType . DOUBLE ) . reshape ( 1 , ( - 1 ) ) ; org . nd4j . linalg . api . ndarray . INDArray test = org . nd4j . linalg . factory . Nd4j . create ( new double [ ] { 2 , 3 } ) ...
org . junit . Assert . assertEquals ( test , result )
should_know_the_parent_of_one_level_is_empty ( ) { net . imadz . common . DottedPath path = net . imadz . common . DottedPath . parse ( "a" ) ; "<AssertPlaceHolder>" ; } getParent ( ) { return this . parent ; }
org . junit . Assert . assertNull ( path . getParent ( ) )
testFetchByPrimaryKeysWithMultiplePrimaryKeysWhereNoPrimaryKeysExist ( ) { long pk1 = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; long pk2 = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; java . util . Set < java . io . Serializable > primaryKeys = ne...
org . junit . Assert . assertTrue ( ddmDataProviderInstanceLinks . isEmpty ( ) )
testDelete ( ) { routeDao . delete ( proto1 . getId ( ) ) ; "<AssertPlaceHolder>" ; } getAllRoutes ( ) { com . ctrip . xpipe . redis . console . model . DcIdNameMapper mapper = new com . ctrip . xpipe . redis . console . model . DcIdNameMapper . DefaultMapper ( dcService ) ; java . util . List < com . ctrip . xpipe . r...
org . junit . Assert . assertEquals ( 1 , routeDao . getAllRoutes ( ) . size ( ) )
testNullQuery ( ) { try { connectorQueryBuilder . buildQuery ( client , null ) ; } catch ( java . lang . Exception exception ) { "<AssertPlaceHolder>" ; } } buildQuery ( org . elasticsearch . client . Client , com . stratio . connector . commons . engine . query . ProjectParsed ) { if ( null == elasticClient ) { throw ...
org . junit . Assert . assertTrue ( ( exception instanceof com . stratio . crossdata . common . exceptions . ExecutionException ) )
testWithOnlyWiki ( ) { org . xwiki . model . reference . EntityReference reference = new org . xwiki . model . reference . RegexEntityReference ( java . util . regex . Pattern . compile ( org . xwiki . model . reference . RegexEntityReferenceTest . REFERENCETOMATCH . getWikiReference ( ) . getName ( ) , Pattern . LITER...
org . junit . Assert . assertTrue ( reference . equals ( org . xwiki . model . reference . RegexEntityReferenceTest . REFERENCETOMATCH ) )
checkTime15 ( ) { com . alibaba . fastjson . parser . JSONScanner objectUnderTest = ( ( com . alibaba . fastjson . parser . JSONScanner ) ( com . diffblue . deeptestutils . Reflector . getInstance ( "com.alibaba.fastjson.parser.JSONScanner" ) ) ) ; objectUnderTest . hasSpecial = false ; objectUnderTest . token = 0 ; ob...
org . junit . Assert . assertEquals ( false , retval )
testNotifiesListenerOnSelectionEventWithCorrectDisplay ( ) { org . eclipse . swt . widgets . Display display = new org . eclipse . swt . widgets . Display ( ) ; com . eclipsesource . tabris . widgets . ClientDialog dialog = new com . eclipsesource . tabris . widgets . ClientDialog ( ) ; org . eclipse . swt . widgets . ...
org . junit . Assert . assertSame ( display , captor . getValue ( ) . display )
testDeleteSiteNavigationMenuItemsBySiteNavigationMenuId ( ) { com . liferay . site . navigation . util . SiteNavigationMenuTestUtil . addSiteNavigationMenuItem ( _siteNavigationMenu ) ; com . liferay . site . navigation . util . SiteNavigationMenuTestUtil . addSiteNavigationMenuItem ( _siteNavigationMenu ) ; int origin...
org . junit . Assert . assertEquals ( ( originalSiteNavigationMenuItemsCount - 2 ) , actualSiteNavigationMenuItemsCount )
spiTest ( ) { org . xeustechnologies . jcl . JarClassLoader jcl = new org . xeustechnologies . jcl . JarClassLoader ( ) ; jcl . add ( "./target/test-classes/lucene-core-5.3.1.jar" ) ; java . lang . Class codecClass = jcl . loadClass ( "org.apache.lucene.codecs.Codec" ) ; java . util . ServiceLoader serviceLoader = java...
org . junit . Assert . assertTrue ( itr . hasNext ( ) )
bulkContainsAddedStringItem ( ) { org . appenders . log4j2 . elasticsearch . BatchOperations < io . searchbox . core . Bulk > bulkOperations = org . appenders . log4j2 . elasticsearch . jest . JestHttpObjectFactoryTest . createTestObjectFactoryBuilder ( ) . build ( ) . createBatchOperations ( ) ; org . appenders . log4...
org . junit . Assert . assertEquals ( testPayload , introspector . items ( bulk ) . get ( 0 ) )
testFetchByPrimaryKeyMissing ( ) { long pk = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; com . liferay . portal . workflow . kaleo . model . KaleoTimer missingKaleoTimer = _persistence . fetchByPrimaryKey ( pk ) ; "<AssertPlaceHolder>" ; } fetchByPrimaryKey ( long ) { return com . li...
org . junit . Assert . assertNull ( missingKaleoTimer )
testDoubleUnionBody ( ) { java . util . List < com . github . anno4j . model . Annotation > annotations = queryService . addCriteria ( "oa:hasBody/(ex:subBody<sp>|<sp>ex:subBody2)[is-a<sp>ex:unionBody<sp>|<sp>is-a<sp>ex:unionBody2]" ) . execute ( ) ; "<AssertPlaceHolder>" ; } size ( ) { try { if ( ( _size ) < 0 ) { syn...
org . junit . Assert . assertEquals ( 2 , annotations . size ( ) )
testHashCodeNull ( ) { org . bff . javampd . art . MPDArtwork artwork = new org . bff . javampd . art . MPDArtwork ( "name" , null ) ; "<AssertPlaceHolder>" ; } hashCode ( ) { int result = super . hashCode ( ) ; result = ( 31 * result ) + ( artistName . hashCode ( ) ) ; result = ( 31 * result ) + ( date . hashCode ( ) ...
org . junit . Assert . assertEquals ( 0 , artwork . hashCode ( ) )
find_A$Function1_Nil ( ) { com . m3 . scalaflavor4j . Seq < java . lang . String > seq = com . m3 . scalaflavor4j . IndexedSeq . apply ( ) ; com . m3 . scalaflavor4j . F1 < java . lang . String , java . lang . Boolean > p = new com . m3 . scalaflavor4j . F1 < java . lang . String , java . lang . Boolean > ( ) { public ...
org . junit . Assert . assertThat ( actual . isDefined ( ) , org . hamcrest . CoreMatchers . is ( false ) )
noLazyLoadingOneToOne ( ) { javax . persistence . EntityManager em = factory . createEntityManager ( ) ; org . meri . jpa . relationships . entities . Person simon = em . find ( org . meri . jpa . relationships . entities . Person . class , org . meri . jpa . relationships . SIMON_SLASH_ID ) ; em . close ( ) ; "<Assert...
org . junit . Assert . assertNotNull ( simon . getFacebookAccount ( ) )
testTokenParamWhichIsTooLong ( ) { java . lang . String longStr1 = org . apache . commons . lang3 . RandomStringUtils . randomAlphanumeric ( ( ( ca . uhn . fhir . jpa . model . entity . ResourceIndexedSearchParamString . MAX_LENGTH ) + 100 ) ) ; java . lang . String longStr2 = org . apache . commons . lang3 . RandomStr...
org . junit . Assert . assertEquals ( ( initial + 1 ) , val . size ( ) )
testGetUserProfileAttribute ( ) { try { "<AssertPlaceHolder>" ; com . agiletec . aps . system . services . user . UserDetails user = new org . entando . entando . web . utils . OAuth2TestUtils . UserBuilder ( "jack_bauer" , "Authorization" 1 ) . grantedToRoleAdmin ( ) . build ( ) ; java . lang . String accessToken = mo...
org . junit . Assert . assertNull ( this . userProfileManager . getEntityPrototype ( "Authorization" 2 ) )
testMaxObjectLength ( ) { io . netty . channel . embedded . EmbeddedChannel ch = new io . netty . channel . embedded . EmbeddedChannel ( new io . netty . handler . codec . json . JsonObjectDecoder ( 6 ) ) ; try { ch . writeInbound ( io . netty . buffer . Unpooled . copiedBuffer ( "[2,4,5]" , CharsetUtil . UTF_8 ) ) ; }...
org . junit . Assert . assertFalse ( ch . finish ( ) )
testDescribeProcessParsing ( ) { if ( org . geotools . data . wps . ParsingTest . DISABLE ) { return ; } java . lang . Object object ; java . io . BufferedReader in = null ; try { org . geotools . xsd . Configuration config = new org . geotools . wps . WPSConfiguration ( ) ; java . net . URL url ; if ( org . geotools ....
org . junit . Assert . assertNotNull ( processDesc )
testSerialization ( ) { org . jfree . chart . axis . DateAxis a1 = new org . jfree . chart . axis . DateAxis ( "Test<sp>Axis" ) ; org . jfree . chart . axis . DateAxis a2 = ( ( org . jfree . chart . axis . DateAxis ) ( org . jfree . chart . TestUtils . serialised ( a1 ) ) ) ; "<AssertPlaceHolder>" ; } serialised ( java...
org . junit . Assert . assertEquals ( a1 , a2 )
test_CaptureEnPassantFromHFile ( ) { classUnderTest = addWhitePawn ( GenericPosition . h5 ) ; addBlackPawn ( GenericPosition . g7 ) ; pm = new eubos . board . pieces . PositionManager ( new eubos . board . Board ( pl ) , eubos . board . pieces . Piece . Colour . white ) ; pm . performMove ( new eubos . board . pieces ....
org . junit . Assert . assertTrue ( ml . contains ( expectedMove ) )
testHorizontalRandomly ( ) { final int TRIALS = 100000 ; for ( int i = 0 ; i < TRIALS ; i ++ ) { int len = ( org . geogebra . commands . ConvexHullTest . rand . nextInt ( 30 ) ) + 1 ; java . util . List < org . geogebra . common . kernel . discrete . geom . Point2D > points = new java . util . ArrayList ( ) ; if ( org ...
org . junit . Assert . assertEquals ( expected , actual )
testSettingValueFulfillsPromise ( ) { final de . markusrother . concurrent . Promise < java . lang . String > promise = new de . markusrother . concurrent . Promise ( ) ; promise . fulfill ( "foobar" ) ; "<AssertPlaceHolder>" ; } isFulfilled ( ) { return isFulfilled ; }
org . junit . Assert . assertTrue ( promise . isFulfilled ( ) )
testCharsetLookupNullInput ( ) { java . nio . charset . Charset c1 = org . apache . james . mime4j . util . CharsetUtil . lookup ( null ) ; "<AssertPlaceHolder>" ; } lookup ( java . lang . String ) { if ( name == null ) { return null ; } try { return java . nio . charset . Charset . forName ( name ) ; } catch ( java . ...
org . junit . Assert . assertNull ( c1 )
testSwitchPopupToAnotherPresenter2 ( com . gwtplatform . mvp . client . PresenterWidgetTest$PresenterWidgetA , com . gwtplatform . mvp . client . PresenterWidgetTest$PresenterWidgetB , com . gwtplatform . mvp . client . PresenterWidgetTest$PresenterWidgetPopupC ) { presenterWidgetA . internalReveal ( ) ; presenterWidge...
org . junit . Assert . assertTrue ( popupContentC . isVisible ( ) )
multiFieldTest ( ) { if ( org . apache . hyracks . storage . am . bloomfilter . LOGGER . isInfoEnabled ( ) ) { org . apache . hyracks . storage . am . bloomfilter . LOGGER . info ( "TESTING<sp>BLOOM<sp>FILTER" ) ; } org . apache . hyracks . storage . common . buffercache . IBufferCache bufferCache = harness . getBuffer...
org . junit . Assert . assertTrue ( bf . contains ( tuple , hashes ) )
dockerShell ( ) { java . lang . Boolean result = dJenkins . call ( new com . github . kostyasha . it . tests . FreestyleTest . DockerShellCallable ( com . github . kostyasha . it . tests . FreestyleTest . slaveJnlpImage ) ) ; "<AssertPlaceHolder>" ; } call ( com . github . kostyasha . it . other . BCallable ) { return ...
org . junit . Assert . assertThat ( result , org . hamcrest . Matchers . is ( true ) )
testUnionWithNoDuplicates ( ) { double [ ] leftTimes = new double [ ] { 1.0 , 2.0 , 3.0 } ; double [ ] rightTimes = new double [ ] { 0.5 , 1.5 } ; net . finmath . time . TimeDiscretization union = new net . finmath . time . TimeDiscretizationFromArray ( leftTimes ) . union ( new net . finmath . time . TimeDiscretizatio...
org . junit . Assert . assertThat ( union . getAsDoubleArray ( ) , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( new double [ ] { 0.5 , 1.0 , 1.5 , 2.0 , 3.0 } ) ) )
testDoRequestGet ( ) { addPageRequest ( "GET" , "http://test.com/index.html?query=ab+cd&page=1" , "Test<sp>Page" ) ; com . gistlabs . mechanize . Resource page = agent ( ) . doRequest ( "http://test.com/index.html" ) . add ( "query" , "ab<sp>cd" ) . add ( "page" , "1" ) . get ( ) ; "<AssertPlaceHolder>" ; } asString ( ...
org . junit . Assert . assertEquals ( "Test<sp>Page" , page . asString ( ) )
testTapParserException1 ( ) { exception = new org . tap4j . parser . ParserException ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( exception )
testModeRegistration ( ) { for ( net . tridentsdk . ui . chat . ClientChatMode mode : net . tridentsdk . ui . chat . ClientChatMode . values ( ) ) { "<AssertPlaceHolder>" ; } } of ( int ) { for ( net . tridentsdk . ui . chat . ClientChatMode chatMode : net . tridentsdk . ui . chat . ClientChatMode . values ( ) ) { if (...
org . junit . Assert . assertEquals ( mode , net . tridentsdk . ui . chat . ClientChatMode . of ( mode . getData ( ) ) )
readDataConfigTest ( ) { doReturn ( immediateFluentFuture ( java . util . Optional . of ( org . opendaylight . restconf . nb . rfc8040 . rests . utils . ReadDataTransactionUtilTest . DATA . data3 ) ) ) . when ( read ) . read ( LogicalDatastoreType . CONFIGURATION , org . opendaylight . restconf . nb . rfc8040 . rests ....
org . junit . Assert . assertEquals ( org . opendaylight . restconf . nb . rfc8040 . rests . utils . ReadDataTransactionUtilTest . DATA . data3 , normalizedNode )
testGetImportSession ( ) { setup ( org . pentaho . platform . plugin . services . importer . RepositoryFileImportFileHandlerTest . MIMENAME , org . pentaho . platform . plugin . services . importer . RepositoryFileImportFileHandlerTest . MIME_EXTENSION , "" , "" , false ) ; "<AssertPlaceHolder>" ; } setup ( java . lang...
org . junit . Assert . assertNotNull ( importSession )
testRenameOrderingComparator ( ) { java . util . List < java . lang . String > fieldPaths = java . util . Arrays . asList ( "/elementPrim" , "/elementList[0]/elementMap/elementList[1]/elementPrim" 1 , "/elementList[0]/elementMap/elementList[1]/elementPrim" 0 , "/elementList[0]/elementMap/elementList[1]/elementPrim" 5 ,...
org . junit . Assert . assertEquals ( expectedOrder . get ( i ) , fieldPaths . get ( i ) )
testCholesky ( ) { mikera . matrixx . AMatrix m = mikera . matrixx . Matrixx . create ( mikera . vectorz . Vector . of ( 4 , 12 , ( - 16 ) ) , mikera . vectorz . Vector . of ( 12 , 37 , ( - 43 ) ) , mikera . vectorz . Vector . of ( ( - 16 ) , ( - 43 ) , 98 ) ) ; mikera . matrixx . AMatrix L = mikera . matrixx . decompo...
org . junit . Assert . assertEquals ( mikera . matrixx . Matrixx . create ( mikera . vectorz . Vector . of ( 2 , 0 , 0 ) , mikera . vectorz . Vector . of ( 6 , 1 , 0 ) , mikera . vectorz . Vector . of ( ( - 8 ) , 5 , 3 ) ) , L )
hashingStrategy ( ) { com . gs . collections . impl . map . strategy . mutable . UnifiedMapWithHashingStrategy < java . lang . Integer , java . lang . Integer > map = com . gs . collections . impl . map . strategy . mutable . UnifiedMapWithHashingStrategy . newWithKeysValues ( com . gs . collections . impl . map . stra...
org . junit . Assert . assertSame ( com . gs . collections . impl . map . strategy . mutable . UnifiedMapWithHashingStrategyTest . INTEGER_HASHING_STRATEGY , map . hashingStrategy ( ) )
testOneHot1 ( ) { org . nd4j . autodiff . opvalidation . List < java . lang . String > failed = new org . nd4j . autodiff . opvalidation . ArrayList ( ) ; for ( int i = - 1 ; i <= 0 ; i ++ ) { org . nd4j . linalg . api . ndarray . INDArray indicesArr = org . nd4j . linalg . factory . Nd4j . create ( new double [ ] { 0 ...
org . junit . Assert . assertEquals ( failed . toString ( ) , 0 , failed . size ( ) )
shouldReturnReturnWhenTimeIsBeforeTheLowerLimit ( ) { final org . neo4j . kernel . impl . transaction . log . pruning . EntryTimespanThreshold threshold = new org . neo4j . kernel . impl . transaction . log . pruning . EntryTimespanThreshold ( clock , java . util . concurrent . TimeUnit . MILLISECONDS , 100 ) ; when ( ...
org . junit . Assert . assertTrue ( result )
givenZeroValue_whenSetMaxFileSizeBytes_thenValueIsStored ( ) { final int maxFileSizeBytes = 0 ; config . setMaxFileSizeBytes ( maxFileSizeBytes ) ; "<AssertPlaceHolder>" ; } getMaxFileSizeBytes ( ) { return maxFileSizeBytes ; }
org . junit . Assert . assertThat ( config . getMaxFileSizeBytes ( ) , org . hamcrest . CoreMatchers . equalTo ( maxFileSizeBytes ) )
listShouldNotContainIncorrectObjects ( ) { java . lang . Object incorrect = new java . lang . Object ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertThat ( list . contains ( incorrect ) , org . hamcrest . Matchers . is ( false ) )
testEarliestChild ( ) { org . dcache . services . info . base . StateValue testVal = newEphemeralStateValue ( ) ; "<AssertPlaceHolder>" ; } getEarliestChildExpiryDate ( ) { return ( _earliestChildExpiry ) != null ? new java . util . Date ( _earliestChildExpiry . getTime ( ) ) : null ; }
org . junit . Assert . assertNull ( testVal . getEarliestChildExpiryDate ( ) )
testUniqueLabels ( ) { java . util . List < iot . jcypher . query . result . JcError > errors ; iot . jcypher . domain . IDomainAccess da = iot . jcypher . domain . DomainAccessFactory . createDomainAccess ( test . domainmapping . DomainMappingTest . dbAccess , test . domainmapping . DomainMappingTest . domainName ) ; ...
org . junit . Assert . assertTrue ( equals )
testConcurrentModificationOfProperties ( ) { org . securegraph . test . Vertex v = graph . prepareVertex ( "v1" , org . securegraph . test . GraphTestBase . VISIBILITY_EMPTY ) . setProperty ( "prop1" , "value1" , org . securegraph . test . GraphTestBase . VISIBILITY_A ) . setProperty ( "prop2" , "value2" , org . secure...
org . junit . Assert . assertNotNull ( p . toString ( ) )
link$top_AssociationEnd ( ) { java . lang . String top = java . lang . Integer . toString ( topMaxNum ) ; org . json . simple . JSONObject body = new org . json . simple . JSONObject ( ) ; try { body . put ( "__id" , toUserDataId ) ; createUserData ( body , HttpStatus . SC_CREATED , Setup . TEST_CELL1 , Setup . TEST_BO...
org . junit . Assert . assertEquals ( 1 , results . size ( ) )
testMultipleNestedProperty ( ) { java . lang . String a = "a" ; java . lang . String b = "b" ; java . lang . String nestedKey = "c.d" ; java . lang . String nestedProperty = java . lang . String . format ( "${%s}" , nestedKey ) ; int someValue = 1234 ; com . ctrip . framework . apollo . Config config = mock ( com . ctr...
org . junit . Assert . assertEquals ( someValue , bean . getNestedProperty ( ) )
splitAtFractionPreservesOverallEventCount ( ) { long n = 55729L ; org . apache . beam . sdk . nexmark . sources . generator . GeneratorConfig initialConfig = makeConfig ( n ) ; long expected = ( initialConfig . getStopEventId ( ) ) - ( initialConfig . getStartEventId ( ) ) ; long actual = 0 ; org . apache . beam . sdk ...
org . junit . Assert . assertEquals ( expected , actual )
testColumns ( ) { "<AssertPlaceHolder>" ; } columns ( ) { return new org . richfaces . component . DataTableColumnsIterator ( this ) ; }
org . junit . Assert . assertTrue ( ( ( table . columns ( ) ) instanceof org . richfaces . component . DataTableColumnsIterator ) )
testContainsAll ( ) { listenedList . add ( "A" ) ; java . util . ArrayList < java . lang . String > listToAdd = new java . util . ArrayList < java . lang . String > ( ) ; listToAdd . add ( "B" ) ; listToAdd . add ( "C" ) ; listenedList . addAll ( listToAdd ) ; listenedList . add ( "D" ) ; "<AssertPlaceHolder>" ; } cont...
org . junit . Assert . assertTrue ( listenedList . containsAll ( listToAdd ) )