input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testDoFnWithReturn ( ) { class MockFn extends org . apache . beam . sdk . transforms . DoFn < java . lang . String , java . lang . String > { @ org . apache . beam . sdk . transforms . DoFn . ProcessElement public org . apache . beam . sdk . transforms . reflect . ProcessContinuation processElement ( org . apache . bea...
org . junit . Assert . assertEquals ( resume ( ) , invokeProcessElement ( fn ) )
shouldGetCredentialsFromSysEnv ( ) { br . com . uol . pagseguro . api . PagSeguroEnv expectedEnv = br . com . uol . pagseguro . api . PagSeguroEnv . SANDBOX ; when ( jvmEnvVariableEnvironmentProvider . getEnvironment ( ) ) . thenThrow ( new java . lang . IllegalArgumentException ( ) ) ; when ( systemPropEnvironmentProv...
org . junit . Assert . assertEquals ( expectedEnv , env )
testToBuilder ( ) { compareDiskInfo ( com . google . cloud . compute . deprecated . DiskInfoTest . DISK_INFO , com . google . cloud . compute . deprecated . DiskInfoTest . DISK_INFO . toBuilder ( ) . build ( ) ) ; compareDiskInfo ( com . google . cloud . compute . deprecated . DiskInfoTest . IMAGE_DISK_INFO , com . goo...
org . junit . Assert . assertEquals ( "newDescription" , diskInfo . getDescription ( ) )
testTagPushEvent ( ) { org . gitlab4j . api . webhook . Event pushEvent = makeFakeApiCall ( org . gitlab4j . api . webhook . TagPushEvent . class , "tag-push-event" ) ; "<AssertPlaceHolder>" ; } compareJson ( T , java . lang . String ) { java . io . InputStreamReader reader = new java . io . InputStreamReader ( org . g...
org . junit . Assert . assertTrue ( compareJson ( pushEvent , "tag-push-event" ) )
selectInstancesOf ( ) { com . gs . collections . api . collection . ImmutableCollection < java . lang . Integer > integers = this . classUnderTest ( ) ; com . gs . collections . api . collection . ImmutableCollection < java . lang . Integer > result = integers . selectInstancesOf ( com . gs . collections . impl . colle...
org . junit . Assert . assertEquals ( integers , result )
testJsrAbandon ( ) { org . springframework . batch . core . JobExecution jobExecution = org . springframework . batch . test . MetaDataInstanceFactory . createJobExecution ( 123L ) ; jobExecution . setEndTime ( new java . util . Date ( ) ) ; jobExecution . setStatus ( BatchStatus . FAILED ) ; org . springframework . ba...
org . junit . Assert . assertEquals ( BatchStatus . ABANDONED , result . getStatus ( ) )
testJDK3 ( ) { net . sourceforge . cobertura . jdk . JDKTest . setupAndExecuteTest ( "1.3" ) ; int hitCount = net . sourceforge . cobertura . test . util . TestUtils . getTotalHitCount ( net . sourceforge . cobertura . jdk . JDKTest . dom , "mypackage.JDKTEST" , "main" ) ; "<AssertPlaceHolder>" ; } getTotalHitCount ( g...
org . junit . Assert . assertEquals ( 2 , hitCount )
testSavesSettedActive ( ) { indicator . setCount ( 2 ) ; indicator . setActive ( 1 ) ; "<AssertPlaceHolder>" ; } getActive ( ) { return activeIndex ; }
org . junit . Assert . assertEquals ( 1 , indicator . getActive ( ) )
testFromSimpleStringWithExpires ( ) { javax . ws . rs . core . NewCookie c = javax . ws . rs . core . NewCookie . valueOf ( "foo=bar;Expires=Wed,<sp>09<sp>Jun<sp>2021<sp>10:18:14<sp>GMT" ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return value ; }
org . junit . Assert . assertTrue ( ( ( "bar" . equals ( c . getValue ( ) ) ) && ( "foo" . equals ( c . getName ( ) ) ) ) )
shouldGetSnapshotTriggeringEventsWithPreviousSnapshot ( ) { com . networknt . eventuate . server . jdbckafkastore . SnapshotTriggeringEvents ste1 = new com . networknt . eventuate . server . jdbckafkastore . SnapshotTriggeringEvents ( ) ; ste1 . add ( a_1_99 ) ; java . lang . String triggeringEvents = com . networknt ....
org . junit . Assert . assertFalse ( ste . isEmpty ( ) )
testAddSituationExchangeNonEmptyMissingJourney ( ) { org . onebusaway . transit_data . model . service_alerts . ServiceAlertBean serviceAlertBean = org . onebusaway . nyc . presentation . impl . service_alerts . ServiceAlertsTestSupport . createServiceAlertBean ( "MTA<sp>NYCT_100" ) ; nycTransitDataService = mock ( org...
org . junit . Assert . assertEquals ( 0 , list . size ( ) )
shouldNeverValidateNullUserII ( ) { final uk . gov . gchq . gaffer . federatedstore . FederatedAccess access = new uk . gov . gchq . gaffer . federatedstore . FederatedAccess . Builder ( ) . graphAuths ( ( ( java . lang . String [ ] ) ( null ) ) ) . build ( ) ; "<AssertPlaceHolder>" ; } isValidToExecute ( uk . gov . gc...
org . junit . Assert . assertFalse ( access . isValidToExecute ( null ) )
testTimeZone ( ) { final java . text . DateFormat df = new java . text . SimpleDateFormat ( "yyyy-MM-dd<sp>hh:mm" ) ; df . setTimeZone ( DateHelper . EUROPE_BERLIN ) ; final java . util . Date mezDate = df . parse ( "2008-03-14<sp>17:25" ) ; final long mezMillis = mezDate . getTime ( ) ; df . setTimeZone ( DateHelper ....
org . junit . Assert . assertEquals ( mezMillis , utcMillis )
testAsBytes ( ) { org . nd4j . linalg . api . ndarray . INDArray arr = org . nd4j . linalg . factory . Nd4j . create ( 5 ) ; byte [ ] d = arr . data ( ) . asBytes ( ) ; "<AssertPlaceHolder>" ; org . nd4j . linalg . api . ndarray . INDArray rand = org . nd4j . linalg . factory . Nd4j . rand ( 3 , 3 ) ; rand . data ( ) ....
org . junit . Assert . assertEquals ( getFailureMessage ( ) , ( 4 * 5 ) , d . length )
treeMapPerformanceTest ( ) { java . lang . String mSig = "<java.util.TreeMap:<sp>void<sp><init>(java.util.Map)>" ; soot . jimple . infoflow . methodSummary . generator . SummaryGenerator gen = getSummary ( ) ; gen . getConfig ( ) . setFlowSensitiveAliasing ( false ) ; java . util . Set < soot . jimple . infoflow . meth...
org . junit . Assert . assertNotNull ( flow )
testGetServiceWithCustomComparator ( ) { com . liferay . osgi . service . tracker . collections . list . ServiceTrackerList < java . lang . Object , java . lang . Object > serviceTrackerList = com . liferay . osgi . service . tracker . collections . list . ServiceTrackerListFactory . open ( _bundleContext , java . lang...
org . junit . Assert . assertEquals ( serviceTrackerList . toString ( ) , 2 , serviceTrackerList . size ( ) )
testIssue307 ( ) { org . nutz . lang . util . Context context = org . nutz . lang . Lang . context ( ) ; java . util . List < java . lang . String > list = new java . util . ArrayList < java . lang . String > ( ) ; list . add ( "jk" ) ; context . set ( "list" , list ) ; context . set ( "System" , org . nutz . el . Syst...
org . junit . Assert . assertEquals ( 2 , list . size ( ) )
hmget ( ) { org . idevlab . rjc . Map < java . lang . String , java . lang . String > hash = new org . idevlab . rjc . HashMap < java . lang . String , java . lang . String > ( ) ; hash . put ( "bar" , "car" ) ; hash . put ( "car" , "bar" ) ; session . hmset ( "foo" , hash ) ; org . idevlab . rjc . List < java . lang ....
org . junit . Assert . assertEquals ( expected , values )
queryHeliportByBboxPathToGeometry ( ) { org . deegree . filter . expression . ValueReference propName = new org . deegree . filter . expression . ValueReference ( "aixm:timeSlice/aixm:AirportHeliportTimeSlice/aixm:ARP/aixm:ElevatedPoint" , nsContext ) ; org . deegree . geometry . Envelope env = new org . deegree . geom...
org . junit . Assert . assertEquals ( 1 , fc . size ( ) )
testWithDynamicClassPathWithPermissions ( ) { com . picocontainer . classname . DefaultClassLoadingPicoContainer parent = new com . picocontainer . classname . DefaultClassLoadingPicoContainer ( ) ; java . io . Reader script = new java . io . StringReader ( ( "TestHelper<sp>=<sp>com.picocontainer.script.TestHelper\n" +...
org . junit . Assert . assertEquals ( 1 , pico . getComponents ( ) . size ( ) )
testSchemaValidation ( ) { io . cdap . cdap . etl . api . Transform < io . cdap . cdap . api . data . format . StructuredRecord , io . cdap . cdap . api . data . format . StructuredRecord > decoder = new io . cdap . plugin . Decoder ( new io . cdap . plugin . Decoder . Config ( "a:BASE64" , io . cdap . plugin . Decoder...
org . junit . Assert . assertEquals ( io . cdap . plugin . DecoderTest . OUTPUT , mockPipelineConfigurer . getOutputSchema ( ) )
testSet_IndexCheck_Valid ( ) { org . la4j . vector . SparseVector a = org . la4j . vector . sparse . SparseVectorTest . v ( 0.0 , 0.0 , 1.0 , 0.0 , 0.0 ) ; a . set ( 0 , 1.0 ) ; "<AssertPlaceHolder>" ; } get ( int ) { return getOrElse ( i , 0.0 ) ; }
org . junit . Assert . assertEquals ( 1.0 , a . get ( 0 ) , 0.0 )
loadWithNullReturnsNull ( ) { "<AssertPlaceHolder>" ; } load ( org . xwiki . bridge . DocumentModelBridge ) { try { return getEntityConstructor ( ) . newInstance ( document ) ; } catch ( java . lang . IllegalArgumentException | java . lang . reflect . InvocationTargetException ex ) { this . logger . info ( "Tried<sp>to...
org . junit . Assert . assertNull ( this . manager . load ( null ) )
testGridLayer ( ) { rapaio . data . Var x = df . rvar ( 0 ) . withName ( "x" ) ; rapaio . data . Var y = df . rvar ( 1 ) . withName ( "y" ) ; rapaio . graphics . base . Figure fig = gridLayer ( 3 , 3 ) . add ( 1 , 1 , 2 , 2 , points ( x , y , sz ( 2 ) ) ) . add ( 3 , 2 , 2 , 1 , hist2d ( x , y , color ( 2 ) ) ) . add (...
org . junit . Assert . assertTrue ( bufferedImagesEqual ( bi1 , bi2 ) )
testVolumeLockAfterUserLock ( ) { org . apache . hadoop . ozone . om . OzoneManagerLock lock = new org . apache . hadoop . ozone . om . OzoneManagerLock ( new org . apache . hadoop . hdds . conf . OzoneConfiguration ( ) ) ; lock . acquireUserLock ( "userOne" ) ; lock . acquireVolumeLock ( "volOne" ) ; lock . releaseVol...
org . junit . Assert . assertTrue ( true )
testShutdown ( ) { try ( com . zaxxer . hikari . HikariDataSource ds = new com . zaxxer . hikari . HikariDataSource ( basicConfig ( ) ) ) { ds . close ( ) ; "<AssertPlaceHolder>" ; } } isRunning ( ) { return ( ( pool ) != null ) && ( ( pool . poolState ) == ( POOL_NORMAL ) ) ; }
org . junit . Assert . assertFalse ( ds . isRunning ( ) )
testDuplicateConfigUpdate ( ) { java . lang . String namespace = "oldspace" ; java . lang . String type = "user" ; io . cdap . cdap . config . Config myConfig = new io . cdap . cdap . config . Config ( "abcd" , java . util . Collections . emptyMap ( ) ) ; io . cdap . cdap . config . UserConfigStoreTest . configStore . ...
org . junit . Assert . assertEquals ( 1 , io . cdap . cdap . config . UserConfigStoreTest . configStore . list ( namespace , type ) . size ( ) )
testBuildContainerWithParentAttribute ( ) { com . picocontainer . classname . DefaultClassLoadingPicoContainer parent = new com . picocontainer . classname . DefaultClassLoadingPicoContainer ( ) ; parent . addComponent ( "hello" , "world" ) ; java . io . Reader script = new java . io . StringReader ( ( "" + ( ( ( ( "pa...
org . junit . Assert . assertEquals ( "world" , pico . getComponent ( "hello" ) )
testOnTransactionAbort ( ) { final org . opendaylight . controller . cluster . databroker . actors . dds . ClientSnapshot clientSnapshot = object ( ) . doCreateSnapshot ( ) ; "<AssertPlaceHolder>" ; } abort ( ) { return delegate . abort ( ) ; }
org . junit . Assert . assertTrue ( clientSnapshot . abort ( ) )
testBetaRangeBelowMinusOne ( ) { try { new org . apache . commons . math4 . random . StableRandomGenerator ( rg , 1.0 , ( - 2.0 ) ) ; org . junit . Assert . fail ( "Expected<sp>OutOfRangeException" ) ; } catch ( org . apache . commons . math4 . exception . OutOfRangeException e ) { "<AssertPlaceHolder>" ; } } getArgume...
org . junit . Assert . assertEquals ( ( - 2.0 ) , e . getArgument ( ) )
testOnExperienceOrbTargetPlayerNotOrb ( ) { entity = mock ( org . bukkit . entity . ArmorStand . class ) ; epl . onExperienceOrbTargetPlayer ( e ) ; "<AssertPlaceHolder>" ; org . mockito . Mockito . verify ( notifier , org . mockito . Mockito . never ( ) ) . notify ( org . mockito . Mockito . any ( ) , org . mockito . ...
org . junit . Assert . assertNotNull ( e . getTarget ( ) )
testRemoveEndingString7 ( ) { final java . lang . String EXPECT = "removeEnding" ; final java . lang . String ENDING = "/" ; java . lang . String testString = ( ( ( ENDING + ENDING ) + EXPECT ) + ENDING ) + ENDING ; java . lang . String result = org . talend . utils . string . StringUtilities . removeEndingString ( tes...
org . junit . Assert . assertTrue ( ( ( ENDING + ENDING ) + EXPECT ) . equals ( result ) )
testEmpty ( ) { com . github . davidmoten . rx2 . internal . flowable . DelimitedStringLinkedList s = new com . github . davidmoten . rx2 . internal . flowable . DelimitedStringLinkedList ( ":" ) ; "<AssertPlaceHolder>" ; } next ( ) { return com . github . davidmoten . rx2 . SpecializedMpscLinkedQueue . Node . get ( ) ...
org . junit . Assert . assertNull ( s . next ( ) )
testHasHits_empty ( ) { final boolean [ ] probes = new boolean [ ] { } ; final org . jacoco . core . data . ExecutionData e = new org . jacoco . core . data . ExecutionData ( 5 , "Example" , probes ) ; "<AssertPlaceHolder>" ; } hasHits ( ) { for ( final boolean p : probes ) { if ( p ) { return true ; } } return false ;...
org . junit . Assert . assertFalse ( e . hasHits ( ) )
single ( ) { biweekly . io . json . JCalValue value = biweekly . io . json . JCalValue . single ( "value" ) ; java . util . List < biweekly . io . json . JsonValue > expected = java . util . Arrays . asList ( new biweekly . io . json . JsonValue ( "value" ) ) ; java . util . List < biweekly . io . json . JsonValue > ac...
org . junit . Assert . assertEquals ( expected , actual )
testFindByPrimaryKeyExisting ( ) { com . liferay . layout . page . template . model . LayoutPageTemplateStructureRel newLayoutPageTemplateStructureRel = addLayoutPageTemplateStructureRel ( ) ; com . liferay . layout . page . template . model . LayoutPageTemplateStructureRel existingLayoutPageTemplateStructureRel = _per...
org . junit . Assert . assertEquals ( existingLayoutPageTemplateStructureRel , newLayoutPageTemplateStructureRel )
getEnabledUsers_BoundaryConditions ( ) { "<AssertPlaceHolder>" ; } getEnabledUsers ( ) { java . util . List < com . namespace . domain . UserGAE > enabledUsers = this . userGaeDAO . findAllEnabledUsers ( true ) ; java . util . List < com . namespace . util . Pair < com . namespace . domain . Account , com . namespace ....
org . junit . Assert . assertEquals ( 0 , this . manager . getEnabledUsers ( ) . size ( ) )
runsEveryTestOfArray ( ) { org . junit . runner . Result result = org . junit . runner . JUnitCore . runClasses ( org . junit . tests . running . classes . ParameterizedTestTest . AdditionTestWithArray . class ) ; "<AssertPlaceHolder>" ; } getRunCount ( ) { return count . get ( ) ; }
org . junit . Assert . assertEquals ( 4 , result . getRunCount ( ) )
testGetAccessTokenWrongQueryRequest ( ) { javax . servlet . http . HttpServletRequest request = createMock ( javax . servlet . http . HttpServletRequest . class ) ; expect ( request . getQueryString ( ) ) . andStubReturn ( null ) ; replay ( request ) ; try { new org . apache . oltu . oauth2 . rs . request . OAuthAccess...
org . junit . Assert . assertNull ( e . getError ( ) )
testPreProcess ( ) { org . deeplearning4j . text . tokenization . tokenizer . preprocessor . StemmingPreprocessor preprocessor = new org . deeplearning4j . text . tokenization . tokenizer . preprocessor . StemmingPreprocessor ( ) ; java . lang . String test = "TESTING." ; java . lang . String output = preprocessor . pr...
org . junit . Assert . assertEquals ( "test" , output )
should_transfer_cmd_stopped_to_stopped ( ) { com . flow . platform . domain . Cmd cmd = new com . flow . platform . domain . Cmd ( ) ; cmd . setStatus ( CmdStatus . STOPPED ) ; "<AssertPlaceHolder>" ; } transfer ( com . flow . platform . domain . Cmd , boolean ) { if ( ( cmd == null ) || ( ( cmd . getStatus ( ) ) == nu...
org . junit . Assert . assertEquals ( NodeStatus . STOPPED , com . flow . platform . api . domain . job . NodeStatus . transfer ( cmd , false ) )
testUpdate_OptimisticLock ( ) { com . jmethods . catatumbo . DatastoreBatch batch = com . jmethods . catatumbo . DatastoreBatchTest . em . newBatch ( ) ; com . jmethods . catatumbo . entities . OptimisticLock1 entity = new com . jmethods . catatumbo . entities . OptimisticLock1 ( ) ; entity . setName ( "Batch<sp>Update...
org . junit . Assert . assertTrue ( ( ( entity . getVersion ( ) ) == 1 ) )
appendTextWithFormattedNewlines ( ) { final java . lang . String text = getConcatenatedText ( java . lang . String . format ( "%n" ) ) ; org . geotools . swing . dialog . JTextReporter . Connection conn = showDialog ( org . geotools . swing . dialog . JTextReporterTest . TITLE ) . get ( ) ; conn . append ( text ) ; win...
org . junit . Assert . assertEquals ( text , displayedText )
testClosestPointToPoint ( ) { org . parallax3d . parallax . math . Ray a = new org . parallax3d . parallax . math . Ray ( org . parallax3d . parallax . math . RayTest . one3 . clone ( ) , new org . parallax3d . parallax . math . Vector3 ( 0 , 0 , 1 ) ) ; org . parallax3d . parallax . math . Vector3 c = a . closestPoint...
org . junit . Assert . assertTrue ( c . equals ( org . parallax3d . parallax . math . RayTest . one3 ) )
testDecodeUnixSeconds ( ) { long testTimestamp = 140694727L ; long expectedTimestamp = 140694727000L ; java . util . Properties testProperties = new java . util . Properties ( ) ; testProperties . setProperty ( "camus.message.timestamp.format" , "unix_seconds" ) ; com . linkedin . camus . etl . kafka . coders . JsonStr...
org . junit . Assert . assertEquals ( expectedTimestamp , actualTimestamp )
testHDFSRepo ( ) { command . hdfs = true ; command . directory = "/tmp/data" ; "<AssertPlaceHolder>" ; verify ( console ) . trace ( contains ( "repo:hdfs:/tmp/data" ) ) ; } buildRepoURI ( ) { if ( ( repoURI ) != null ) { if ( repoURI . startsWith ( "repo:" ) ) { return repoURI ; } else { return "repo:" + ( repoURI ) ; ...
org . junit . Assert . assertEquals ( "repo:hdfs:/tmp/data" , command . buildRepoURI ( ) )
testZeroOut ( ) { System . out . println ( "zeroOut" ) ; jsat . linear . Matrix test = jsat . linear . MatrixOfVecsTest . C . clone ( ) ; test . zeroOut ( ) ; for ( int i = 0 ; i < ( test . rows ( ) ) ; i ++ ) for ( int j = 0 ; j < ( test . cols ( ) ) ; j ++ ) "<AssertPlaceHolder>" ; } get ( long , java . util . concur...
org . junit . Assert . assertEquals ( 0 , test . get ( i , j ) , 0 )
testChallenge ( ) { org . geoserver . security . decorators . ReadOnlyDataAccess ro = new org . geoserver . security . decorators . ReadOnlyDataAccess ( da , org . geoserver . security . WrapperPolicy . readOnlyChallenge ( null ) ) ; org . geoserver . security . decorators . SecuredFeatureSource fs = ( ( org . geoserve...
org . junit . Assert . assertTrue ( fs . policy . isReadOnlyChallenge ( ) )
isLoggedInAndSubscriptionManager_SubscriptionManager ( ) { org . oscm . internal . vo . VOUserDetails subscriptionManager = new org . oscm . internal . vo . VOUserDetails ( ) ; org . oscm . ui . beans . HashSet < org . oscm . internal . types . enumtypes . UserRoleType > userRoles = new org . oscm . ui . beans . HashSe...
org . junit . Assert . assertTrue ( isSubscriptionManager )
testGetEncoding_NoSpace_to_Nothing ( ) { "<AssertPlaceHolder>" ; } encode ( java . lang . String ) { return getStringEncoder ( ) . encode ( source ) ; }
org . junit . Assert . assertEquals ( "" , this . getStringEncoder ( ) . encode ( "" ) )
parseEqualsFilter ( ) { org . deegree . filter . Filter filter = testImportExportImport ( "testfilter21.xml" ) ; "<AssertPlaceHolder>" ; } testImportExportImport ( java . lang . String ) { java . net . URL url = org . deegree . filter . xml . Filter110XMLEncoderTest . class . getResource ( ( "v110/" + resource ) ) ; ja...
org . junit . Assert . assertNotNull ( filter )
should_say_version_is_latest_when_versions_match ( ) { when ( latestVersionFetcher . getLatestVersionNumber ( "1.2" , true ) ) . thenReturn ( com . google . common . base . Optional . of ( "1.2" ) ) ; updateService . scheduledFetchLatestVersion ( ) ; java . lang . Thread . sleep ( 500 ) ; "<AssertPlaceHolder>" ; verify...
org . junit . Assert . assertTrue ( updateService . isLatestVersion ( ) )
shouldConsiderTwoEquivalentObjectsEqual ( ) { java . lang . String [ ] children = new java . lang . String [ ] { "ch1" , "ch2" } ; com . mpatric . mp3agic . ID3v2ChapterTOCFrameData frameData1 = new com . mpatric . mp3agic . ID3v2ChapterTOCFrameData ( false , true , false , "toc1" , children ) ; com . mpatric . mp3agic...
org . junit . Assert . assertEquals ( frameData1 , frameData2 )
testTransactionManagerBoundToJndi ( ) { javax . transaction . TransactionManager tm = ( ( javax . transaction . TransactionManager ) ( new javax . naming . InitialContext ( ) . lookup ( "java:jboss/TransactionManager" ) ) ) ; "<AssertPlaceHolder>" ; } lookup ( java . lang . String ) { return lookup ( new javax . naming...
org . junit . Assert . assertNotNull ( tm )
testGetStartUrlwUploadToTablePreviewRequest ( ) { org . sagebionetworks . repo . model . table . UploadToTablePreviewRequest request = new org . sagebionetworks . repo . model . table . UploadToTablePreviewRequest ( ) ; org . sagebionetworks . client . AsynchJobType type = AsynchJobType . TableCSVUploadPreview ; java ....
org . junit . Assert . assertEquals ( actual , expected )
shouldAccountForDeletedNodes ( ) { org . neo4j . graphdb . GraphDatabaseService graphDb = db . getGraphDatabaseAPI ( ) ; org . neo4j . graphdb . Node node ; try ( org . neo4j . graphdb . Transaction tx = graphDb . beginTx ( ) ) { node = graphDb . createNode ( label ( "Foo" ) ) ; graphDb . createNode ( label ( "Foo" ) )...
org . junit . Assert . assertEquals ( 1 , fooCount )
testUploadDownloadFile ( ) { vm . uploadFileToGuest ( "/home/user/uploadFile.txt" , "c:\\uploaded.txt" ) ; vm . downloadFileFromGuest ( "c:\\uploaded.txt" , "/tmp/downloaded.txt" ) ; java . lang . String original = com . google . common . io . Files . toString ( new java . io . File ( "/home/user/uploadFile.txt" ) , Ch...
org . junit . Assert . assertEquals ( original , downloaded )
test45 ( ) { com . spatial4j . core . context . SpatialContext ctx = com . spatial4j . core . context . SpatialContext . GEO ; int maxLevels = 11 ; org . apache . lucene . spatial . prefix . tree . SpatialPrefixTree grid = new org . apache . lucene . spatial . prefix . tree . GeohashPrefixTree ( ctx , maxLevels ) ; org...
org . junit . Assert . assertTrue ( equals )
test_with_nonrewritten_attribute ( ) { org . apache . sling . commons . testing . osgi . MockBundle bundle = new org . apache . sling . commons . testing . osgi . MockBundle ( ( - 1 ) ) ; org . apache . sling . commons . testing . osgi . MockComponentContext ctx = new org . apache . sling . commons . testing . osgi . M...
org . junit . Assert . assertEquals ( "/etc/clientlib/testABC.css" , out . getValue ( 0 ) )
testRedoEmptyJournal ( ) { int iterations = 0 ; for ( journal . io . api . Location loc : journal . redo ( ) ) { iterations ++ ; } "<AssertPlaceHolder>" ; } redo ( ) { java . util . Map . Entry < java . lang . Integer , journal . io . api . DataFile > firstEntry = dataFiles . firstEntry ( ) ; if ( firstEntry == null ) ...
org . junit . Assert . assertEquals ( 0 , iterations )
testNewInstance ( ) { com . asakusafw . utils . graph . Graph < java . lang . String > graph = com . asakusafw . utils . graph . Graphs . newInstance ( ) ; "<AssertPlaceHolder>" ; } getNodeSet ( ) { return entity . keySet ( ) ; }
org . junit . Assert . assertThat ( graph . getNodeSet ( ) . isEmpty ( ) , is ( true ) )
testToXmlString ( ) { java . lang . String extensionPointValue = "org.talend.example.ext1" ; java . lang . String idValue = "id1" ; java . lang . String library = "library" ; java . lang . String attr3 = "attr3" ; java . lang . String value3 = "value3" ; org . talend . core . runtime . dynamic . impl . DynamicExtension...
org . junit . Assert . assertEquals ( expected , xmlString )
creationInTransaction ( ) { org . kurento . client . Transaction tx1 = kurentoClient . beginTransaction ( ) ; org . kurento . client . MediaPipeline pipeline = kurentoClient . createMediaPipeline ( tx1 ) ; org . kurento . client . PlayerEndpoint player = new org . kurento . client . PlayerEndpoint . Builder ( pipeline ...
org . junit . Assert . assertThat ( url1 . get ( ) , org . hamcrest . CoreMatchers . is ( url2 . get ( ) ) )
readResouceNonJsonErrorBody ( ) { generateStub ( 500 , "Non<sp>Json<sp>error<sp>body" ) ; try { software . amazon . awssdk . regions . util . HttpCredentialsUtilsTest . httpCredentialsUtils . readResource ( software . amazon . awssdk . regions . util . HttpCredentialsUtilsTest . endpoint ) ; org . junit . Assert . fail...
org . junit . Assert . assertEquals ( 500 , exception . statusCode ( ) )
debugMode ( ) { context . setDebugMode ( true ) ; "<AssertPlaceHolder>" ; } isInDebugMode ( ) { return ( ( getParameter ( com . sap . core . odata . core . ODataContextImpl . DEBUG_MODE ) ) != null ) && ( ( java . lang . Boolean ) ( getParameter ( com . sap . core . odata . core . ODataContextImpl . DEBUG_MODE ) ) ) ; ...
org . junit . Assert . assertTrue ( context . isInDebugMode ( ) )
revisionDatesInImportedOnlyTest ( ) { org . opendaylight . yangtools . yang . parser . stmt . reactor . ReactorDeclaredModel result = org . opendaylight . yangtools . yang . parser . rfc7950 . reactor . RFC7950Reactors . defaultReactor ( ) . newBuild ( ) . addSources ( org . opendaylight . yangtools . yang . stmt . Imp...
org . junit . Assert . assertNotNull ( result )
testHelp ( io . vertx . ext . unit . TestContext ) { async = context . async ( ) ; java . lang . String [ ] args = new java . lang . String [ ] { "help" } ; org . folio . okapi . MainDeploy d = new org . folio . okapi . MainDeploy ( ) ; d . init ( args , ( res ) -> { vertx = ( res . succeeded ( ) ) ? res . result ( ) :...
org . junit . Assert . assertTrue ( res . succeeded ( ) )
testReduce13 ( ) { org . stjs . javascript . functions . Function4 < java . lang . Object , java . lang . Object , java . lang . Long , org . stjs . javascript . Array < java . lang . Object > , java . lang . Object > callbackfn = new org . stjs . javascript . functions . Function4 < java . lang . Object , java . lang ...
org . junit . Assert . assertEquals ( "five" , arr . reduce ( callbackfn ) )
getPinpointEndpointIdTestWithNoPPSharedContext ( ) { android . content . SharedPreferences sharedPreferences = android . support . test . InstrumentationRegistry . getTargetContext ( ) . getSharedPreferences ( ( ( TEST_PP_APP_ID_1 ) + ( PP_PREFERENCES_AND_FILE_MANAGER_SUFFIX ) ) , Context . MODE_PRIVATE ) ; sharedPrefe...
org . junit . Assert . assertNotNull ( pp_endpoint )
getHtmlCode ( ) { java . lang . Class < ? extends jrds . Probe < ? , ? > > snmpProbeClass = ( ( java . lang . Class < ? extends jrds . Probe < ? , ? > > ) ( java . lang . Class . forName ( "jrds.probe.snmp.SnmpProbe" ) ) ) ; jrds . factories . ProbeMeta m = snmpProbeClass . getAnnotation ( jrds . factories . ProbeMeta ...
org . junit . Assert . assertEquals ( 3 , da . getFields ( ) . size ( ) )
entry_equals ( ) { org . eclipse . collections . api . bimap . MutableBiMap < java . lang . Integer , java . lang . String > biMap = this . newMapWithKeyValue ( 1 , "a" ) ; Map . Entry < java . lang . Integer , java . lang . String > entry = org . eclipse . collections . impl . utility . Iterate . getFirst ( biMap . en...
org . junit . Assert . assertEquals ( entry , org . eclipse . collections . impl . tuple . ImmutableEntry . of ( 1 , "a" ) )
testUUID ( ) { io . netty . buffer . ByteBuf buf = io . netty . buffer . Unpooled . buffer ( ) ; org . spout . api . util . ByteBufUtils . writeUUID ( buf , org . spout . api . util . TEST_UUID ) ; "<AssertPlaceHolder>" ; } readUUID ( io . netty . buffer . ByteBuf ) { final long lsb = buffer . readLong ( ) ; final long...
org . junit . Assert . assertEquals ( org . spout . api . util . TEST_UUID , org . spout . api . util . ByteBufUtils . readUUID ( buf ) )
source_notfound_1 ( ) { org . apache . jena . graph . Graph graph = org . apache . jena . sparql . graph . GraphFactory . createGraphMem ( ) ; org . apache . jena . riot . RDFParser . create ( ) . source ( java . nio . file . Paths . get ( ( ( org . apache . jena . riot . TestRDFParser . DIR ) + "data.nosuchfile.ttl" )...
org . junit . Assert . assertEquals ( 3 , graph . size ( ) )
testCorruptedTokenBadSecret ( ) { java . lang . String token = com . auth0 . jwt . JWT . create ( ) . withIssuer ( org . nuxeo . ecm . jwt . JWTServiceImpl . NUXEO_ISSUER ) . withSubject ( org . nuxeo . ecm . jwt . TestJWTService . USERNAME ) . sign ( com . auth0 . jwt . algorithms . Algorithm . HMAC512 ( "badsecret" )...
org . junit . Assert . assertNull ( service . verifyToken ( token ) )
testFindByHeaderAndBillingNos ( ) { "<AssertPlaceHolder>" ; } findByHeaderAndBillingNos ( java . lang . Integer , java . lang . Integer ) { javax . persistence . Query query = createQuery ( "r" , "r.raHeaderNo<sp>=<sp>:raHeaderNo<sp>AND<sp>r.billingNo<sp>=<sp>:billingNo" ) ; query . setParameter ( "raHeaderNo" , raHead...
org . junit . Assert . assertNotNull ( dao . findByHeaderAndBillingNos ( 100 , 100 ) )
StrategyManagerInAction_addingStrategy_IsSuccessful ( ) { jsprit . core . algorithm . SearchStrategyManager manager = new jsprit . core . algorithm . SearchStrategyManager ( ) ; jsprit . core . algorithm . SearchStrategy strat1 = mock ( jsprit . core . algorithm . SearchStrategy . class ) ; jsprit . core . algorithm . ...
org . junit . Assert . assertTrue ( true )
testGetHeaderWordWrap ( ) { column . setHeaderWordWrap ( true ) ; "<AssertPlaceHolder>" ; } getHeaderWordWrap ( ) { checkWidget ( ) ; return headerWordWrap ; }
org . junit . Assert . assertTrue ( column . getHeaderWordWrap ( ) )
testBinding ( ) { final nl . bzk . brp . model . synchronisatie . RegistreerAfnemerindicatieAntwoordBericht bericht = new nl . bzk . brp . model . synchronisatie . RegistreerAfnemerindicatieAntwoordBericht ( ) ; bericht . setStuurgegevens ( nl . bzk . brp . utils . TestDataBouwer . getTestBerichtStuurgegevensGroepBeric...
org . junit . Assert . assertNotNull ( xml )
embedded_06 ( ) { org . apache . jena . sparql . core . DatasetGraph dsg = org . apache . jena . fuseki . main . TestEmbeddedFuseki . dataset ( ) ; int port = org . apache . jena . atlas . web . WebLib . choosePort ( ) ; org . apache . jena . fuseki . main . FusekiServer server = org . apache . jena . fuseki . main . F...
org . junit . Assert . assertNotNull ( x )
testShouldBeAbleToClickElementInATallFrame ( ) { try { driver . get ( appServer . whereIs ( "scrolling_tests/page_with_tall_frame.html" ) ) ; driver . switchTo ( ) . frame ( "tall_frame" ) ; org . openqa . selenium . WebElement element = driver . findElement ( org . openqa . selenium . By . name ( "checkbox" ) ) ; elem...
org . junit . Assert . assertTrue ( element . isSelected ( ) )
testGetBooleanFromBoolean ( ) { boolean value = true ; org . apache . activemq . artemis . jms . client . ActiveMQMapMessage message = new org . apache . activemq . artemis . jms . client . ActiveMQMapMessage ( ) ; message . setBoolean ( itemName , value ) ; "<AssertPlaceHolder>" ; } getBoolean ( java . lang . String )...
org . junit . Assert . assertEquals ( value , message . getBoolean ( itemName ) )
testIdentityColumn ( ) { assumeMinimumServerVersion ( ServerVersion . v10 ) ; assumePreparedStatementMetadataSupported ( ) ; java . sql . PreparedStatement pstmt = conn . prepareStatement ( "SELECT<sp>id<sp>FROM<sp>identitytest" ) ; java . sql . ResultSet rs = pstmt . executeQuery ( ) ; java . sql . ResultSetMetaData r...
org . junit . Assert . assertTrue ( rsmd . isAutoIncrement ( 1 ) )
test_parse_short_strict_number_noMatch ( ) { setStrict ( true ) ; java . text . ParsePosition pos = new java . text . ParsePosition ( 0 ) ; getFormatter ( test . java . time . format . MONTH_OF_YEAR , TextStyle . SHORT ) . parseUnresolved ( "1" , pos ) ; "<AssertPlaceHolder>" ; } getErrorIndex ( ) { return errorIndex ;...
org . junit . Assert . assertEquals ( pos . getErrorIndex ( ) , 0 )
shouldReturnFalseWhenAnyMissingCalledWhenNullValues ( ) { final java . util . Collection collection = com . google . common . collect . Sets . newHashSet ( 10 , 20 , 30 ) ; final java . lang . Object [ ] values = null ; final boolean result = uk . gov . gchq . gaffer . commonutil . CollectionUtil . anyMissing ( collect...
org . junit . Assert . assertFalse ( result )
testTrimCreateSocketAddress ( ) { org . apache . hadoop . conf . Configuration conf = new org . apache . hadoop . conf . Configuration ( ) ; org . apache . hadoop . net . NetUtils . addStaticResolution ( "host" , "127.0.0.1" ) ; final java . lang . String defaultAddr = "host:1<sp>" ; java . net . InetSocketAddress addr...
org . junit . Assert . assertEquals ( defaultAddr . trim ( ) , org . apache . hadoop . net . NetUtils . getHostPortString ( addr ) )
test_plus_double_zero ( ) { org . joda . money . Money test = org . joda . money . TestMoney . GBP_2_34 . plus ( 0.0 ) ; "<AssertPlaceHolder>" ; } plus ( double ) { return plus ( amountToAdd , RoundingMode . UNNECESSARY ) ; }
org . junit . Assert . assertSame ( org . joda . money . TestMoney . GBP_2_34 , test )
testNoneTaskHashCode ( ) { org . kie . workbench . common . stunner . bpmn . definition . NoneTask a = new org . kie . workbench . common . stunner . bpmn . definition . NoneTask ( ) ; org . kie . workbench . common . stunner . bpmn . definition . NoneTask b = new org . kie . workbench . common . stunner . bpmn . defin...
org . junit . Assert . assertEquals ( a . hashCode ( ) , b . hashCode ( ) )
batchForEachEntry ( ) { org . eclipse . collections . impl . parallel . BatchIterable < Map . Entry < java . lang . Integer , java . lang . Integer > > entries = ( ( org . eclipse . collections . impl . parallel . BatchIterable < Map . Entry < java . lang . Integer , java . lang . Integer > > ) ( org . eclipse . collec...
org . junit . Assert . assertEquals ( 20 , sum . getValue ( ) )
testUnknownAlgorithm ( ) { factoryBean . setAlgorithm ( SSLTestConstants . FAKE_ALGORITHM_NAME ) ; try { factoryBean . createSecureRandom ( ) ; org . junit . Assert . fail ( "expected<sp>NoSuchAlgorithmException" ) ; } catch ( java . security . NoSuchAlgorithmException ex ) { "<AssertPlaceHolder>" ; } } getMessage ( ) ...
org . junit . Assert . assertTrue ( ex . getMessage ( ) . contains ( SSLTestConstants . FAKE_ALGORITHM_NAME ) )
shouldReturnAnInstanceOfCollectionMergingDefaultProcessorForPath ( ) { org . codegist . crest . param . CollectionMergingParamProcessor expected = mock ( org . codegist . crest . param . CollectionMergingParamProcessor . class ) ; whenNew ( org . codegist . crest . param . CollectionMergingParamProcessor . class ) . wi...
org . junit . Assert . assertSame ( expected , actual )
testInstance ( ) { org . irods . jargon . core . pub . IRODSFileSystem irodsFileSystem = org . irods . jargon . core . pub . IRODSFileSystemSingletonWrapper . instance ( ) ; "<AssertPlaceHolder>" ; } instance ( ) { if ( ( org . irods . jargon . core . pub . IRODSFileSystemSingletonWrapper . irodsFileSystem ) == null ) ...
org . junit . Assert . assertNotNull ( irodsFileSystem )
shouldAutotypeBooleanProperties ( ) { final org . apache . tinkerpop . gremlin . structure . Vertex v = graph . addVertex ( ) ; v . property ( VertexProperty . Cardinality . single , "boolean" , true ) ; final java . lang . Boolean best = v . value ( "boolean" ) ; "<AssertPlaceHolder>" ; } value ( java . lang . String ...
org . junit . Assert . assertEquals ( best , true )
testHashCode ( ) { final nl . moderniseringgba . migratie . conversie . model . brp . groep . BrpVoornaamInhoud inhoud1 = new nl . moderniseringgba . migratie . conversie . model . brp . groep . BrpVoornaamInhoud ( "Jan" , 1 ) ; final nl . moderniseringgba . migratie . conversie . model . brp . groep . BrpVoornaamInhou...
org . junit . Assert . assertEquals ( inhoud1 . hashCode ( ) , inhoud2 . hashCode ( ) )
contains_nonOptimized_rightLeft ( ) { final org . exist . collections . Collection col = mockCollection ( 1 ) ; final org . exist . dom . persistent . DocumentImpl doc1 = mockDoc ( col , 1 ) ; final org . exist . dom . persistent . DocumentImpl doc6 = mockDoc ( col , 6 ) ; final org . exist . dom . persistent . Documen...
org . junit . Assert . assertTrue ( set1 . contains ( set2 ) )
collectIntParallel ( ) { org . eclipse . collections . api . list . primitive . IntList expected = org . eclipse . collections . impl . collector . Collectors2AdditionalTest . LARGE_INTERVAL . collectInt ( Integer :: intValue , IntLists . mutable . empty ( ) ) ; org . eclipse . collections . api . list . primitive . In...
org . junit . Assert . assertEquals ( expected , actual )
testGetTempDirectory ( ) { final java . io . File tempDirectory = new java . io . File ( java . lang . System . getProperty ( "java.io.tmpdir" ) ) ; "<AssertPlaceHolder>" ; } getTempDirectory ( ) { return new java . io . File ( org . apache . commons . io . FileUtils . getTempDirectoryPath ( ) ) ; }
org . junit . Assert . assertEquals ( tempDirectory , org . apache . commons . io . FileUtils . getTempDirectory ( ) )
testIsAllowModuleOverride_2 ( ) { final boolean result = org . apache . shindig . gadgets . oauth2 . persistence . OAuth2ClientTest . client2 . isAllowModuleOverride ( ) ; "<AssertPlaceHolder>" ; } isAllowModuleOverride ( ) { return this . allowModuleOverride ; }
org . junit . Assert . assertFalse ( result )
testCreateFileWithNullName ( ) { java . lang . String fileName = null ; try { org . apache . hadoop . fs . Path testPath = qualifiedPath ( fileName , fc2 ) ; "<AssertPlaceHolder>" ; createFile ( fc1 , testPath ) ; org . junit . Assert . fail ( "Create<sp>file<sp>with<sp>null<sp>name<sp>should<sp>throw<sp>IllegalArgumen...
org . junit . Assert . assertFalse ( exists ( fc2 , testPath ) )
testHistoricMonitorJobIncidentDeletion ( ) { org . camunda . bpm . engine . batch . Batch batch = helper . migrateProcessInstancesAsync ( 1 ) ; helper . executeSeedJob ( batch ) ; org . camunda . bpm . engine . runtime . Job monitorJob = helper . getMonitorJob ( batch ) ; managementService . setJobRetries ( monitorJob ...
org . junit . Assert . assertEquals ( 0 , historicIncidents )
testNull ( ) { "<AssertPlaceHolder>" ; } convert ( java . lang . Object ) { T t = null ; if ( attribute != null ) { if ( clazz . isAssignableFrom ( attribute . getClass ( ) ) ) { t = ( ( T ) ( attribute ) ) ; } else if ( attribute instanceof java . util . List ) { final java . util . List l = ( ( java . util . List ) (...
org . junit . Assert . assertNull ( this . converter . convert ( null ) )