input stringlengths 28 18.7k | output stringlengths 39 1.69k |
|---|---|
testRemoveReloadListenerNull ( ) { propertiesManager . addReloadListener ( reloadListener ) ; propertiesManager . removeReloadListener ( null ) ; "<AssertPlaceHolder>" ; } getReloadListeners ( ) { return reloadListeners ; } | org . junit . Assert . assertEquals ( 1 , propertiesManager . getReloadListeners ( ) . size ( ) ) |
evaluateWithNoMatches ( ) { "<AssertPlaceHolder>" ; } getEngine ( ) { return new org . xmlunit . xpath . JAXPXPathEngine ( ) ; } | org . junit . Assert . assertEquals ( "" , getEngine ( ) . evaluate ( "foo" , source ) ) |
testDataExchange01 ( ) { final byte [ ] CFM = tigase . util . Base64 . decode ( "biwsbj1qZW5raW5zLHI9YmdId0xRSEJkNFMrK3F2VEIzZis0QT09" ) ; final byte [ ] SFM = tigase . util . Base64 . decode ( "cj1iZ0h3TFFIQmQ0UysrcXZUQjNmKzRBPT1lWXY4REhIMk81dHRxNlRtV3pncyxzPUZSelkraGM5TitMc0FnPT0saT00MDk2" ) ; final byte [ ] CSM = ti... | org . junit . Assert . assertArrayEquals ( SFM , sfm ) |
basicTest ( ) { final org . opendaylight . mdsal . dom . spi . shard . ForeignShardModificationContext foreignShardModificationContext = new org . opendaylight . mdsal . dom . spi . shard . ForeignShardModificationContext ( TestUtils . DOM_DATA_TREE_IDENTIFIER , TestUtils . DOM_DATA_TREE_SHARD_PRODUCER ) ; final org . ... | org . junit . Assert . assertNotNull ( super . getInterior ( TestUtils . PATH_ARGUMENT ) ) |
testDoGetFileOrDirAsDownload ( ) { java . lang . String userAgent = "userAgent" ; java . lang . String strWithManifest = "strWithManifest" ; org . pentaho . platform . web . http . api . resources . services . FileService . DownloadFileWrapper mockDownloadFileWrapper = mock ( FileService . DownloadFileWrapper . class )... | org . junit . Assert . assertEquals ( mockResponse , testResponse ) |
shouldNotLoadAnyFunctionIfConfigIsEmpty ( ) { org . neo4j . logging . Log log = spy ( org . neo4j . logging . Log . class ) ; procedureCompiler = new org . neo4j . kernel . impl . proc . ReflectiveProcedureCompiler ( new org . neo4j . kernel . impl . proc . TypeMappers ( ) , components , new org . neo4j . kernel . impl... | org . junit . Assert . assertThat ( method . size ( ) , org . hamcrest . CoreMatchers . equalTo ( 0 ) ) |
testGetInsertFieldBelow ( ) { final elemental2 . dom . Element element = mock ( elemental2 . dom . Element . class ) ; doReturn ( element ) . when ( view ) . querySelector ( "insert-field-below" ) ; "<AssertPlaceHolder>" ; } getInsertFieldBelow ( ) { return querySelector ( "insert-field-below" ) ; } | org . junit . Assert . assertEquals ( element , view . getInsertFieldBelow ( ) ) |
testSetMachineTypeWithOptions ( ) { initializeExpectedInstance ( 2 ) ; expect ( compute . getOptions ( ) ) . andReturn ( mockOptions ) ; com . google . cloud . compute . deprecated . Operation operation = new com . google . cloud . compute . deprecated . Operation . Builder ( serviceMockReturnsOptions ) . setOperationI... | org . junit . Assert . assertSame ( operation , instance . setMachineType ( com . google . cloud . compute . deprecated . InstanceTest . MACHINE_TYPE , Compute . OperationOption . fields ( ) ) ) |
testToString ( ) { jsonArray . add ( "foo" ) . add ( 123 ) ; "<AssertPlaceHolder>" ; } encode ( ) { return io . vertx . core . json . Json . encode ( map ) ; } | org . junit . Assert . assertEquals ( jsonArray . encode ( ) , jsonArray . toString ( ) ) |
basicSearch ( ) { org . junit . Assume . assumeTrue ( testYokozuna ) ; org . junit . Assume . assumeTrue ( testBucketType ) ; com . basho . riak . client . api . commands . search . Search searchCmd = new com . basho . riak . client . api . commands . search . Search . Builder ( com . basho . riak . client . api . comm... | org . junit . Assert . assertEquals ( 3 , response . numResults ( ) ) |
getApiRoot ( ) { org . apache . commons . httpclient . methods . GetMethod httpGetRoot = httpGet ( "/" ) ; "<AssertPlaceHolder>" ; httpGetRoot . releaseConnection ( ) ; } isAllowed ( ) { return responsesWith ( 200 ) ; } | org . junit . Assert . assertThat ( httpGetRoot , isAllowed ( ) ) |
testBepaalAttributenGewijzigdNieuwPersoonNietsGewijzigd ( ) { final nl . bzk . brp . expressietaal . Expressie expressie = getExpressieUitTekst ( "GEWIJZIGD(oud,<sp>nieuw,<sp>[overlijden.datum])" ) ; final boolean resultaat = sleutelrubriekGewijzigdBepaler . bepaalAttributenGewijzigd ( getTestPersoon ( ) , getAdmhndGeb... | org . junit . Assert . assertFalse ( resultaat ) |
testByteArrayToHexString2 ( ) { System . out . println ( "byteArrayToHexString2" ) ; byte [ ] raw = new byte [ ] { ( ( byte ) ( 255 ) ) , ( ( byte ) ( 18 ) ) , ( ( byte ) ( 74 ) ) } ; java . lang . String expResult = "FF<sp>12<sp>4A" ; java . lang . String result = com . github . kayak . core . Util . byteArrayToHexStr... | org . junit . Assert . assertEquals ( expResult , result ) |
seq_Iterator ( ) { java . util . Iterator < java . lang . Integer > iter = java . util . Arrays . asList ( 1 , 2 , 3 ) . iterator ( ) ; com . m3 . scalaflavor4j . Seq < java . lang . Integer > seq = seq ( iter ) ; "<AssertPlaceHolder>" ; } size ( ) { return 0 ; } | org . junit . Assert . assertThat ( seq . size ( ) , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( 3 ) ) ) |
providesTheNumberOfElementsOfATestSuiteWithATestSuite ( ) { com . piece_framework . makegood . core . result . Result result = new com . piece_framework . makegood . core . result . TestSuiteResult ( "foo" ) ; result . addChild ( new com . piece_framework . makegood . core . result . TestSuiteResult ( "bar" ) ) ; "<Ass... | org . junit . Assert . assertEquals ( 2 , result . getSize ( ) ) |
testOnEndIslandPortalNotEnd ( ) { org . bukkit . Location from = mock ( org . bukkit . Location . class ) ; when ( from . getWorld ( ) ) . thenReturn ( world ) ; when ( from . toVector ( ) ) . thenReturn ( new org . bukkit . util . Vector ( 1 , 2 , 3 ) ) ; world . bentobox . bentobox . listeners . PortalTeleportationLi... | org . junit . Assert . assertFalse ( e . isCancelled ( ) ) |
testReportComplex ( ) { testRule . deploy ( "org/camunda/bpm/engine/test/repository/two.dmn" , "org/camunda/bpm/engine/test/api/dmn/Another_Example.dmn" , "org/camunda/bpm/engine/test/api/dmn/Example.dmn" ) ; prepareDecisionInstances ( org . camunda . bpm . engine . test . history . CleanableHistoricDecisionInstanceRep... | org . junit . Assert . assertEquals ( 4 , reportResults . size ( ) ) |
testApp ( ) { boolean cleanExit = com . ociweb . iot . maker . FogRuntime . testUntilShutdownRequested ( new com . ociweb . oe . foglight . api . DigitalListener ( ) , 100 ) ; "<AssertPlaceHolder>" ; } testUntilShutdownRequested ( com . ociweb . iot . maker . FogApp , long ) { com . ociweb . iot . maker . FogRuntime ru... | org . junit . Assert . assertTrue ( cleanExit ) |
testFindOcanStaffFormById ( ) { org . oscarehr . common . model . OcanStaffForm ocanStaffForm1 = new org . oscarehr . common . model . OcanStaffForm ( ) ; org . oscarehr . common . dao . utils . EntityDataGenerator . generateTestDataForModelClass ( ocanStaffForm1 ) ; dao . persist ( ocanStaffForm1 ) ; org . oscarehr . ... | org . junit . Assert . assertEquals ( expectedResult , result ) |
testDownloadNuremburg ( ) { java . util . List < de . bayern . gdi . model . DownloadStep > steps = prepareStep ( de . bayern . gdi . IntegrationTest . DOWNLOAD_CONFIGURATION :: getNuremburgConfig ) ; java . lang . String username = "" ; java . lang . String password = "" ; int result = de . bayern . gdi . Headless . r... | org . junit . Assert . assertTrue ( ( result == 0 ) ) |
testExportStream ( ) { java . io . ByteArrayOutputStream os = new java . io . ByteArrayOutputStream ( ) ; io . robe . convert . xml . XMLExporter < io . robe . convert . SamplePojo > exporter = new io . robe . convert . xml . XMLExporter ( io . robe . convert . SamplePojo . class ) ; exporter . exportStream ( os , io .... | org . junit . Assert . assertEquals ( ref , item ) |
testJSON ( ) { java . lang . String wkt = "LINESTRING(11.3136273<sp>48.0972002,11.3138846<sp>48.0972999)" ; com . bmwcarit . barefoot . road . BaseRoad osm = new com . bmwcarit . barefoot . road . BaseRoad ( 0L , 1L , 2L , 4L , true , ( ( short ) ( 5 ) ) , 5.1F , 6.1F , 6.2F , 7.1F , ( ( com . esri . core . geometry . ... | org . junit . Assert . assertEquals ( road , road2 ) |
andNot2 ( ) { org . roaringbitmap . Container bc = new org . roaringbitmap . BitmapContainer ( ) ; org . roaringbitmap . Container rc = new org . roaringbitmap . RunContainer ( ) ; bc . add ( ( ( short ) ( 1 ) ) ) ; org . roaringbitmap . Container result = rc . andNot ( bc ) ; "<AssertPlaceHolder>" ; } getCardinality (... | org . junit . Assert . assertEquals ( 0 , result . getCardinality ( ) ) |
scrollToSpacerAlreadyInViewport ( ) { selectMenuPath ( com . vaadin . tests . components . grid . basicfeatures . escalator . FEATURES , com . vaadin . tests . components . grid . basicfeatures . escalator . SPACERS , com . vaadin . tests . components . grid . basicfeatures . escalator . ROW_50 , com . vaadin . tests .... | org . junit . Assert . assertEquals ( getScrollTop ( ) , 1000 ) |
testLinkType ( ) { com . effektif . workflow . api . workflow . ExecutableWorkflow workflow = new com . effektif . workflow . api . workflow . ExecutableWorkflow ( ) . variable ( "v" , new com . effektif . workflow . api . types . LinkType ( ) ) ; deploy ( workflow ) ; com . effektif . workflow . api . workflowinstance... | org . junit . Assert . assertEquals ( "http://www.effektif.com/" , link ) |
testWithManualKey ( ) { org . simpleflatmapper . jdbc . Crud < org . simpleflatmapper . jdbc . test . CrudNoPrimaryKeyTest . MyObject , java . lang . Long > table = org . simpleflatmapper . jdbc . JdbcMapperFactory . newInstance ( ) . addKeys ( "id" ) . < org . simpleflatmapper . jdbc . test . CrudNoPrimaryKeyTest . My... | org . junit . Assert . assertEquals ( new org . simpleflatmapper . jdbc . test . CrudNoPrimaryKeyTest . MyObject ( 1L , "name" ) , table . read ( connection , 1L ) ) |
runnerShouldNotBeAliveWhenStatusStopped ( ) { runner . setStatus ( Runner . Status . STOPPED ) ; "<AssertPlaceHolder>" ; } isAlive ( ) { return java . util . EnumSet . range ( Status . RUNNING , Status . DONE ) . contains ( status ) ; } | org . junit . Assert . assertThat ( runner . isAlive ( ) , org . hamcrest . core . Is . is ( false ) ) |
testAlterTableChangeTableName ( ) { java . util . Map < java . lang . String , java . util . Collection < java . lang . String > > update = new java . util . HashMap ( ) ; update . put ( org . apache . sentry . service . thrift . TestFullUpdateModifier . DB . toLowerCase ( ) , java . util . Collections . singleton ( or... | org . junit . Assert . assertEquals ( expected , update ) |
testAssociationIndicationStatusValues ( ) { for ( com . digi . xbee . api . models . AssociationIndicationStatus associationIndicationStatus : associationIndicationStatusValues ) "<AssertPlaceHolder>" ; } getValue ( ) { return idValue ; } | org . junit . Assert . assertTrue ( ( ( associationIndicationStatus . getValue ( ) ) >= 0 ) ) |
testGetPrincipalNames ( ) { java . util . List < java . lang . String > names = new java . util . LinkedList ( ) ; names . add ( "joe" ) ; names . add ( "fred" ) ; org . apache . ambari . server . orm . entities . LdapSyncSpecEntity entity = new org . apache . ambari . server . orm . entities . LdapSyncSpecEntity ( Lda... | org . junit . Assert . assertEquals ( names , entity . getPrincipalNames ( ) ) |
testAdaptNull ( ) { "<AssertPlaceHolder>" ; } adapt ( org . apache . commons . functor . NullaryFunction ) { return null == function ? null : new org . apache . commons . functor . adapter . NullaryFunctionFunction < A , T > ( function ) ; } | org . junit . Assert . assertNull ( org . apache . commons . functor . adapter . NullaryFunctionFunction . adapt ( null ) ) |
testCorrectePeriodeGemeenteWelPeriode ( ) { java . util . List < nl . bzk . brp . model . validatie . Melding > meldingen = brby0527 . executeer ( null , maakPersoonMetPlaats ( maakGemeente ( ( ( short ) ( 24 ) ) , "gemeente" , 19000101 , 25000101 ) ) , maakActie ( "id.actie1" , 20120303 , 20120404 ) ) ; "<AssertPlaceH... | org . junit . Assert . assertEquals ( 0 , meldingen . size ( ) ) |
testUsage ( ) { new org . apache . openmeetings . cli . Admin ( ) . process ( "-h" ) ; "<AssertPlaceHolder>" ; } process ( java . lang . String [ ] ) { org . apache . commons . cli . CommandLineParser parser = new org . apache . commons . cli . DefaultParser ( ) ; try { cmdl = parser . parse ( opts , args ) ; } catch (... | org . junit . Assert . assertTrue ( true ) |
should_create_dict ( ) { java . io . File fa = testFolder . newFile ( "test.fa" ) ; java . io . File dict = testFolder . newFile ( "test.fa.dict" ) ; dict . delete ( ) ; com . google . common . io . Files . copy ( gridss . cmdline . SMALL_FA_FILE , fa ) ; gridss . cmdline . ReferenceCommandLineProgram . ensureSequenceD... | org . junit . Assert . assertTrue ( dict . exists ( ) ) |
getGlobalCalendar ( ) { java . util . List < com . podio . calendar . Event > events = getAPI ( ) . getGlobal ( new org . joda . time . LocalDate ( 2010 , 8 , 1 ) , new org . joda . time . LocalDate ( 2010 , 8 , 31 ) , null ) ; "<AssertPlaceHolder>" ; } getAPI ( ) { return com . podio . APIFactoryProvider . getDefault ... | org . junit . Assert . assertEquals ( events . size ( ) , 4 ) |
testASCII ( ) { java . lang . String actual = "!?abc" ; org . teiid . core . util . ReaderInputStream ris = new org . teiid . core . util . ReaderInputStream ( new java . io . StringReader ( actual ) , java . nio . charset . Charset . forName ( "US-ASCII" ) . newEncoder ( ) , 1 ) ; byte [ ] result = org . teiid . core ... | org . junit . Assert . assertEquals ( resultString , actual ) |
shouldReturnFalseForSingleQuoteOnlyAtEnd ( ) { boolean quoted = edu . stanford . bmir . protege . web . shared . entity . EntityNameUtils . isQuoted ( "a'" ) ; "<AssertPlaceHolder>" ; } isQuoted ( java . lang . String ) { checkNotNull ( entityName ) ; return ( ( ( entityName . length ( ) ) >= 2 ) && ( ( entityName . ch... | org . junit . Assert . assertEquals ( false , quoted ) |
uncontendedFlushLockMustBeAvailable ( ) { pageList . unlockExclusive ( pageRef ) ; "<AssertPlaceHolder>" ; } tryFlushLock ( long ) { long s = org . neo4j . io . pagecache . impl . muninn . OffHeapPageLock . getState ( address ) ; if ( ( s & ( org . neo4j . io . pagecache . impl . muninn . OffHeapPageLock . FAE_MASK ) )... | org . junit . Assert . assertTrue ( ( ( pageList . tryFlushLock ( pageRef ) ) != 0 ) ) |
should_append_nothing_when_value_is_not_null ( ) { java . lang . Object value = null ; java . lang . StringBuffer sb = new java . lang . StringBuffer ( ) ; new com . iyzipay . ToStringRequestStyle ( ) . append ( sb , "conversationId" , value , true ) ; "<AssertPlaceHolder>" ; } toString ( ) { return new com . iyzipay .... | org . junit . Assert . assertEquals ( "" , sb . toString ( ) ) |
testGetCodeBlockClassWithComment ( ) { setName ( cls , "MyClass" ) ; setComment ( cls , "Hello<sp>World" ) ; java . lang . String expected = "" + ( ( ( ( ( "/**\n" + "<sp>*<sp>Hello<sp>World\n" ) + "<sp>*/\n" ) + "class<sp>MyClass<sp>{\n" ) + "\n" ) + "}\n" ) ; "<AssertPlaceHolder>" ; } getCodeBlock ( ) { return getMod... | org . junit . Assert . assertEquals ( expected , cls . getCodeBlock ( ) ) |
test_valid_nonProcess ( ) { java . util . Map < java . lang . String , java . lang . Object > parameters = new java . util . HashMap < java . lang . String , java . lang . Object > ( ) ; parameters . put ( IBuildParametes . PROCESS , new java . lang . Object ( ) ) ; org . talend . core . runtime . repository . build . ... | org . junit . Assert . assertFalse ( proivder . valid ( parameters ) ) |
testRewriteBasicPomWithTagBaseAndVaryingScmUrls ( ) { java . util . List < org . apache . maven . project . MavenProject > reactorProjects = createReactorProjects ( "basic-pom-with-tag-base-and-varying-scm-urls" ) ; org . apache . maven . shared . release . config . ReleaseDescriptorBuilder builder = createDescriptorFr... | org . junit . Assert . assertTrue ( comparePomFiles ( reactorProjects ) ) |
iter_truncate_00 ( ) { java . util . Iterator < java . lang . String > iter = new org . apache . jena . atlas . iterator . IteratorTruncate ( org . apache . jena . atlas . iterator . Iter . nullIterator ( ) , ( item ) -> true ) ; long n = org . apache . jena . atlas . iterator . Iter . count ( iter ) ; "<AssertPlaceHol... | org . junit . Assert . assertEquals ( 0 , n ) |
testMTOMInHashMap ( ) { javax . xml . ws . Service service = javax . xml . ws . Service . create ( new javax . xml . namespace . QName ( "http://foo" , "bar" ) ) ; service . addPort ( new javax . xml . namespace . QName ( "http://foo" , "bar" ) , SOAPBinding . SOAP11HTTP_BINDING , org . apache . cxf . systest . jaxb . ... | org . junit . Assert . assertEquals ( y , bytes . length ) |
basicToArrayTyped ( ) { cowaList . add ( 1 ) ; java . lang . Integer [ ] result = cowaList . asTypedArray ( ) ; "<AssertPlaceHolder>" ; } asTypedArray ( ) { refreshCopyIfNecessary ( ) ; return ourCopy ; } | org . junit . Assert . assertArrayEquals ( new java . lang . Integer [ ] { 1 } , result ) |
testSetWithUnknownPreference ( ) { com . opera . core . systems . OperaGenericPreferencesTest . preferences . set ( new com . opera . core . systems . preferences . OperaGenericPreferences . GenericPreference ( "foo" , "bar" , "baz" ) ) ; "<AssertPlaceHolder>" ; } size ( ) { return preferences . size ( ) ; } | org . junit . Assert . assertEquals ( 1 , com . opera . core . systems . OperaGenericPreferencesTest . preferences . size ( ) ) |
periodicFixedDelayTaskWithException ( ) { final java . util . concurrent . CountDownLatch countDownLatch = new java . util . concurrent . CountDownLatch ( 1 ) ; final java . util . concurrent . ScheduledFuture < ? > scheduledFuture = scheduledService . periodicFixedDelayTask ( 1 , "Planned<sp>exception" , countDownLatc... | org . junit . Assert . assertEquals ( "Planned<sp>exception" , e . getCause ( ) . getMessage ( ) ) |
test ( ) { connect ( ) ; click ( jq ( "$loadButton" ) ) ; waitResponse ( ) ; click ( jq ( ".z-combobox-button" ) . eq ( 0 ) ) ; waitResponse ( ) ; click ( jq ( ".z-comboitem" ) . eq ( 0 ) ) ; waitResponse ( ) ; click ( jq ( ".z-combobox-button" ) . eq ( 1 ) ) ; waitResponse ( ) ; "<AssertPlaceHolder>" ; } jq ( java . l... | org . junit . Assert . assertEquals ( "1" , jq ( ".z-comboitem" ) . eq ( 2 ) . text ( ) ) |
testCustomSupplier ( ) { java . util . Random rnd = com . carrotsearch . randomizedtesting . RandomizedContext . current ( ) . getRandom ( ) ; for ( int i = 0 ; i < 10 ; i ++ ) { "<AssertPlaceHolder>" ; } } nextInt ( ) { int p = peeked ; if ( p == ( com . carrotsearch . ant . tasks . junit4 . gson . stream . JsonReader... | org . junit . Assert . assertEquals ( rnd . nextInt ( ) , i ) |
whenTwoDeliveriesHaveTheSameUnderlyingJob_theyAreEqual ( ) { com . graphhopper . jsprit . core . problem . job . Service s1 = Service . Builder . newInstance ( "s" ) . setLocation ( com . graphhopper . jsprit . core . problem . Location . newInstance ( "loc" ) ) . build ( ) ; com . graphhopper . jsprit . core . problem... | org . junit . Assert . assertTrue ( d1 . equals ( d2 ) ) |
test_zero_long ( ) { int result = server . bounce_long ( 0 ) ; "<AssertPlaceHolder>" ; } bounce_long ( int ) { return x ; } | org . junit . Assert . assertEquals ( 0 , result ) |
should_pass_if_no_features_are_found ( ) { createStrictRuntime ( ) ; "<AssertPlaceHolder>" ; } exitStatus ( ) { if ( results . isEmpty ( ) ) { return cucumber . runtime . ExitStatus . DEFAULT ; } if ( runtimeOptions . isWip ( ) ) { return min ( results , cucumber . runtime . SEVERITY ) . is ( Result . Type . PASSED ) ?... | org . junit . Assert . assertEquals ( 0 , exitStatus . exitStatus ( ) ) |
testGetQueryWithManyValues ( ) { java . lang . String fieldName = FIELD_DBID ; java . lang . String operator = SolrInformationServer . AND ; java . util . Collection [ ] valueLists = new java . util . Collection [ 2 ] ; valueLists [ 0 ] = new java . util . ArrayList ( ) ; java . lang . Object value1 = "value1" ; valueL... | org . junit . Assert . assertEquals ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( FIELD_DBID ) + ":" ) + value1 ) + operator ) + ( FIELD_DBID ) ) + ":" ) + value2 ) + operator ) + ( FIELD_DBID ) ) + ":" ) + value3 ) + operator ) + ( FIELD_DBID ) ) + ":" ) + value4 ) , query ) |
validateSpecialCharactersLessThanEnd ( ) { java . lang . String fileName = "test<.txt" ; "<AssertPlaceHolder>" ; } hasSpecialCharacters ( java . lang . String ) { java . util . regex . Pattern special = java . util . regex . Pattern . compile ( org . digidoc4j . utils . Helper . SPECIAL_CHARACTERS ) ; java . util . reg... | org . junit . Assert . assertTrue ( org . digidoc4j . utils . Helper . hasSpecialCharacters ( fileName ) ) |
should_not_detect_char_or_digit_separator_candidate ( ) { org . talend . dataprep . schema . csv . Map < java . lang . Character , org . talend . dataprep . schema . csv . Separator > separatorMap = new org . talend . dataprep . schema . csv . HashMap ( ) ; char [ ] cases = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQR... | org . junit . Assert . assertTrue ( separatorMap . isEmpty ( ) ) |
testRTree ( ) { com . github . davidmoten . rtree . RTree < java . lang . String > rtree = com . github . davidmoten . rtree . RTree . create ( ) ; rtree = rtree . add ( "foo" , org . nmdp . ngs . range . rtree . RangeGeometries . closed ( 10 , 20 ) ) ; rtree = rtree . add ( "bar" , org . nmdp . ngs . range . rtree . R... | org . junit . Assert . assertEquals ( 3 , count ) |
isIpEqualsGatewayOrNetworkOfferingsEmptyTestRequestedIpEqualsGateway ( ) { com . cloud . network . Network network = setTestIsIpEqualsGatewayOrNetworkOfferingsEmpty ( 0L , "gateway" , "ip6Gateway" , null , new java . util . ArrayList < com . cloud . network . Network . Service > ( ) ) ; boolean result = ipAddressManage... | org . junit . Assert . assertTrue ( result ) |
testGetPropsStandardFormat ( ) { java . util . Map < java . lang . String , java . lang . String > expected = new java . util . HashMap ( ) ; expected . put ( "bluetooth.hciattach" , "true" ) ; expected . put ( "bluetooth.status" , "off" ) ; java . lang . String response = "[bluetooth.status]:<sp>[off]<sp>\n" + "[bluet... | org . junit . Assert . assertEquals ( expected , actual ) |
testClientgetnameClientsetname ( ) { io . craft . atom . redis . api . Redis redis = io . craft . atom . redis . api . RedisFactory . newRedis ( io . craft . atom . redis . HOST , io . craft . atom . redis . PORT1 , 2000 , 1 ) ; redis . clientsetname ( "foobar" ) ; java . lang . String name = redis . clientgetname ( ) ... | org . junit . Assert . assertEquals ( "foobar" , name ) |
findWebElements_if_selector_is_just_an_id_it_should_call_findElementById ( ) { io . github . seleniumquery . by . firstgen . xpath . TagComponentList tagComponentList = io . github . seleniumquery . by . firstgen . xpath . XPathComponentCompilerService . compileSelectorList ( "#idz" ) ; org . openqa . selenium . Search... | org . junit . Assert . assertThat ( webElements , org . hamcrest . Matchers . contains ( firstDummyWebElement ) ) |
testAsInt ( ) { org . apache . tajo . datum . Datum d = org . apache . tajo . datum . DatumFactory . createChar ( "5" ) ; "<AssertPlaceHolder>" ; } asInt4 ( ) { throw new org . apache . tajo . datum . exception . InvalidCastException ( ( ( type ) + "<sp>cannot<sp>be<sp>casted<sp>to<sp>INT<sp>type" ) ) ; } | org . junit . Assert . assertEquals ( 5 , d . asInt4 ( ) ) |
testLockAndLoadSingleEntityByIdRefresh ( ) { org . candlepin . model . Owner owner = this . createOwner ( "owner_key-1" , "owner-1" ) ; org . candlepin . model . Owner output = this . testOwnerCurator . lockAndLoadById ( owner . getId ( ) ) ; "<AssertPlaceHolder>" ; } getId ( ) { return id ; } | org . junit . Assert . assertEquals ( owner , output ) |
setGetIotHubMethodSuccess ( ) { com . microsoft . azure . sdk . iot . device . transport . IotHubTransportMessage iotHubTransportMessage = new com . microsoft . azure . sdk . iot . device . transport . IotHubTransportMessage ( "This<sp>is<sp>a<sp>valid<sp>body" ) ; iotHubTransportMessage . setIotHubMethod ( IotHubMetho... | org . junit . Assert . assertEquals ( IotHubMethod . POST , iotHubTransportMessage . getIotHubMethod ( ) ) |
testGeneratePresignedUrl ( ) { java . net . URL expected = new java . net . URL ( "http://someurl.org" ) ; com . amazonaws . services . s3 . model . GeneratePresignedUrlRequest request = new com . amazonaws . services . s3 . model . GeneratePresignedUrlRequest ( org . sagebionetworks . SynapseS3ClientImplUnitTest . BUC... | org . junit . Assert . assertEquals ( expected , actual ) |
testType2 ( ) { java . lang . String para = "/?signature=b4343f727d6e9b1072f6f72d28b0d0cf38986dce×tamp=1430926116&nonce=1801492986&encrypt_type=aes&msg_signature=af1868ffe3058db89643c6c546e49cd40d717ac9" ; xmlSb . delete ( 0 , xmlSb . length ( ) ) ; xmlSb . append ( "<xml>" ) ; xmlSb . append ( "<ToUserName><![CDA... | org . junit . Assert . assertNotNull ( response ) |
testBeanInjectionPointMembers3 ( ) { java . util . List < javax . enterprise . inject . spi . Decorator < ? > > decorators = manager . resolveDecorators ( java . util . Collections . < java . lang . reflect . Type > singleton ( org . jboss . weld . tests . security . members . Simple . class ) ) ; "<AssertPlaceHolder>"... | org . junit . Assert . assertEquals ( 1 , decorators . size ( ) ) |
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 ) ) |
R2326_Indicatie_behandeldAlsNederlander_voor_Peildatum ( ) { final nl . bzk . brp . bijhouding . bericht . model . BijhoudingPersoon persoonEntiteit = actie . getPersoon ( ) . getPersoonEntiteit ( ) ; final nl . bzk . algemeenbrp . dal . domein . brp . entity . PersoonIndicatie indicatie = new nl . bzk . algemeenbrp . ... | org . junit . Assert . assertEquals ( 0 , meldingen . size ( ) ) |
shouldGetPreparationThatWasAdded ( ) { org . talend . dataprep . api . preparation . Preparation expected = getPreparation ( "7561486" ) ; repository . add ( expected ) ; final org . talend . dataprep . api . preparation . Preparation actual = repository . get ( expected . id ( ) , org . talend . dataprep . api . prepa... | org . junit . Assert . assertEquals ( expected , actual ) |
testMultipleTxSameThread ( ) { java . lang . String storePath = getStorePath ( "test-neo2" ) ; deleteFileOrDirectory ( storePath ) ; org . neo4j . kernel . EmbeddedGraphDatabase neo2 = new org . neo4j . kernel . EmbeddedGraphDatabase ( storePath ) ; javax . transaction . TransactionManager tm = neo2 . getConfig ( ) . g... | org . junit . Assert . assertTrue ( thread . success ( ) ) |
getIotHubStatusCodeMapsOkCorrectly ( ) { final int httpsStatus = 200 ; com . microsoft . azure . sdk . iot . device . IotHubStatusCode testStatus = com . microsoft . azure . sdk . iot . device . IotHubStatusCode . getIotHubStatusCode ( httpsStatus ) ; final com . microsoft . azure . sdk . iot . device . IotHubStatusCod... | org . junit . Assert . assertThat ( testStatus , org . hamcrest . CoreMatchers . is ( expectedStatus ) ) |
testReEncryptionMixerDeterministic ( ) { ch . bfh . unicrypt . math . algebra . general . interfaces . CyclicGroup G_q = ch . bfh . unicrypt . math . algebra . multiplicative . classes . GStarModSafePrime . getInstance ( 167 ) ; ch . bfh . unicrypt . math . algebra . dualistic . classes . ZMod Z_q = G_q . getZModOrder ... | org . junit . Assert . assertTrue ( e . isEquivalent ( shuffledCiphertexts . getAt ( i ) ) ) |
test2 ( ) { counterRepository . set ( "my-counter-1" , 1 ) ; counterRepository . set ( "my-counter-2" , 2 ) ; counterRepository . set ( "my-counter-3" , 3 ) ; long v = counterRepository . decrement ( "my-counter-2" ) ; "<AssertPlaceHolder>" ; } decrement ( java . lang . String ) { org . bson . Document doc = collection... | org . junit . Assert . assertEquals ( 1 , v ) |
testRegisterReferencePassesToOSGI ( ) { objectFactory . setBundleContext ( bundleContext ) ; org . pentaho . platform . engine . core . system . objfac . references . SingletonPentahoObjectReference < java . lang . String > ref = new org . pentaho . platform . engine . core . system . objfac . references . SingletonPen... | org . junit . Assert . assertEquals ( "Testing" , service ) |
singleChild ( ) { mk . commit ( "/" , "+\"a\"<sp>:<sp>{}" , null , null ) ; long childCount = mk . getChildNodeCount ( "/" , null ) ; "<AssertPlaceHolder>" ; } getChildNodeCount ( java . lang . String , java . lang . String ) { org . apache . jackrabbit . oak . spi . state . NodeState node = getNode ( revisionId , path... | org . junit . Assert . assertEquals ( 1 , childCount ) |
crossCheckGuava_encloses ( org . threeten . extra . LocalDateRange , org . threeten . extra . LocalDateRange , com . google . common . collect . Range , com . google . common . collect . Range ) { boolean extra = extraRange1 . encloses ( extraRange2 ) ; boolean guava = guavaRange1 . encloses ( guavaRange2 ) ; "<AssertP... | org . junit . Assert . assertEquals ( guava , extra ) |
testDeviceLockIsSerializable ( ) { org . eclipse . swt . widgets . DeviceSerialization_Test . TestDevice device = new org . eclipse . swt . widgets . DeviceSerialization_Test . TestDevice ( ) ; org . eclipse . swt . widgets . DeviceSerialization_Test . TestDevice deserializedDevice = serializeAndDeserialize ( device ) ... | org . junit . Assert . assertNotNull ( deserializedDevice . getDeviceLock ( ) ) |
testNotSeed ( ) { org . evosuite . Properties . SEED_PROBABILITY = 0 ; org . evosuite . seeding . factories . RandomMethodSeedingTestSuiteChromosomeFactory bicf = new org . evosuite . seeding . factories . RandomMethodSeedingTestSuiteChromosomeFactory ( defaultFactory , ga ) ; org . evosuite . testsuite . TestSuiteChro... | org . junit . Assert . assertFalse ( containsSeededMethod ) |
testR2501GeenVervallenRijen ( ) { voegBVPIndicatieToeAanPersoon ( false ) ; beeindigingActie = maakBeeindigingActieBijzondereVerblijfsrechtelijkePositie ( ) ; final java . util . List < nl . bzk . brp . bijhouding . bericht . model . MeldingElement > meldingen = beeindigingActie . valideerSpecifiekeInhoud ( ) ; "<Asser... | org . junit . Assert . assertEquals ( 0 , meldingen . size ( ) ) |
resumeSession_sessionIsPaused_doesNotStartNewSession_ifWithinTimeInterval ( ) { target . startSession ( ) ; target . pauseSession ( ) ; long pTime = target . getSession ( ) . getStopTime ( ) ; target . resumeSession ( ) ; "<AssertPlaceHolder>" ; verify ( mockEventClient , times ( 1 ) ) . createEvent ( eq ( DefaultSessi... | org . junit . Assert . assertTrue ( ( ( ( java . lang . System . currentTimeMillis ( ) ) - pTime ) < ( target . getResumeDelay ( ) ) ) ) |
testOnReferralWitJNDIIgnore ( ) { javax . naming . ldap . LdapContext MNNCtx = org . apache . directory . server . operations . ldapsdk . AddIT . getContext ( ServerDNConstants . ADMIN_SYSTEM_DN , getLdapServer ( ) . getDirectoryService ( ) , "uid=akarasuluref,ou=users,ou=system" ) ; MNNCtx . addToEnvironment ( Context... | org . junit . Assert . assertTrue ( true ) |
and_any_of2 ( ) { com . querydsl . core . BooleanBuilder builder = new com . querydsl . core . BooleanBuilder ( ) ; builder . andAnyOf ( null , first ) ; "<AssertPlaceHolder>" ; } getValue ( ) { if ( ( value ) == null ) { int size = 0 ; com . google . common . collect . ImmutableList . Builder < com . querydsl . sql . ... | org . junit . Assert . assertEquals ( first , builder . getValue ( ) ) |
testCreateSecurityGroupRequest ( ) { try { com . fit2cloud . aliyun . ecs . model . request . CreateSecurityGroupsRequest r = new com . fit2cloud . aliyun . ecs . model . request . CreateSecurityGroupsRequest ( "cn-qingdao" , "fit2cloud-junittest2" ) ; com . fit2cloud . aliyun . ecs . model . response . CreateSecurityG... | org . junit . Assert . assertTrue ( ( ( response . getSecurityGroupId ( ) ) != null ) ) |
saveObjectPost ( ) { org . lightcouch . Response response = org . lightcouch . tests . DocumentsCRUDTest . dbClient . post ( new org . lightcouch . tests . Foo ( ) ) ; "<AssertPlaceHolder>" ; } getId ( ) { return id ; } | org . junit . Assert . assertNotNull ( response . getId ( ) ) |
decimalWithinVariantDecoding ( ) { long value = 1518632738243L ; short scale = 5 ; java . math . BigDecimal expected = java . math . BigDecimal . valueOf ( value , scale ) ; org . opcfoundation . ua . builtintypes . ExpandedNodeId id = new org . opcfoundation . ua . builtintypes . ExpandedNodeId ( org . opcfoundation .... | org . junit . Assert . assertEquals ( expected , actual ) |
shouldRespectWithNullMap ( ) { io . sundr . it . Default item = new io . sundr . it . DefaultBuilder ( ) . withMap ( null ) . build ( ) ; "<AssertPlaceHolder>" ; } getMap ( ) { return this . map ; } | org . junit . Assert . assertNull ( item . getMap ( ) ) |
testCorrectOperation ( ) { com . ibm . ws . microprofile . openapi . impl . validation . OperationValidator validator = com . ibm . ws . microprofile . openapi . impl . validation . OperationValidator . getInstance ( ) ; com . ibm . ws . microprofile . openapi . test . utils . TestValidationHelper vh = new com . ibm . ... | org . junit . Assert . assertEquals ( 0 , vh . getEventsSize ( ) ) |
testGetBandDataType_mixed_floatTypes ( ) { product . addBand ( "single" , ProductData . TYPE_FLOAT32 ) ; product . addBand ( "double" , ProductData . TYPE_FLOAT64 ) ; final org . esa . beam . dataio . bigtiff . internal . TiffIFD tiffIFD = new org . esa . beam . dataio . bigtiff . internal . TiffIFD ( product ) ; "<Ass... | org . junit . Assert . assertEquals ( ProductData . TYPE_FLOAT64 , tiffIFD . getBandDataType ( ) ) |
testThriftRoundTrip ( ) { for ( org . apache . accumulo . core . data . Column c : org . apache . accumulo . core . data . ColumnTest . col ) { org . apache . accumulo . core . dataImpl . thrift . TColumn tc = c . toThrift ( ) ; "<AssertPlaceHolder>" ; } } toThrift ( ) { serialize ( ) ; return new org . apache . accumu... | org . junit . Assert . assertEquals ( c , new org . apache . accumulo . core . data . Column ( tc ) ) |
shouldExecuteSelectOneAuthorUsingMapperClass ( ) { org . apache . ibatis . session . SqlSession session = org . apache . ibatis . session . SqlSessionTest . sqlMapper . openSession ( ) ; try { org . apache . ibatis . domain . blog . mappers . AuthorMapper mapper = session . getMapper ( org . apache . ibatis . domain . ... | org . junit . Assert . assertEquals ( 101 , author . getId ( ) ) |
testFedDrunkUncomplimentedKing ( ) { final com . iluwatar . servant . King king = new com . iluwatar . servant . King ( ) ; king . getFed ( ) ; king . getDrink ( ) ; king . changeMood ( ) ; "<AssertPlaceHolder>" ; } getMood ( ) { return isHappy ; } | org . junit . Assert . assertTrue ( king . getMood ( ) ) |
equals_sameObject_returnTrue ( ) { "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ( this ) == o ) return true ; if ( ( o == null ) || ( ( getClass ( ) ) != ( o . getClass ( ) ) ) ) return false ; com . amazonaws . services . s3 . AmazonS3URI that = ( ( com . amazonaws . services . s3 . AmazonS3URI ) (... | org . junit . Assert . assertThat ( target . equals ( target ) , org . hamcrest . Matchers . is ( true ) ) |
runTestMerge1 ( ) { soot . jimple . infoflow . results . InfoflowResults res = analyzeAPKFile ( "Aliasing/Merge1.apk" ) ; if ( res != null ) "<AssertPlaceHolder>" ; } size ( ) { return set . size ( ) ; } | org . junit . Assert . assertEquals ( 0 , res . size ( ) ) |
determinesFacingRightUp ( ) { com . fundynamic . d2tm . math . Vector2D coordinatesToFaceTo = unitAbsoluteMapCoordinates . add ( create ( 1 , ( - 1 ) ) ) ; "<AssertPlaceHolder>" ; } determine ( com . fundynamic . d2tm . math . Vector2D , com . fundynamic . d2tm . math . Vector2D ) { boolean left = ( to . getXAsInt ( ) ... | org . junit . Assert . assertEquals ( com . fundynamic . d2tm . game . entities . units . RIGHT_UP , determine ( unitAbsoluteMapCoordinates , coordinatesToFaceTo ) ) |
testCloseAndReopenEditor ( ) { waitForEvent ( new org . eclipse . xtext . xbase . lib . Procedures . Procedure0 ( ) { @ org . eclipse . xtext . common . types . ui . notification . Override public void apply ( ) { org . eclipse . ui . PlatformUI . getWorkbench ( ) . getActiveWorkbenchWindow ( ) . getActivePage ( ) . cl... | org . junit . Assert . assertNull ( event ) |
getMode ( ) { final int [ ] modes = new int [ ] { 0 , 1 , 4 , 5 , 7 , 9 , 36 , 45 , 63 , 73 , 292 , 365 , 511 , 457 , 484 , 493 , 2048 , 2112 , 1024 , 1032 , 3583 } ; for ( final int mode : modes ) { final org . exist . security . internal . aider . UnixStylePermissionAider permission = new org . exist . security . int... | org . junit . Assert . assertEquals ( mode , model . getMode ( ) ) |
sliceStartPos ( ) { java . util . List < java . lang . String > list = list ( "apple" , "oranges" , "pears" , "grapes" , "kiwi" ) ; java . util . List < java . lang . String > list2 ; list2 = slc ( list , 2 ) ; "<AssertPlaceHolder>" ; } slc ( org . boon . NavigableSet , V ) { return set . headSet ( toIndex ) ; } | org . junit . Assert . assertEquals ( list ( "pears" , "grapes" , "kiwi" ) , list2 ) |
testGetTermEntryAndLocale ( ) { org . zanata . model . HGlossaryEntry mockEntry = mock ( org . zanata . model . HGlossaryEntry . class ) ; when ( mockEntry . getId ( ) ) . thenReturn ( 1L ) ; org . zanata . dao . GlossaryDAOTest . log . debug ( "testGetTermEntryAndLocale" ) ; org . zanata . model . HGlossaryTerm term =... | org . junit . Assert . assertNotNull ( term ) |
testSetPrefetchCountToSmallValue ( ) { com . microsoft . azure . eventhubs . sendrecv . ReceiverOptions options = new com . microsoft . azure . eventhubs . sendrecv . ReceiverOptions ( ) ; options . setPrefetchCount ( 11 ) ; testReceiver = com . microsoft . azure . eventhubs . sendrecv . SetPrefetchCountTest . ehClient... | org . junit . Assert . assertTrue ( ( eventsReceived >= ( com . microsoft . azure . eventhubs . sendrecv . SetPrefetchCountTest . EVENT_COUNT ) ) ) |
statusRecordsTheStopTime ( ) { final java . time . LocalDateTime stop = java . time . LocalDateTime . of ( 2017 , Month . APRIL , 1 , 19 , 12 ) ; final com . iluwatar . databus . data . StoppingData stoppingData = new com . iluwatar . databus . data . StoppingData ( stop ) ; stoppingData . setDataBus ( com . iluwatar .... | org . junit . Assert . assertEquals ( stop , statusMember . getStopped ( ) ) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.