input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
readFromDirWithClassloader ( ) { java . util . List < com . optimaize . langdetect . profiles . LanguageProfile > read = new com . optimaize . langdetect . profiles . LanguageProfileReader ( ) . read ( com . optimaize . langdetect . profiles . LanguageProfileReaderTest . class . getClassLoader ( ) , "languages" , com ....
org . junit . Assert . assertEquals ( read . size ( ) , 2 )
testKeyedCEPOperatorNFAUpdateTimesWithRocksDB ( ) { java . lang . String rocksDbPath = tempFolder . newFolder ( ) . getAbsolutePath ( ) ; org . apache . flink . contrib . streaming . state . RocksDBStateBackend rocksDBStateBackend = new org . apache . flink . contrib . streaming . state . RocksDBStateBackend ( new org ...
org . junit . Assert . assertEquals ( 1 , result . size ( ) )
testCombinedOp ( ) { org . stringtemplate . v4 . org . stringtemplate . v4 . ST e = new org . stringtemplate . v4 . org . stringtemplate . v4 . ST ( "<[first(mine),rest(yours)];<sp>separator=\",<sp>\">" ) ; e . add ( "mine" , "1" ) ; e . add ( "mine" , "2" ) ; e . add ( "mine" , "3" ) ; e . add ( "yours" , "a" ) ; e . ...
org . junit . Assert . assertEquals ( expecting , e . render ( ) )
isEmailLabelRendered ( ) { user . setEmail ( "mail@host.de" ) ; "<AssertPlaceHolder>" ; } isEmailLabelRendered ( ) { return ! ( isEmailInputRendered ( ) ) ; }
org . junit . Assert . assertTrue ( user . isEmailLabelRendered ( ) )
testDoExecInstallShouldAbortOnPostDownload ( ) { org . eclipse . kura . core . deployment . CloudDeploymentHandlerV2 handler = new org . eclipse . kura . core . deployment . CloudDeploymentHandlerV2 ( ) ; org . eclipse . kura . core . testutil . TestUtil . setFieldValue ( handler , org . eclipse . kura . core . deploym...
org . junit . Assert . assertTrue ( ( ( manager . getHook ( "testRequest" ) ) != null ) )
testDisableMarkupIsIgnored ( ) { toolItem . setData ( RWT . TOOLTIP_MARKUP_ENABLED , Boolean . TRUE ) ; toolItem . setData ( RWT . TOOLTIP_MARKUP_ENABLED , Boolean . FALSE ) ; "<AssertPlaceHolder>" ; } getData ( java . lang . String ) { if ( ( dataTable ) == null ) return null ; return ( ( java . lang . String ) ( data...
org . junit . Assert . assertEquals ( Boolean . TRUE , toolItem . getData ( RWT . TOOLTIP_MARKUP_ENABLED ) )
testCoalesceRemovePut ( ) { nodeMap . put ( com . vaadin . flow . internal . nodefeature . NodeMapTest . KEY , "value" ) ; collectChanges ( nodeMap ) ; nodeMap . remove ( com . vaadin . flow . internal . nodefeature . NodeMapTest . KEY ) ; nodeMap . put ( com . vaadin . flow . internal . nodefeature . NodeMapTest . KEY...
org . junit . Assert . assertEquals ( 0 , changes . size ( ) )
eventSetsProperties ( ) { org . hawkular . apm . api . model . events . CompletionTime completionTime = new org . hawkular . apm . api . model . events . CompletionTime ( ) ; completionTime . getProperties ( ) . add ( new org . hawkular . apm . api . model . Property ( "foo" , "baz" ) ) ; org . hawkular . apm . process...
org . junit . Assert . assertEquals ( "baz" , event . getTags ( ) . get ( "foo" ) )
getBatchCount ( ) { org . eclipse . collections . impl . parallel . BatchIterable < java . lang . Integer > integerBatchIterable = ( ( org . eclipse . collections . impl . parallel . BatchIterable < java . lang . Integer > ) ( this . classUnderTest ( ) ) ) ; "<AssertPlaceHolder>" ; } getBatchCount ( int ) { return this...
org . junit . Assert . assertEquals ( 5 , integerBatchIterable . getBatchCount ( 3 ) )
testApplyVpnUsersException2 ( ) { vpcVirtualRouterElement . _vpcRouterMgr = _vpcRouterMgr ; final com . cloud . network . topology . AdvancedNetworkTopology advancedNetworkTopology = org . mockito . Mockito . mock ( com . cloud . network . topology . AdvancedNetworkTopology . class ) ; final com . cloud . network . top...
org . junit . Assert . assertNull ( results )
withinSuccess ( ) { io . trane . future . Future < java . lang . Integer > f = io . trane . future . Future . value ( 1 ) . within ( java . time . Duration . ofMillis ( 1 ) , scheduler ) ; "<AssertPlaceHolder>" ; } get ( io . trane . future . Future ) { return future . get ( Duration . ZERO ) ; }
org . junit . Assert . assertEquals ( new java . lang . Integer ( 1 ) , get ( f ) )
testIsUnReadableNode ( ) { org . powermock . api . mockito . PowerMockito . mockStatic ( org . silverpeas . core . sharing . model . EJBUtilitaire . class ) ; com . stratelia . webactiv . node . model . NodePK pk = new com . stratelia . webactiv . node . model . NodePK ( "10" , "kmelia10" ) ; com . stratelia . webactiv...
org . junit . Assert . assertThat ( result , org . hamcrest . Matchers . is ( false ) )
testApplyVoid ( ) { java . lang . Object [ ] result = analyzer . apply ( "ab" ) . toArray ( ) ; "<AssertPlaceHolder>" ; } apply ( java . util . Collection ) { checkPointer ( ( input != null ) ) ; java . util . List < java . lang . String > result = new java . util . LinkedList ( ) ; for ( java . lang . String text : in...
org . junit . Assert . assertEquals ( 0 , result . length )
testListJobsWithHostNameFilter ( ) { final java . lang . String namePattern = "foo" ; when ( model . listHosts ( namePattern ) ) . thenReturn ( com . google . common . collect . ImmutableList . of ( "foobar.example.net" ) ) ; final com . spotify . helios . common . descriptors . JobId jobId1 = com . spotify . helios . ...
org . junit . Assert . assertThat ( resource . list ( "" , namePattern ) , org . hamcrest . Matchers . is ( com . google . common . collect . ImmutableMap . of ( jobId1 , job1 , jobId2 , job2 ) ) )
testIsOrdered4 ( ) { org . dresdenocl . modelinstancetype . test . tests . TestModelInstanceCollection . msg = org . dresdenocl . modelinstancetype . test . msg . ModelInstanceTypeTestSuiteMessages . TestModelInstanceCollection_IsOrderedIsWrong ; org . dresdenocl . modelinstancetype . test . tests . TestModelInstanceCo...
org . junit . Assert . assertFalse ( org . dresdenocl . modelinstancetype . test . tests . TestModelInstanceCollection . msg , aCollection . isOrdered ( ) )
testKeys ( ) { actual . add ( connection . set ( "keytest" , "true" ) ) ; actual . add ( connection . keys ( "key*" ) ) ; "<AssertPlaceHolder>" ; } getResults ( ) { connection . exec ( ) ; java . util . List < java . lang . Object > txResults = ( ( java . util . List < java . lang . Object > ) ( connection . closePipel...
org . junit . Assert . assertTrue ( ( ( org . springframework . data . redis . connection . Collection < java . lang . String > ) ( getResults ( ) . get ( 1 ) ) ) . contains ( "keytest" ) )
testOnKeyUp ( ) { int unicharCode = KeyboardEvent . Key . CONTROL . getUnicharCode ( ) ; tested . onKeyUp ( unicharCode ) ; org . mockito . ArgumentCaptor < org . kie . workbench . common . stunner . core . client . event . keyboard . KeyUpEvent > eventArgumentCaptor = org . mockito . ArgumentCaptor . forClass ( org . ...
org . junit . Assert . assertEquals ( unicharCode , keyEvent . getKey ( ) . getUnicharCode ( ) )
testNoNullKeysEmptyParameter ( ) { com . twelvemonkeys . lang . Map < ? , ? > map = new com . twelvemonkeys . lang . HashMap < java . lang . Object , java . lang . Object > ( ) ; "<AssertPlaceHolder>" ; } noNullKeys ( java . util . Map , java . lang . String ) { com . twelvemonkeys . lang . Validate . notNull ( pParame...
org . junit . Assert . assertSame ( map , com . twelvemonkeys . lang . Validate . noNullKeys ( map , "foo" ) )
testTextToTime ( ) { com . dremio . dac . model . job . JobDataFragment data = testConvert ( "to_time(l_commitdate,<sp>'YYYY-MM-DD')<sp>as<sp>foo" , new com . dremio . dac . proto . model . dataset . FieldConvertTextToDate ( "YYYY-MM-DD" ) . setDesiredType ( com . dremio . dac . server . TIME ) , "l_commitdate" , "cp.\...
org . junit . Assert . assertEquals ( com . dremio . dac . server . TIME , data . getColumn ( "foo" ) . getType ( ) )
getFieldsWithFilter ( ) { jetbrick . bean . KlassInfo klass = jetbrick . bean . KlassInfo . create ( java . util . ArrayList . class ) ; java . util . List < jetbrick . bean . FieldInfo > fields = klass . getFields ( Filters . STATIC_FIELD ) ; "<AssertPlaceHolder>" ; } size ( ) { return size ; }
org . junit . Assert . assertTrue ( ( ( fields . size ( ) ) >= 1 ) )
testMissing ( ) { java . lang . String bucket = "bucket" ; java . lang . String keyPrefix = "prefix/dir/0" ; org . apache . druid . storage . s3 . ServerSideEncryptingAmazonS3 s3Client = org . easymock . EasyMock . createStrictMock ( org . apache . druid . storage . s3 . ServerSideEncryptingAmazonS3 . class ) ; final c...
org . junit . Assert . assertEquals ( null , latest )
testColorWithEmptyBase ( ) { net . kyori . text . Component component = TextParsers . LEGACY . parse ( ( ( ( ( org . bukkit . ChatColor . COLOR_CHAR ) + "a" ) + ( org . bukkit . ChatColor . COLOR_CHAR ) ) + "lfoo" ) ) ; net . kyori . text . TextComponent expected = net . kyori . text . TextComponent . of ( "foo" ) . co...
org . junit . Assert . assertEquals ( expected , component )
testRemoveNull ( ) { org . orbisgis . legend . thematic . recode . RecodedArea ra = getRecodedArea ( ) ; try { ra . remove ( null ) ; org . junit . Assert . fail ( ) ; } catch ( java . lang . NullPointerException npe ) { } "<AssertPlaceHolder>" ; } remove ( org . orbisgis . view . toc . actions . cui . legend . ILegend...
org . junit . Assert . assertTrue ( true )
callJoystickFromPlayer_ifRealizedInPlayer ( ) { when ( player . getJoystick ( ) ) . thenReturn ( joystick ) ; com . codenjoy . dojo . services . Joystick joystick = game . getJoystick ( ) ; "<AssertPlaceHolder>" ; } getJoystick ( ) { com . codenjoy . dojo . services . Joystick joystick = player . getJoystick ( ) ; if (...
org . junit . Assert . assertSame ( this . joystick , joystick )
testGetBad ( ) { org . opencastproject . assetmanager . impl . storage . StoragePath storagePath = new org . opencastproject . assetmanager . impl . storage . StoragePath ( org . opencastproject . assetmanager . storage . impl . fs . AbstractFileSystemAssetStoreTest . ORG_ID , org . opencastproject . assetmanager . sto...
org . junit . Assert . assertFalse ( option . isSome ( ) )
createPortletToolbarContributor ( ) { wizardAction . openNewLiferayModuleWizard ( ) ; wizardAction . newModule . prepareGradle ( project . getName ( ) , com . liferay . ide . ui . module . tests . PORTLET_TOOLBAR_CONTRIBUTOR ) ; wizardAction . finish ( ) ; jobAction . waitForNoRunningJobs ( ) ; "<AssertPlaceHolder>" ; ...
org . junit . Assert . assertTrue ( viewAction . project . visibleFileTry ( project . getName ( ) ) )
testExecuteRequestConfig ( ) { final org . apache . hc . client5 . http . classic . methods . HttpGet httpget = new org . apache . hc . client5 . http . classic . methods . HttpGet ( "http://somehost/stuff" ) ; final org . apache . hc . client5 . http . HttpRoute route = new org . apache . hc . client5 . http . HttpRou...
org . junit . Assert . assertSame ( config , context . getRequestConfig ( ) )
size_oneAfterAdd ( ) { object . add ( "a" , true ) ; "<AssertPlaceHolder>" ; } size ( ) { return new org . eclipse . jface . internal . databinding . swt . ControlSizeProperty ( ) ; }
org . junit . Assert . assertEquals ( 1 , object . size ( ) )
testSetId ( ) { ddf . catalog . data . Metacard metacard = new ddf . catalog . transformer . input . geojson . GeoJsonInputTransformer ( ddf . catalog . transformer . input . geojson . TestGeoJsonInputTransformer . MTR ) . transform ( new java . io . ByteArrayInputStream ( ddf . catalog . transformer . input . geojson ...
org . junit . Assert . assertEquals ( ddf . catalog . transformer . input . geojson . TestGeoJsonInputTransformer . SAMPLE_ID , metacard . getId ( ) )
testExtractHTMLheaders ( ) { logger . info ( "extractHTMLheaders" ) ; java . lang . String text = "<sp><h1>a1</h1><sp><h1<sp>class='s'>a2</h1><sp><h2>b1</h2>" ; java . util . Map < java . lang . String , java . util . List < java . lang . String > > expResult = new java . util . HashMap ( ) ; for ( int i = 1 ; i <= 6 ;...
org . junit . Assert . assertEquals ( expResult , result )
testGetExpectedIndex ( ) { final long nonce = 2677055472L ; final int chainId = 98 ; final int merkleHeight = 6 ; final int expResult = 40 ; final int result = org . bitcoinj . core . AuxPoW . getExpectedIndex ( nonce , chainId , merkleHeight ) ; "<AssertPlaceHolder>" ; } getExpectedIndex ( long , int , int ) { int ran...
org . junit . Assert . assertEquals ( expResult , result )
testBasic ( ) { eu . dnetlib . iis . common . java . CmdLineParserForProcessRunParameters parser = new eu . dnetlib . iis . common . java . CmdLineParserForProcessRunParameters ( ) ; java . lang . String [ ] args = new java . lang . String [ ] { "-Iperson=/users/joe/person_input" , "-Idocument=/users/joe/doc_input" , "...
org . junit . Assert . assertEquals ( expected , actual )
testComplexCreateVariantCreateAllParameters ( ) { software . amazon . kinesis . multilang . config . BuilderDynaBeanTest . TestVariantCreate variant = software . amazon . kinesis . multilang . config . BuilderDynaBeanTest . TestVariantCreate . create ( "variant-create" , 100L , "varied" ) ; software . amazon . kinesis ...
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . equalTo ( expected ) )
testFriendlyFormatFrenchLocale ( ) { java . util . Locale locale = java . util . Locale . FRANCE ; org . joda . time . DateTime dateTime = org . multibit . common . DateUtils . thenUtc ( 2000 , 1 , 1 , 0 , 0 , 0 ) ; java . lang . String expectedDateString = "samedi,<sp>janvier<sp>01" ; java . lang . String actualDateSt...
org . junit . Assert . assertEquals ( expectedDateString , actualDateString )
testMaterialRoleFromDetached ( ) { uk . ac . ebi . bioinvindex . model . xref . ReferenceSource referenceSource = new uk . ac . ebi . bioinvindex . model . xref . ReferenceSource ( "TEST<sp>ONTOLOGY" ) ; referenceSource . setAcc ( "BII-1" ) ; uk . ac . ebi . bioinvindex . model . term . MaterialRole matRole = new uk . ...
org . junit . Assert . assertNotNull ( matRoleDB )
testPSRpcResponse ( ) { org . apache . sysml . runtime . controlprogram . paramserv . rpc . PSRpcResponse expected = new org . apache . sysml . runtime . controlprogram . paramserv . rpc . PSRpcResponse ( PSRpcResponse . Type . SUCCESS , generateData ( ) ) ; org . apache . sysml . runtime . controlprogram . paramserv ....
org . junit . Assert . assertTrue ( java . util . Arrays . equals ( new org . apache . sysml . runtime . controlprogram . paramserv . rpc . PSRpcResponse ( PSRpcResponse . Type . SUCCESS , generateData ( ) ) . serialize ( ) . array ( ) , actual . serialize ( ) . array ( ) ) )
testNotRemove ( ) { final fr . gouv . vitam . common . lru . CapacityLruLinkedHashMap < java . lang . Object , java . lang . String > capacityLruLinkedHashMap0 = new fr . gouv . vitam . common . lru . CapacityLruLinkedHashMap ( 3384 , 0 , 3384 ) ; final AbstractMap . SimpleEntry < java . lang . Object , java . lang . S...
org . junit . Assert . assertFalse ( boolean0 )
testLookupEventExistant ( ) { final org . apache . logging . log4j . Marker marker = org . apache . logging . log4j . MarkerManager . getMarker ( markerName ) ; final org . apache . logging . log4j . core . LogEvent event = org . apache . logging . log4j . core . impl . Log4jLogEvent . newBuilder ( ) . setLoggerName ( ...
org . junit . Assert . assertEquals ( markerName , value )
testScrollToLineWorksWhileMovingSplitProgrammatically ( ) { openTestURL ( ) ; $ ( com . vaadin . testbench . elements . GridElement . class ) . first ( ) . getCell ( 21 , 0 ) . click ( ) ; java . util . List < org . openqa . selenium . WebElement > cells = findElements ( org . openqa . selenium . By . className ( "v-gr...
org . junit . Assert . assertTrue ( foundCell21 )
testBetweenPredicate ( ) { java . util . List < io . datakernel . cube . DataItemResult > expected = asList ( new io . datakernel . cube . DataItemResult ( 5 , 77 , 0 , 88 , 98 ) , new io . datakernel . cube . DataItemResult ( 5 , 99 , 40 , 36 , 0 ) , new io . datakernel . cube . DataItemResult ( 8 , 42 , 0 , 33 , 17 )...
org . junit . Assert . assertEquals ( expected , list )
testGoodQuery ( ) { org . easymock . EasyMock . expect ( testServletRequest . getAttribute ( AuthConfig . DRUID_AUTHORIZATION_CHECKED ) ) . andReturn ( null ) . anyTimes ( ) ; org . easymock . EasyMock . expect ( testServletRequest . getAttribute ( AuthConfig . DRUID_ALLOW_UNSECURED_PATH ) ) . andReturn ( null ) . anyT...
org . junit . Assert . assertNotNull ( response )
chain_should_assemble_serial_of_2 ( ) { net . mostlyoriginal . api . operation . common . OperationFlow operation = sequence ( new net . mostlyoriginal . api . operation . common . TestOperation ( ) , new net . mostlyoriginal . api . operation . common . TestOperation ( ) ) ; "<AssertPlaceHolder>" ; } sequence ( net . ...
org . junit . Assert . assertEquals ( 2 , operation . operations . size )
testNotAllowed ( ) { final org . kie . workbench . common . stunner . core . rule . RuleViolations FAILED_VIOLATIONS = new org . kie . workbench . common . stunner . core . rule . violations . DefaultRuleViolations ( ) . addViolation ( new org . kie . workbench . common . stunner . core . rule . violations . Cardinalit...
org . junit . Assert . assertEquals ( CommandResult . Type . ERROR , result . getType ( ) )
register ( ) { liquibase . parser . ChangeLogParserFactory . getInstance ( ) . unregisterAllParsers ( ) ; org . junit . Assume . assumeThat ( liquibase . parser . ChangeLogParserFactory . getInstance ( ) . getParsers ( ) , empty ( ) ) ; liquibase . parser . ChangeLogParserFactory . getInstance ( ) . register ( new liqu...
org . junit . Assert . assertEquals ( 1 , liquibase . parser . ChangeLogParserFactory . getInstance ( ) . getParsers ( ) . size ( ) )
testFetchByPrimaryKeyMissing ( ) { long pk = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; com . liferay . wiki . model . WikiPage missingWikiPage = _persistence . fetchByPrimaryKey ( pk ) ; "<AssertPlaceHolder>" ; } fetchByPrimaryKey ( long ) { return com . liferay . adaptive . media ...
org . junit . Assert . assertNull ( missingWikiPage )
testParseThreat80 ( ) { org . json . simple . JSONObject actual = parser . parse ( org . apache . metron . parsers . paloalto . BasicPaloAltoFirewallParserTest . THREAT_80 . getBytes ( ) ) . get ( 0 ) ; org . json . simple . JSONObject expected = new org . json . simple . JSONObject ( ) ; expected . put ( BasicPaloAlto...
org . junit . Assert . assertEquals ( expected , actual )
testGreatUncleIsAssignableFromChild ( ) { final org . jboss . errai . codegen . meta . MetaClass metaChild = getMetaClass ( org . jboss . errai . codegen . test . model . tree . Child . class ) ; final org . jboss . errai . codegen . meta . MetaClass metaGreatUncle = getMetaClass ( org . jboss . errai . codegen . test ...
org . junit . Assert . assertTrue ( metaGreatUncle . isAssignableFrom ( metaChild ) )
testSuperAdminPermissionTest ( ) { com . google . gson . JsonObject metrics = org . restcomm . connect . testsuite . tools . MonitoringServiceTool . getInstance ( ) . getMetrics ( deploymentUrl . toString ( ) , superAdminAccountSid , superAdminAuthToken ) ; "<AssertPlaceHolder>" ; } toString ( ) { return ( ( ( ( ( ( ( ...
org . junit . Assert . assertNotNull ( metrics )
testValues ( ) { for ( org . jscep . asn1 . ScepObjectIdentifier oid : org . jscep . asn1 . ScepObjectIdentifier . values ( ) ) { "<AssertPlaceHolder>" ; } } valueOf ( int ) { for ( org . jscep . transaction . MessageType msgType : org . jscep . transaction . MessageType . values ( ) ) { if ( ( msgType . getValue ( ) )...
org . junit . Assert . assertSame ( oid , org . jscep . asn1 . ScepObjectIdentifier . valueOf ( oid . name ( ) ) )
testAreAllSectionsValid ( ) { org . gbif . ipt . model . Resource resource = new org . gbif . ipt . model . Resource ( ) ; org . gbif . metadata . eml . Eml empty = new org . gbif . metadata . eml . Eml ( ) ; resource . setEml ( empty ) ; org . gbif . ipt . model . Organisation organisation = new org . gbif . ipt . mod...
org . junit . Assert . assertTrue ( validator . areAllSectionsValid ( action , resource ) )
uncontendedWriteLockMustBeAvailableAfterFlushLock ( ) { pageList . unlockExclusive ( pageRef ) ; long s = pageList . tryFlushLock ( pageRef ) ; pageList . unlockFlush ( pageRef , s , true ) ; "<AssertPlaceHolder>" ; } tryWriteLock ( long ) { long s ; long n ; for ( ; ; ) { s = org . neo4j . io . pagecache . impl . muni...
org . junit . Assert . assertTrue ( pageList . tryWriteLock ( pageRef ) )
roundTripOfTimestampIntervalCollection ( ) { net . time4j . range . TimestampInterval i1 = net . time4j . range . TimestampInterval . between ( net . time4j . PlainTimestamp . of ( 2014 , 2 , 27 , 0 , 0 ) , net . time4j . PlainTimestamp . of ( 2014 , 5 , 14 , 0 , 0 ) ) ; net . time4j . range . TimestampInterval i2 = ne...
org . junit . Assert . assertThat ( windows , org . hamcrest . CoreMatchers . is ( ser ) )
testMbr ( ) { com . github . davidmoten . rtree . geometry . Point p = com . github . davidmoten . rtree . geometry . Geometries . point ( 1 , 2 ) ; com . github . davidmoten . rtree . geometry . Point p2 = com . github . davidmoten . rtree . geometry . Geometries . point ( 1 , 2 ) ; "<AssertPlaceHolder>" ; } point ( d...
org . junit . Assert . assertEquals ( p , p2 )
shouldGetMeanX ( ) { int [ ] windowWeights = new int [ ] { 1 , 2 , 1 } ; com . orange . dgil . trail . TestTools . setObj ( "windowWeights" , com . orange . dgil . trail . core . vecto . linearwindowfilter . LinearWindowFilter . class , filter , windowWeights ) ; com . orange . dgil . trail . TestTools . setObj ( "weig...
org . junit . Assert . assertEquals ( 4 , res )
isRunningNegative ( ) { eu . chargetime . ocpp . utilities . Stopwatch stopwatch = eu . chargetime . ocpp . utilities . Stopwatch . createUnstarted ( ) ; stopwatch . start ( ) ; stopwatch . stop ( ) ; "<AssertPlaceHolder>" ; } stop ( ) { eu . chargetime . ocpp . utilities . Stopwatch stopwatch = eu . chargetime . ocpp ...
org . junit . Assert . assertThat ( stopwatch . isRunning ( ) , org . hamcrest . CoreMatchers . is ( false ) )
localtimeSpecificValues ( ) { java . lang . String n = "" ; for ( int i = 1 ; i <= 9 ; i ++ ) { n += ( ( char ) ( 48 + i ) ) ; com . dslplatform . json . LocalDateTime value = com . dslplatform . json . LocalDateTime . parse ( ( "1919-03-05T04:51:49." + n ) ) ; com . dslplatform . json . JsonWriter jw = new com . dslpl...
org . junit . Assert . assertEquals ( value , deser )
givenNonEmptyList_whenIsEmpty_thenFalseIsReturned ( ) { java . util . List < java . lang . Object > list = new com . baeldung . java . list . CustomList ( ) ; list . add ( null ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return ( internal . length ) == 0 ; }
org . junit . Assert . assertFalse ( list . isEmpty ( ) )
G_customCaseFieldSteps_W_caseStringWithCustomStepsField_T_correctDeserializationAndStepsField ( ) { com . codepine . api . testrail . model . CaseField stepField = com . codepine . api . testrail . internal . CaseModuleTest . objectMapper . readValue ( this . getClass ( ) . getResourceAsStream ( "/step_field.json" ) , ...
org . junit . Assert . assertEquals ( expectedCase , actualCase )
testIsInternalURL_Null ( ) { "<AssertPlaceHolder>" ; } isInternalURL ( java . lang . String ) { if ( ( serviceAccessURL == null ) || ( ( serviceAccessURL . length ( ) ) == 0 ) ) { return false ; } return ( org . oscm . ui . dialog . mp . landingpage . EnterpriseLandingpageCtrl . isMatch ( serviceAccessURL , getApplicat...
org . junit . Assert . assertFalse ( model . isInternalURL ( null ) )
compliantUntilDateIsDateOfFirstEntitlementToExpireCausingNonCompliant ( ) { org . candlepin . model . Consumer consumer = mockConsumer ( PRODUCT_1 , PRODUCT_2 ) ; java . util . Date start = org . candlepin . test . TestUtil . createDate ( 2005 , 6 , 12 ) ; org . candlepin . model . Entitlement ent1 = mockEntitlement ( ...
org . junit . Assert . assertEquals ( expectedDate , status . getCompliantUntil ( ) )
convert_string_array_to_list_with_spring ( ) { java . lang . String [ ] planetsAsStringArray = new java . lang . String [ ] { "The<sp>Sun" , "Mercury" , "Venus" , "Earth" , "Mars" , "Jupiter" , "Saturn" , "Uranus" , "Neptune" } ; @ com . levelup . java . collections . SuppressWarnings ( "unchecked" ) java . util . List...
org . junit . Assert . assertEquals ( 9 , planetsAsArrayList . size ( ) )
getCharsetNameRegressionTest ( ) { java . lang . String expected = StandardCharsets . UTF_8 . name ( ) ; java . lang . String actual = new com . itextpdf . svg . processors . impl . SvgConverterProperties ( ) . getCharset ( ) ; "<AssertPlaceHolder>" ; } getCharset ( ) { return null ; }
org . junit . Assert . assertEquals ( expected , actual )
testSchemaNotFoundForWrongWorkspace ( ) { final java . lang . String table = java . lang . String . format ( "%s/empty" , TestTools . WORKING_PATH . resolve ( TestTools . TEST_RESOURCES_REL ) ) ; final java . lang . String query = java . lang . String . format ( "select<sp>*<sp>from<sp>dfs.tmp1.`%s`" , table ) ; try { ...
org . junit . Assert . assertTrue ( isSchemaNotFound )
test_step_finished_adds_the_step_exeption_for_pending_steps ( ) { createNonStrictReporter ( ) ; createDefaultRunNotifier ( ) ; setUpNoStepNotifierAndStepErrors ( ) ; java . lang . Throwable exception = new cucumber . api . PendingException ( ) ; cucumber . api . Result result = mockResult ( Result . Type . PENDING , ex...
org . junit . Assert . assertEquals ( java . util . Arrays . asList ( exception ) , jUnitReporter . stepErrors )
shouldExecuteAndReturnError ( ) { when ( connection . getContentType ( ) ) . thenReturn ( "text/html;<sp>charset=UTF-8" ) ; when ( connection . getErrorStream ( ) ) . thenReturn ( inputStream ) ; when ( connection . getInputStream ( ) ) . thenReturn ( null ) ; when ( connection . getResponseCode ( ) ) . thenReturn ( 40...
org . junit . Assert . assertEquals ( expectedResponse , response )
testPelzGoodApproximation ( ) { org . hipparchus . stat . inference . KolmogorovSmirnovTest ksTest = new org . hipparchus . stat . inference . KolmogorovSmirnovTest ( ) ; final double [ ] d = new double [ ] { 0.15 , 0.2 , 0.25 , 0.3 , 0.35 , 0.4 } ; final int [ ] n = new int [ ] { 141 , 150 , 180 , 220 , 1000 } ; final...
org . junit . Assert . assertEquals ( ref [ k ] , ksTest . pelzGood ( d [ i ] , n [ j ] ) , tol )
testToolchainsForUnknownType ( ) { org . apache . maven . execution . MavenSession session = mock ( org . apache . maven . execution . MavenSession . class ) ; org . apache . maven . execution . MavenExecutionRequest req = new org . apache . maven . execution . DefaultMavenExecutionRequest ( ) ; when ( session . getReq...
org . junit . Assert . assertEquals ( 0 , toolchains . length )
testEqualsSelf ( ) { org . jfree . data . time . TimePeriodValue tpv = new org . jfree . data . time . TimePeriodValue ( new org . jfree . data . time . Day ( ) , 55.75 ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( obj == ( this ) ) { return true ; } if ( ! ( obj instanceof org . jfree . data . x...
org . junit . Assert . assertTrue ( tpv . equals ( tpv ) )
shouldReportIndexDoesNotExist ( ) { org . neo4j . kernel . impl . api . state . ExplicitIndexTransactionStateImpl state = newExplicitIndexTxState ( ) ; when ( indexConfigStore . get ( any ( java . lang . Class . class ) , anyString ( ) ) ) . thenReturn ( null ) ; boolean exists = state . checkIndexExistence ( IndexEnti...
org . junit . Assert . assertFalse ( exists )
testWrite ( ) { java . util . List < java . util . List < org . datavec . api . writable . Writable > > list = new java . util . ArrayList ( ) ; java . lang . StringBuilder sb = new java . lang . StringBuilder ( ) ; for ( int i = 0 ; i < 10 ; i ++ ) { java . util . List < org . datavec . api . writable . Writable > tem...
org . junit . Assert . assertEquals ( expected , fileContents )
testSimpleWithDecimalsTrunc ( ) { org . apache . commons . math3 . complex . Complex c = new org . apache . commons . math3 . complex . Complex ( 1.2323 , 1.4343 ) ; java . lang . String expected = ( ( ( "1" + ( getDecimalCharacter ( ) ) ) + "23<sp>+<sp>1" ) + ( getDecimalCharacter ( ) ) ) + "43i" ; java . lang . Strin...
org . junit . Assert . assertEquals ( expected , actual )
setMavenRepositoryPassword ( ) { org . robolectric . MavenRoboSettings . setMavenRepositoryPassword ( "password" ) ; "<AssertPlaceHolder>" ; } getMavenRepositoryPassword ( ) { return org . robolectric . MavenRoboSettings . mavenRepositoryPassword ; }
org . junit . Assert . assertEquals ( "password" , org . robolectric . MavenRoboSettings . getMavenRepositoryPassword ( ) )
testAlbumResponse ( ) { java . lang . String json = readJson ( "album.json" ) ; com . sangupta . imgur . api . model . Album . AlbumWrapper wrapper = com . sangupta . jerry . util . GsonUtils . getGson ( ) . fromJson ( json , com . sangupta . imgur . api . model . Album . AlbumWrapper . class ) ; "<AssertPlaceHolder>" ...
org . junit . Assert . assertNotNull ( wrapper . data )
addFilter_firstAddedUsedFirst ( ) { dataProvider . addFilter ( ( item ) -> false ) ; dataProvider . addFilter ( ( item ) -> { org . junit . Assert . fail ( "This<sp>filter<sp>should<sp>never<sp>be<sp>invoked" ) ; return true ; } ) ; "<AssertPlaceHolder>" ; } sizeWithUnfilteredQuery ( ) { return getFlattenedDataFromProv...
org . junit . Assert . assertEquals ( 0 , sizeWithUnfilteredQuery ( ) )
testBOM ( ) { final java . net . URL url = java . lang . ClassLoader . getSystemClassLoader ( ) . getResource ( "CSVFileParser/bom.csv" ) ; try ( final org . apache . commons . csv . CSVParser parser = org . apache . commons . csv . CSVParser . parse ( url , java . nio . charset . Charset . forName ( org . apache . com...
org . junit . Assert . assertNotNull ( string )
testTocNumberOfPagesMultipleInA2 ( ) { org . sejda . model . parameter . MergeParameters params = new org . sejda . model . parameter . MergeParameters ( ) ; params . setTableOfContentsPolicy ( ToCPolicy . FILE_NAMES ) ; for ( int i = 1 ; i < 40 ; i ++ ) { params . addInput ( new org . sejda . model . input . PdfMergeI...
org . junit . Assert . assertEquals ( 2 , victim . tocNumberOfPages ( ) )
testCompletedStudyFalseWithLessThanTwoArms ( ) { d_pm . getEvidenceTypeHolder ( ) . setValue ( BRAType . SingleStudy ) ; org . drugis . addis . presentation . wizard . StudyCriteriaAndAlternativesPresentation pm = d_pm . getStudyBRPresentation ( ) ; org . drugis . addis . entities . Study study = org . drugis . addis ....
org . junit . Assert . assertFalse ( ( ( java . lang . Boolean ) ( pm . getCompleteModel ( ) . getValue ( ) ) ) )
saveANewPdcAxisValue ( ) { com . silverpeas . pdc . model . PdcAxisValue theNewValue = com . silverpeas . pdc . model . PdcAxisValue . aPdcAxisValue ( "100" , "10" ) ; theNewValue = savePdcAxisValue ( theNewValue ) ; com . silverpeas . pdc . model . PdcAxisValue theSavedValue = findPdcAxisValue ( theNewValue . getId ( ...
org . junit . Assert . assertThat ( theSavedValue , is ( equalTo ( theNewValue ) ) )
testDefaultMaxComponentLength ( ) { int maxComponentLength = org . apache . hadoop . hdfs . server . namenode . TestFsLimits . conf . getInt ( DFSConfigKeys . DFS_NAMENODE_MAX_COMPONENT_LENGTH_KEY , DFSConfigKeys . DFS_NAMENODE_MAX_COMPONENT_LENGTH_DEFAULT ) ; "<AssertPlaceHolder>" ; } getInt ( java . lang . String , i...
org . junit . Assert . assertEquals ( 0 , maxComponentLength )
testSetTextReadOnly ( ) { combo = new org . eclipse . swt . custom . CCombo ( shell , org . eclipse . swt . SWT . READ_ONLY ) ; combo . setText ( "foo" ) ; "<AssertPlaceHolder>" ; } getText ( ) { checkWidget ( ) ; return getText ( 0 ) ; }
org . junit . Assert . assertEquals ( "foo" , combo . getText ( ) )
shouldNotMutateCodeGeneratedByCompilerToImplementEnums ( ) { createTesteeWith ( org . pitest . mutationtest . engine . gregor . config . Mutator . all ( ) ) ; final java . util . Collection < org . pitest . mutationtest . engine . MutationDetails > actualDetails = findMutationsFor ( org . pitest . mutationtest . engine...
org . junit . Assert . assertTrue ( actualDetails . isEmpty ( ) )
testMkdirsWithValidPathButNotCreated ( ) { setupRPC ( DFS . RpcType . MKDIRS_REQUEST , DFS . MkdirsRequest . newBuilder ( ) . setPath ( "/foo/bar" ) . setPermission ( 493 ) . build ( ) , DFS . RpcType . MKDIRS_RESPONSE , DFS . MkdirsResponse . newBuilder ( ) . setValue ( false ) . build ( ) ) ; org . apache . hadoop . ...
org . junit . Assert . assertFalse ( result )
testSerialize ( ) { net . floodlightcontroller . packet . Ethernet ethernet = new net . floodlightcontroller . packet . Ethernet ( ) . setDestinationMACAddress ( "de:ad:be:ef:de:ad" ) . setSourceMACAddress ( "be:ef:de:ad:be:ef" ) . setEtherType ( ( ( short ) ( 0 ) ) ) ; byte [ ] expected = new byte [ ] { ( ( byte ) ( 2...
org . junit . Assert . assertTrue ( java . util . Arrays . equals ( expected , ethernet . serialize ( ) ) )
testGetTimeStampSHA384 ( ) { be . fedict . eid . applet . service . signer . time . TimeStampServiceValidator validator = new test . be . fedict . eid . applet . TSPTimeStampServiceTest . TimeStampServiceTestValidator ( test . be . fedict . eid . applet . TSPTimeStampServiceTest . PROXY_HOST , test . be . fedict . eid ...
org . junit . Assert . assertNotNull ( result )
shouldSetExternalTaskRetriesSync ( ) { java . util . List < org . camunda . bpm . engine . externaltask . ExternalTask > externalTasks = externalTaskService . createExternalTaskQuery ( ) . list ( ) ; java . util . ArrayList < java . lang . String > externalTaskIds = new java . util . ArrayList < java . lang . String > ...
org . junit . Assert . assertEquals ( 10 , ( ( int ) ( task . getRetries ( ) ) ) )
checkCommunicationFailed ( ) { org . linagora . linshare . service . ClamavVirusScannerServiceImplTest . logger . info ( LinShareTestConstants . BEGIN_TEST ) ; boolean hasFailed = false ; try { org . linagora . linshare . core . business . service . VirusScannerBusinessService wrongVirusScannerService = new org . linag...
org . junit . Assert . assertTrue ( hasFailed )
testMultiThreadForSingleUsers ( ) { threadTestScope . setSingleThread ( true ) ; java . util . Set < org . cyclop . model . QueryHistory > histories = executeMultiThreadTest ( 100 ) ; "<AssertPlaceHolder>" ; } size ( ) { lock . lock ( ) ; try { return favourites . size ( ) ; } finally { lock . unlock ( ) ; } }
org . junit . Assert . assertEquals ( 1 , histories . size ( ) )
complex_fipa_exchange ( ) { final java . lang . String rulebase = "rules/reloaded/test023.prova" ; java . util . concurrent . atomic . AtomicInteger count = new java . util . concurrent . atomic . AtomicInteger ( ) ; java . util . Map < java . lang . String , java . lang . Object > globals = new java . util . HashMap <...
org . junit . Assert . assertEquals ( 8 , count . get ( ) )
testGetLocation ( ) { java . lang . String location = com . intel . mtwilson . util . ResourceFinder . getLocation ( "config/test1.txt" ) ; "<AssertPlaceHolder>" ; } getLocation ( java . lang . String ) { return com . intel . mtwilson . util . ResourceFinder . getURL ( filename ) . toExternalForm ( ) ; }
org . junit . Assert . assertNotNull ( location )
getJob ( ) { standbyJobService . saveJob ( getSampleJarFile ( ) , "com.zuoxiaolong" ) ; com . zuoxiaolong . niubi . job . persistent . entity . StandbyJob job = standbyJobService . getJob ( "com.zuoxiaolong.niubi.job.sample.spring.job.Job1" , "test" , "niubi-job-sample-spring.jar" ) ; "<AssertPlaceHolder>" ; } getJob (...
org . junit . Assert . assertNotNull ( job )
saveTenant ( ) { java . lang . String mobile = "159191804689" ; java . lang . String name = "zheng" ; com . micro . rent . pc . entity . Tenant guest = tenantService . registerTenant ( mobile , name ) ; "<AssertPlaceHolder>" ; } registerTenant ( java . lang . String , java . lang . String ) { com . micro . rent . pc . ...
org . junit . Assert . assertNotNull ( guest )
testFindByPrimaryKeyExisting ( ) { com . liferay . dynamic . data . mapping . model . DDMStructure newDDMStructure = addDDMStructure ( ) ; com . liferay . dynamic . data . mapping . model . DDMStructure existingDDMStructure = _persistence . findByPrimaryKey ( newDDMStructure . getPrimaryKey ( ) ) ; "<AssertPlaceHolder>...
org . junit . Assert . assertEquals ( existingDDMStructure , newDDMStructure )
getMessageWithMockUser ( ) { java . lang . String message = messageService . getMessage ( ) ; System . out . println ( ( "<sp><sp>:" + message ) ) ; "<AssertPlaceHolder>" ; } getMessage ( ) { org . springframework . security . core . Authentication authentication = org . springframework . security . core . context . Se...
org . junit . Assert . assertNotNull ( message )
testMatchExactlyNodePortNotFoundErr ( ) { queriesString = "type=node&enabled=true&path=node_id=node01,port_id=port01" ; target = new org . o3project . odenos . core . component . network . flow . query . BasicFlowQuery ( queriesString ) ; target . parse ( ) ; java . util . List < org . o3project . odenos . core . compo...
org . junit . Assert . assertThat ( target . matchExactly ( flow ) , org . hamcrest . CoreMatchers . is ( false ) )
testEnumConstantWithArgument ( ) { com . thoughtworks . qdox . model . JavaField enumConstant = mock ( com . thoughtworks . qdox . model . JavaField . class ) ; when ( enumConstant . isEnumConstant ( ) ) . thenReturn ( true ) ; when ( enumConstant . getName ( ) ) . thenReturn ( "PENNY" ) ; com . thoughtworks . qdox . m...
org . junit . Assert . assertEquals ( expected , modelWriter . toString ( ) )
testSortPermutation1 ( ) { org . apache . commons . math3 . random . RandomGenerator rnd = new org . apache . commons . math3 . random . Well1024a ( ) ; for ( int i = 0 ; i < 100 ; ++ i ) { int [ ] a = cc . redberry . rings . util . ArraysUtilTest . randomPermutation ( 10 , rnd ) ; int [ ] sorted = a . clone ( ) ; int ...
org . junit . Assert . assertArrayEquals ( cc . redberry . rings . util . ArraysUtilTest . permute ( a , permutation ) , sorted )
readNonexistentPreferenceWithResolutionStrategyTest ( ) { final java . lang . String value = preferenceStorageServiceBackendImpl . read ( scopeResolutionStrategyInfo , "my.nonexistent.preference.key" ) ; "<AssertPlaceHolder>" ; } read ( org . uberfire . security . impl . authz . AuthorizationPolicyBuilder , java . util...
org . junit . Assert . assertNull ( value )
nextAfterEmptyIterable ( ) { java . lang . Object expected = new java . lang . Object ( ) ; org . eclipse . collections . impl . lazy . iterator . TapIterator < java . lang . Object > iterator = new org . eclipse . collections . impl . lazy . iterator . TapIterator ( Lists . fixedSize . of ( expected ) , ( object ) -> ...
org . junit . Assert . assertSame ( expected , iterator . next ( ) )
testGetExistInvitationByEmailWithNull ( ) { when ( mockedInvitationMapper . selectByExample ( org . mockito . Mockito . any ( com . onboard . domain . mapper . model . InvitationExample . class ) ) ) . thenReturn ( new java . util . ArrayList < com . onboard . domain . model . Invitation > ( ) ) ; com . onboard . domai...
org . junit . Assert . assertEquals ( ret , null )
when_setMetricsConfig_thenReturnsMetricsConfig ( ) { com . hazelcast . jet . config . JetConfig jetConfig = new com . hazelcast . jet . config . JetConfig ( ) ; com . hazelcast . jet . config . MetricsConfig metricsConfig = new com . hazelcast . jet . config . MetricsConfig ( ) ; jetConfig . setMetricsConfig ( metricsC...
org . junit . Assert . assertEquals ( metricsConfig , jetConfig . getMetricsConfig ( ) )