input stringlengths 28 18.7k | output stringlengths 39 1.69k |
|---|---|
isRolesRendered_RolePrices ( ) { ctrl . initializePartnerServiceView ( ) ; boolean rolesRendered = ctrl . isRolesRendered ( ) ; "<AssertPlaceHolder>" ; } isRolesRendered ( ) { return rolesRendered ; } | org . junit . Assert . assertEquals ( true , rolesRendered ) |
testSplitForMultipleSplitSizesFromOneTo16 ( ) { io . netty . buffer . ByteBuf bb = null ; try { bb = io . netty . buffer . Unpooled . directBuffer ( 1000 ) ; byte [ ] oneByte = new byte [ 1 ] ; for ( int i = 0 ; i < 1000 ; i ++ ) { oneByte [ 0 ] = ( ( byte ) ( i ) ) ; bb . writeBytes ( oneByte ) ; } java . security . M... | org . junit . Assert . assertArrayEquals ( expected , digest . digest ( ) ) |
testGetIntWithStringWithDefaultWithInvalidProperty ( ) { final edu . illinois . library . cantaloupe . config . Configuration instance = getInstance ( ) ; instance . setProperty ( "test1" , "cats" ) ; "<AssertPlaceHolder>" ; } getInt ( java . lang . String , int ) { try { return getInt ( key ) ; } catch ( java . util .... | org . junit . Assert . assertEquals ( 5 , instance . getInt ( "test1" , 5 ) ) |
testGetLogSegmentsZKExceptions ( ) { java . lang . String logName = testName . getMethodName ( ) ; java . lang . String logIdentifier = "<default>" ; org . apache . zookeeper . ZooKeeper mockZk = mock ( org . apache . zookeeper . ZooKeeper . class ) ; org . apache . distributedlog . ZooKeeperClient mockZkc = mock ( org... | org . junit . Assert . assertEquals ( Code . BADVERSION , zke . getKeeperExceptionCode ( ) ) |
test_HtmlBlock1 ( ) { final java . lang . String input = "" + ( ( ( ( ( "line<sp>1\n" + "\n" ) + "<img<sp>src=\"i.jpg\">\n" ) + "\n" ) + "line<sp>2" ) + "\n" ) ; final java . lang . String expected = "" + ( ( ( ( ( "line<sp>1\n" + "\n" ) + "<img<sp>src=\"replaced.png\">\n" ) + "\n" ) + "line<sp>2" ) + "\n" ) ; com . vl... | org . junit . Assert . assertEquals ( expected , formatted ) |
testString ( ) { java . lang . String expectedJavascript = "5" ; java . lang . String generatedJavascript = org . odlabs . wiquery . core . javascript . JsUtils . string ( 5 ) ; org . odlabs . wiquery . core . javascript . JsUtilsTestCase . log . info ( expectedJavascript ) ; org . odlabs . wiquery . core . javascript ... | org . junit . Assert . assertEquals ( generatedJavascript , expectedJavascript ) |
shouldLoadPropertyFromLazyProperties ( ) { final uk . gov . gchq . gaffer . data . element . Edge edge = new uk . gov . gchq . gaffer . data . element . Edge . Builder ( ) . build ( ) ; final uk . gov . gchq . gaffer . data . element . ElementValueLoader edgeLoader = mock ( uk . gov . gchq . gaffer . data . element . E... | org . junit . Assert . assertEquals ( exceptedPropertyValue , propertyValue ) |
testGetFrameTimeStampsFromDurations ( ) { int [ ] frameDurationsMs = new int [ ] { 30 , 30 , 60 , 30 , 30 } ; com . facebook . imagepipeline . animated . util . AnimatedDrawableUtil util = new com . facebook . imagepipeline . animated . util . AnimatedDrawableUtil ( ) ; int [ ] frameTimestampsMs = util . getFrameTimeSt... | org . junit . Assert . assertArrayEquals ( expected , frameTimestampsMs ) |
notify_withException ( ) { failureCollector . notify ( exceptionFailure ) ; "<AssertPlaceHolder>" ; } getFailureCount ( ) { return ( criticalFailureCounter . get ( ) ) + ( nonCriticalFailureCounter . get ( ) ) ; } | org . junit . Assert . assertEquals ( 1 , failureCollector . getFailureCount ( ) ) |
thiophene ( ) { org . openscience . cdk . interfaces . IAtomContainer container = new org . openscience . cdk . silent . AtomContainer ( 9 , 9 , 0 , 0 ) ; container . addAtom ( org . openscience . cdk . forcefield . mmff . MmffAtomTypeMatcherTest . atom ( "H" , 0 ) ) ; container . addAtom ( org . openscience . cdk . fo... | org . junit . Assert . assertArrayEquals ( expected , actual ) |
testOwnerQuery ( ) { org . nuxeo . ecm . automation . OperationContext ctx = new org . nuxeo . ecm . automation . OperationContext ( session ) ; java . util . Map < java . lang . String , java . lang . Object > params = new java . util . HashMap ( ) ; params . put ( "query" , "FROM<sp>LogEntry<sp>log<sp>WHERE<sp>log.pr... | org . junit . Assert . assertTrue ( ( ( entries . size ( ) ) > 0 ) ) |
shouldAppendCorrelationId ( ) { java . lang . String expectedUri = "http://localhost?teste=teste&correlationId=" + ( correlationId . toString ( ) ) ; java . lang . String uri = httpClient . appendCorrelationId ( "http://localhost?teste=teste" ) ; "<AssertPlaceHolder>" ; } appendCorrelationId ( java . lang . String ) { ... | org . junit . Assert . assertEquals ( expectedUri , uri ) |
velocityEnables ( ) { com . djrapitops . plan . system . PlanSystem velocitySystem = com . djrapitops . plan . VelocitySystemTest . component . getPlanSystem ( ) ; try { com . djrapitops . plan . system . settings . config . PlanConfig config = velocitySystem . getConfigSystem ( ) . getConfig ( ) ; config . set ( Webse... | org . junit . Assert . assertTrue ( velocitySystem . isEnabled ( ) ) |
model_2 ( ) { org . apache . jena . rdf . model . Model assem = org . apache . jena . util . FileManager . get ( ) . loadModel ( ( ( org . apache . jena . sdb . test . misc . TestAssembler . dir ) + "graph-assembler.ttl" ) ) ; org . apache . jena . rdf . model . Resource x = assem . getResource ( "http://example/test#g... | org . junit . Assert . assertNotNull ( model ) |
testBerichtleegZonderFouten ( ) { nl . bzk . brp . business . dto . bijhouding . AbstractBijhoudingsBericht bericht = new nl . bzk . brp . business . dto . bijhouding . VerhuizingBericht ( ) ; nl . bzk . brp . business . dto . BerichtContext context = new nl . bzk . brp . business . dto . BerichtContext ( new nl . bzk ... | org . junit . Assert . assertEquals ( 0 , resultaat . getMeldingen ( ) . size ( ) ) |
empty ( ) { org . jboss . hal . dmr . ResourceAddress input = new org . jboss . hal . dmr . ResourceAddress ( ) ; org . jboss . hal . dmr . ResourceAddress expected = new org . jboss . hal . dmr . ResourceAddress ( ) ; org . jboss . hal . dmr . ResourceAddress result = processor . apply ( input ) ; "<AssertPlaceHolder>... | org . junit . Assert . assertEquals ( expected , result ) |
testCreate_attrRegex_invalid ( ) { com . github . mygreen . supercsv . builder . FieldAccessor field = getFieldAccessor ( com . github . mygreen . supercsv . cellprocessor . constraint . PatternFactoryTest . ErrorCsv . class , "col_regex_invalid" , comparator ) ; com . github . mygreen . supercsv . builder . standard .... | org . junit . Assert . assertThat ( e ) |
testGetSingleHeader ( ) { com . google . appengine . api . urlfetch . HTTPResponse response = mock ( com . google . appengine . api . urlfetch . HTTPResponse . class ) ; try { com . google . appengine . tools . cloudstorage . oauth . URLFetchUtils . getSingleHeader ( response , "k1" ) ; org . junit . Assert . fail ( "N... | org . junit . Assert . assertEquals ( "v1" , com . google . appengine . tools . cloudstorage . oauth . URLFetchUtils . getSingleHeader ( response , "k1" ) ) |
testBuildItemLabelForRuntime ( ) { queryResultItem . setRuntimeName ( org . guvnor . ala . ui . backend . service . RuntimeListItemBuilderTest . RUNTIME_NAME ) ; org . guvnor . ala . ui . model . RuntimeListItem result = org . guvnor . ala . ui . backend . service . RuntimeListItemBuilder . newInstance ( ) . withItem (... | org . junit . Assert . assertEquals ( org . guvnor . ala . ui . backend . service . RuntimeListItemBuilderTest . RUNTIME_NAME , result . getItemLabel ( ) ) |
equalsContent_shouldIndicateUnequalWhenOnlyLatitudeDiffers ( ) { org . openmrs . PersonAddress address1 = new org . openmrs . PersonAddress ( ) ; org . openmrs . PersonAddress address2 = new org . openmrs . PersonAddress ( ) ; address2 . setLatitude ( "-23.33" ) ; address1 . setLatitude ( "43.3" ) ; "<AssertPlaceHolder... | org . junit . Assert . assertThat ( address2 . equalsContent ( address1 ) , org . hamcrest . CoreMatchers . is ( false ) ) |
testAddToMultipleLogsAndRecover ( ) { org . junit . Assume . assumeFalse ( isWindowsEnvironment ( ) ) ; final java . util . List < org . apache . nifi . provenance . search . SearchableField > searchableFields = new java . util . ArrayList ( ) ; searchableFields . add ( SearchableFields . ComponentID ) ; final org . ap... | org . junit . Assert . assertEquals ( 2 , result . getMatchingEvents ( ) . size ( ) ) |
executeEmptyRowWithMappings ( ) { this . cut . columnMappings . put ( "duke" , new com . airhacks . enhydrator . transform . ColumnCopier . NameList ( java . util . Arrays . asList ( "java" , "javaee" ) ) ) ; com . airhacks . enhydrator . in . Row row = new com . airhacks . enhydrator . in . Row ( ) ; com . airhacks . ... | org . junit . Assert . assertTrue ( withCopiedColumns . isEmpty ( ) ) |
when_tryProcess0_then_delegatesToTryProcess ( ) { boolean done = p . tryProcess0 ( com . hazelcast . jet . core . AbstractProcessorTest . MOCK_ITEM ) ; "<AssertPlaceHolder>" ; p . validateReceptionOfItem ( com . hazelcast . jet . core . AbstractProcessorTest . ORDINAL_0 , com . hazelcast . jet . core . AbstractProcesso... | org . junit . Assert . assertTrue ( done ) |
test_createAndSendMail_noEmailReceipients ( ) { boolean result = notificationService . createAndSendMail ( "subject" , "content" , null ) ; "<AssertPlaceHolder>" ; } createAndSendMail ( java . lang . String , java . lang . String , javax . mail . Address [ ] ) { boolean deliverEmails = ch . puzzle . itc . mobiliar . co... | org . junit . Assert . assertFalse ( result ) |
testGetLabelResource ( ) { System . out . println ( "getLabelResource" ) ; org . jmeterplugins . protocol . http . control . gui . HttpSimpleTableControlGui instance = new org . jmeterplugins . protocol . http . control . gui . HttpSimpleTableControlGui ( ) ; java . lang . String expResult = "HttpSimpleTableControlGui"... | org . junit . Assert . assertEquals ( expResult , result ) |
testMalformedPathInfoReturnsError ( ) { org . eclipse . jetty . server . Request baseRequest = createMock ( org . eclipse . jetty . server . Request . class ) ; expect ( baseRequest . getPathInfo ( ) ) . andReturn ( "/..upADirectory" ) ; com . facebook . buck . util . trace . BuildTraces buildTraces = createMock ( com ... | org . junit . Assert . assertNull ( traceHandler . getDataForRequest ( baseRequest ) ) |
testParse5 ( ) { java . lang . String input = "" ; long [ ] result = org . drools . core . base . evaluators . TimeIntervalParser . parse ( input ) ; "<AssertPlaceHolder>" ; } parse ( java . lang . String ) { if ( ( paramText == null ) || ( ( paramText . trim ( ) . length ( ) ) == 0 ) ) { return new long [ 0 ] ; } java... | org . junit . Assert . assertEquals ( 0 , result . length ) |
invalidInputForNoObjectFactoryGeneration ( ) { java . io . File wsdl = getCodegenQEDataFileInput ( "AdcommerceConfigGroupMarketV1.wsdl" ) ; java . lang . String [ ] testArgs = new java . lang . String [ ] { "-dest" 1 , "-dest" 8 , "-genType" , "-dest" 5 , "-wsdl" , wsdl . getAbsolutePath ( ) , "-dest" 7 , "-dest" 0 , "... | org . junit . Assert . assertFalse ( file . exists ( ) ) |
given_a_persisted_order_when_find_by_id_with_transactional_then_found ( ) { org . aggregateframework . sample . complexmodel . command . domain . entity . BookingOrder bookingOrder = buildOrder ( ) ; orderRepository . save ( bookingOrder ) ; orderRepository . flush ( ) ; org . aggregateframework . sample . complexmodel... | org . junit . Assert . assertTrue ( foundBookingOrder . getId ( ) . equals ( bookingOrder . getId ( ) ) ) |
testPut ( ) { org . jboss . resteasy . test . resource . basic . GenericResourceTest . proxy . put ( 2 , new org . jboss . resteasy . test . resource . basic . resource . GenericResourceStudent ( "John<sp>Doe" ) ) ; "<AssertPlaceHolder>" ; } get ( java . lang . String ) { org . jboss . resteasy . test . resource . basi... | org . junit . Assert . assertTrue ( org . jboss . resteasy . test . resource . basic . GenericResourceTest . proxy . get ( 2 ) . getName ( ) . equals ( "John<sp>Doe" ) ) |
testInjectionInWar ( ) { "<AssertPlaceHolder>" ; } getSession ( ) { return session ; } | org . junit . Assert . assertNotNull ( consumer . getSession ( ) ) |
Should_cancelOldEntryWhenItIsOverriddenByNewOne ( ) { when ( entries [ 1 ] . getId ( ) ) . thenReturn ( "0" ) ; info . smart_tools . smartactors . scheduler . actor . impl . EntryStorage storage = new info . smart_tools . smartactors . scheduler . actor . impl . EntryStorage ( remoteEntryStorage , null ) ; storage . no... | org . junit . Assert . assertSame ( entries [ 1 ] , storage . getEntry ( "0" ) ) |
testCreateInstance ( ) { com . runabove . api . RunAboveManager runAboveApi = login ( ) ; com . runabove . model . instance . InstanceDetail instanceDetail = new com . runabove . model . instance . InstanceDetail ( ) ; com . runabove . model . instance . Flavor [ ] flavors = runAboveApi . getFlavor ( ) ; instanceDetail... | org . junit . Assert . assertNotNull ( listInstances ) |
testParagraphsWithNamespaces ( ) { java . lang . String html = ( ( header ) + "<w:p>paragraph</w:p>" ) + ( footer ) ; org . xwiki . xml . html . HTMLCleanerConfiguration configuration = this . officeHTMLCleaner . getDefaultConfiguration ( ) ; configuration . setParameters ( java . util . Collections . singletonMap ( HT... | org . junit . Assert . assertEquals ( 1 , nodes . getLength ( ) ) |
deveGerarXMLDeAcordoComOPadraoEstabelecido ( ) { final java . lang . String xmlEsperado = "<NFNotaInfoCobranca><fat><nFat>KDVAp0aewPjmHaTsjbDX1O6NOR9tc7TxGflFLXsMZt2hEKar3oqzZ11uzEQF</nFat><vOrig>3001.15</vOrig><vDesc>0.15</vDesc><vLiq>3000.00</vLiq></fat><dup><nDup>TQ49cyOL5KtBAUTF0LShhThpUbtCK1fQH1PH4AMcKzMNLxyDbV957... | org . junit . Assert . assertEquals ( xmlEsperado , com . fincatto . documentofiscal . nfe400 . FabricaDeObjetosFake . getNFNotaInfoCobranca ( ) . toString ( ) ) |
testForLongArray ( ) { java . lang . Long [ ] longArr = new java . lang . Long [ 2 ] ; longArr [ 0 ] = 1L ; longArr [ 1 ] = 2L ; org . apache . phoenix . schema . types . PhoenixArray arr = org . apache . phoenix . schema . types . PArrayDataType . instantiatePhoenixArray ( PLong . INSTANCE , longArr ) ; PLongArray . I... | org . junit . Assert . assertEquals ( arr , resultArr ) |
testCreate ( ) { System . out . println ( "create" ) ; com . pearson . docussandra . domain . objects . Table entity = com . pearson . docussandra . testhelper . Fixtures . createTestTable ( ) ; com . pearson . docussandra . persistence . TableRepository instance = new com . pearson . docussandra . persistence . impl .... | org . junit . Assert . assertEquals ( entity , result ) |
testNewPacket ( ) { try { org . pcap4j . packet . IcmpV4TimestampPacket p = org . pcap4j . packet . IcmpV4TimestampPacket . newPacket ( packet . getRawData ( ) , 0 , packet . getRawData ( ) . length ) ; "<AssertPlaceHolder>" ; } catch ( org . pcap4j . packet . IllegalRawDataException e ) { throw new java . lang . Asser... | org . junit . Assert . assertEquals ( packet , p ) |
test_buildUriContent_wrongController ( ) { javax . servlet . http . HttpServletResponse responseMock = org . easymock . EasyMock . createMock ( javax . servlet . http . HttpServletResponse . class ) ; javax . servlet . http . HttpServletRequest requestMock = org . easymock . EasyMock . createMock ( javax . servlet . ht... | org . junit . Assert . assertTrue ( false ) |
testDownloadBiergarten ( ) { java . util . List < de . bayern . gdi . model . DownloadStep > steps = prepareStep ( de . bayern . gdi . IntegrationTest . DOWNLOAD_CONFIGURATION :: getBiergartenConfiguration ) ; java . lang . String username = "" ; java . lang . String password = "" ; int result = de . bayern . gdi . Hea... | org . junit . Assert . assertTrue ( ( result == 0 ) ) |
withTwoCents ( ) { "<AssertPlaceHolder>" ; } makeChangeWithQuarterDimeNickelPenny ( int ) { int [ ] components = new int [ ] { 25 , 10 , 5 , 1 } ; int [ ] [ ] cache = new int [ n + 1 ] [ components . length ] ; return makeChange ( n , 0 , components , cache ) ; } | org . junit . Assert . assertEquals ( 1 , s . makeChangeWithQuarterDimeNickelPenny ( 3 ) ) |
testToString ( ) { final java . util . UUID uuid = java . util . UUID . randomUUID ( ) ; "<AssertPlaceHolder>" ; } toString ( java . util . UUID ) { if ( com . eatthepath . uuid . FastUUID . USE_JDK_UUID_TO_STRING ) { return uuid . toString ( ) ; } final long mostSignificantBits = uuid . getMostSignificantBits ( ) ; fi... | org . junit . Assert . assertEquals ( uuid . toString ( ) , com . eatthepath . uuid . FastUUID . toString ( uuid ) ) |
testGetDom ( ) { "<AssertPlaceHolder>" ; } getDom ( ) { return dom ; } | org . junit . Assert . assertEquals ( dom , s . getDom ( ) ) |
redirectInPipeAndRedirectOutOperator ( ) { org . aesh . tty . TestConnection connection = new org . aesh . tty . TestConnection ( ) ; org . aesh . command . registry . CommandRegistry registry = org . aesh . command . impl . registry . AeshCommandRegistryBuilder . builder ( ) . command ( org . aesh . command . operator... | org . junit . Assert . assertEquals ( "FOO<sp>BAR" , output . get ( 0 ) ) |
testMultiplyUnitOfQ ( ) { tec . uom . se . AbstractUnit < ? > result = ( ( tec . uom . se . AbstractUnit < ? > ) ( one . multiply ( one ) ) ) ; "<AssertPlaceHolder>" ; } multiply ( java . lang . Number ) { return toDecimalQuantity ( ) . multiply ( that ) ; } | org . junit . Assert . assertEquals ( result , one ) |
testGet ( ) { com . xiaomi . shepher . model . ReviewRequest reviewRequest = reviewMapper . get ( 1 ) ; "<AssertPlaceHolder>" ; } getId ( ) { return id ; } | org . junit . Assert . assertEquals ( 1 , reviewRequest . getId ( ) ) |
getDistanceTestPartialSubstringMatch ( ) { java . lang . String needle = "needle" ; java . lang . String noise = "bla" ; java . lang . String haystack = ( "prefix<sp>needle" + noise ) + "<sp>postfix" ; org . eclipse . sw360 . cvesearch . datasource . matcher . Match match = org . eclipse . sw360 . cvesearch . datasourc... | org . junit . Assert . assertThat ( match . getDistance ( ) , is ( noise . length ( ) ) ) |
encryptPrivateKey ( ) { java . lang . String keyPhrase = "moreovertelevisionfactorytendencyindependenceinternationalintellectualimpress" + "interestvolunteer" ; java . security . KeyPairGenerator keyGen = java . security . KeyPairGenerator . getInstance ( "RSA" ) ; keyGen . initialize ( 4096 , new java . security . Sec... | org . junit . Assert . assertEquals ( privateKeyString , decryptedString ) |
checkFileReturnTrue ( ) { java . io . File confFile = new java . io . File ( path ) ; if ( ! ( confFile . exists ( ) ) ) { persistence . saveConfiguration ( com . orange . cepheus . cep . persistence . PersistenceTest . configurationId , getBasicConf ( ) ) ; } "<AssertPlaceHolder>" ; } configurationExists ( java . lang... | org . junit . Assert . assertTrue ( persistence . configurationExists ( com . orange . cepheus . cep . persistence . PersistenceTest . configurationId ) ) |
testNotSet ( ) { org . antlr . tool . Grammar g = new org . antlr . tool . Grammar ( ( "parser<sp>grammar<sp>P;\n" + ( "tokens<sp>{<sp>A;<sp>B;<sp>C;<sp>}\n" + "a<sp>:<sp>~A<sp>;\n" ) ) ) ; java . lang . String expecting = ".s0->.s1\n" + ( ( ( ".s1->.s2\n" + ".s2-B..C->.s3\n" ) + ".s3->:s4\n" ) + ".s2-B..C->.s3\n" 0 ) ... | org . junit . Assert . assertEquals ( expectingGrammarStr , g . toString ( ) ) |
testTezAttemptRecoveryStagingPath ( ) { java . lang . String strAppId = "testAppId" ; org . apache . hadoop . fs . Path stageDir = org . apache . tez . common . TezCommonUtils . getTezSystemStagingPath ( org . apache . tez . common . TestTezCommonUtils . conf , strAppId ) ; org . apache . hadoop . fs . Path recoveryPat... | org . junit . Assert . assertEquals ( recoveryStageDir . toString ( ) , expectedDir ) |
testTest ( ) { logger . info ( "test" ) ; com . datumbox . framework . common . dataobjects . FlatDataCollection flatDataCollection = new com . datumbox . framework . common . dataobjects . FlatDataCollection ( java . util . Arrays . asList ( new java . lang . Object [ ] { 19.5 , 19.8 , 18.9 , 20.4 , 20.2 , 21.5 , 19.9... | org . junit . Assert . assertEquals ( expResult , result ) |
testPersoonGeenIndicatiesInBericht ( ) { final nl . bzk . brp . model . hisvolledig . impl . kern . PersoonHisVolledigImpl huidigePersoon = maakHuidigePersoon ( 20120102 ) ; final nl . bzk . brp . model . bericht . kern . PersoonBericht persoonBericht = maakNieuweSituatie ( false ) ; final nl . bzk . brp . model . oper... | org . junit . Assert . assertTrue ( berichtEntiteiten . isEmpty ( ) ) |
checkSendMethod ( ) { java . util . List < java . lang . Object > storage = new java . util . ArrayList < java . lang . Object > ( ) ; java . lang . Object test = new java . lang . Object ( ) ; info . smart_tools . smartactors . testing . test_http_endpoint . TestChannelHandler channelHandler = new info . smart_tools .... | org . junit . Assert . assertSame ( storage . get ( 0 ) , test ) |
testLeesBlobBestaandeBlobMetIncorrecteChecksumBlijftGewoonWerken ( ) { final java . lang . Integer persoonId = 2 ; final org . springframework . transaction . TransactionStatus transactieStatus = zorgDatBlobBestaatInTransactie ( persoonId ) ; final nl . bzk . brp . model . operationeel . kern . PersoonCacheModel inMemo... | org . junit . Assert . assertEquals ( persoonId , persoon . getID ( ) ) |
testReadFromSourceWithEmptyPredicates ( ) { org . gradoop . storage . impl . hbase . io . HBaseDataSource hBaseDataSource = new org . gradoop . storage . impl . hbase . io . HBaseDataSource ( org . gradoop . storage . impl . hbase . io . HBaseDataSinkSourceTest . epgmStores [ storeIndex ] , getConfig ( ) ) ; hBaseDataS... | org . junit . Assert . assertTrue ( hBaseDataSource . isFilterPushedDown ( ) ) |
testRawAnswerPresence ( ) { org . batfish . datamodel . NetworkFactory nf = new org . batfish . datamodel . NetworkFactory ( ) ; org . batfish . datamodel . Configuration c1 = nf . configurationBuilder ( ) . setConfigurationFormat ( ConfigurationFormat . CISCO_IOS ) . build ( ) ; nf . routingPolicyBuilder ( ) . setOwne... | org . junit . Assert . assertThat ( rows , org . hamcrest . Matchers . equalTo ( expected ) ) |
testGetEntityPath ( ) { org . sagebionetworks . repo . model . EntityHeader one = new org . sagebionetworks . repo . model . EntityHeader ( ) ; one . setId ( "syn123" ) ; org . sagebionetworks . repo . model . EntityHeader two = new org . sagebionetworks . repo . model . EntityHeader ( ) ; two . setId ( "syn456" ) ; wh... | org . junit . Assert . assertEquals ( expected , results ) |
testIsNotSatisfiedByMissedDeadline ( ) { net . java . cargotracker . domain . model . cargo . RouteSpecification routeSpecification = new net . java . cargotracker . domain . model . cargo . RouteSpecification ( net . java . cargotracker . domain . model . location . SampleLocations . HONGKONG , net . java . cargotrack... | org . junit . Assert . assertFalse ( routeSpecification . isSatisfiedBy ( itinerary ) ) |
testRemoveHtmlClassMixed ( ) { com . github . bordertech . wcomponents . AbstractWComponent comp = new com . github . bordertech . wcomponents . AbstractWComponent_Test . SimpleComponent ( ) ; comp . setHtmlClass ( HtmlClassProperties . ICON ) ; comp . removeHtmlClass ( HtmlClassProperties . ICON . toString ( ) ) ; "<A... | org . junit . Assert . assertNull ( comp . getHtmlClass ( ) ) |
testGetValue ( ) { org . openscience . cdk . qsar . DescriptorSpecification spec = new org . openscience . cdk . qsar . DescriptorSpecification ( org . openscience . cdk . qsar . DescriptorValueTest . DESC_REF , org . openscience . cdk . qsar . DescriptorValueTest . DESC_IMPL_TITLE , org . openscience . cdk . qsar . De... | org . junit . Assert . assertEquals ( doubleVal , value . getValue ( ) ) |
testCustom ( ) { java . lang . String className = "testCustom" ; com . orientechnologies . orient . core . metadata . schema . OSchema schema = com . orientechnologies . orient . core . sql . executor . OAlterClassStatementExecutionTest . db . getMetadata ( ) . getSchema ( ) ; schema . createClass ( className ) ; com .... | org . junit . Assert . assertEquals ( "bar" , clazz . getCustom ( "foo" ) ) |
testDelete ( ) { com . codesolid . tests . Actor actor = new com . codesolid . tests . Actor ( ) ; com . codesolid . tutorials . model . dal . Storage < com . codesolid . tests . Actor > storage = new com . codesolid . tutorials . model . dal . Storage < com . codesolid . tests . Actor > ( actor ) ; storage . beginTran... | org . junit . Assert . assertNull ( actor2 ) |
executeWithImport1 ( ) { mojo . setTargetFolder ( "target/export11" ) ; mojo . setImports ( new java . lang . String [ ] { "com.pck1" , "com.pck2" , "com.Q1" , "com.Q2" } ) ; mojo . execute ( ) ; "<AssertPlaceHolder>" ; } exists ( ) { org . junit . Assert . assertTrue ( ( ( query . where ( title . eq ( "Jurassic<sp>Par... | org . junit . Assert . assertTrue ( new java . io . File ( "target/export11" ) . exists ( ) ) |
whenlittleNumFactorial ( ) { chapter1 . loop . Factorial fc = new chapter1 . loop . Factorial ( "5" ) ; double result = fc . calcFactorial ( ) ; double control = 120 ; "<AssertPlaceHolder>" ; } calcFactorial ( ) { double result = 1 ; for ( int index = 1 ; index <= ( num ) ; index ++ ) { result *= index ; } return resul... | org . junit . Assert . assertThat ( result , org . hamcrest . core . Is . is ( control ) ) |
appendIntHexValue ( ) { java . util . Random r = new java . util . Random ( 101 ) ; for ( int i = 0 ; i < ( com . ociweb . pronghorn . pipe . util . AppendablesTest . TEST_SIZE ) ; i ++ ) { int value = r . nextInt ( ) ; java . lang . String actual = com . ociweb . pronghorn . util . Appendables . appendHexDigits ( new ... | org . junit . Assert . assertEquals ( ( "" + i ) , expected , actual ) |
buildDownstream_derived_makeDownstream ( ) { java . lang . System . setProperty ( Property . buildDownstream . fullName ( ) , "derived" ) ; when ( mavenExecutionRequestMock . getMakeBehavior ( ) ) . thenReturn ( MavenExecutionRequest . REACTOR_MAKE_DOWNSTREAM ) ; com . vackosar . gitflowincrementalbuild . boundary . Co... | org . junit . Assert . assertTrue ( configuration . buildDownstream ) |
testClear ( ) { tested . group = group ; tested . clear ( ) ; "<AssertPlaceHolder>" ; verify ( view , times ( 0 ) ) . init ( tested ) ; verify ( view , times ( 0 ) ) . setDeleteButtonVisible ( anyBoolean ( ) ) ; verify ( view , times ( 0 ) ) . show ( anyString ( ) ) ; verify ( view , times ( 1 ) ) . clear ( ) ; } clear... | org . junit . Assert . assertNull ( tested . group ) |
cascadeTwoLevelsDuringRecord ( mockit . CascadingWithGenericsTest$Foo ) { final mockit . Date now = new mockit . Date ( ) ; new mockit . Expectations ( ) { { mockFoo . returnTypeWithBoundedTypeVariable ( ) . getDate ( ) ; result = now ; } } ; mockit . CascadingWithGenericsTest . Foo foo = new mockit . CascadingWithGene... | org . junit . Assert . assertSame ( now , foo . returnTypeWithBoundedTypeVariable ( ) . getDate ( ) ) |
testDebugURLCanBeSet ( ) { configuration . setDebugURL ( "A<sp>URL" ) ; "<AssertPlaceHolder>" ; } getDebugURL ( ) { return debugURL ; } | org . junit . Assert . assertEquals ( "A<sp>URL" , configuration . getDebugURL ( ) ) |
testRegisterControllerInstance ( ) { controllerRegistry . register ( new ro . pippo . controller . ControllerRegistryTest . WithoutPathController ( ) , new ro . pippo . controller . ControllerRegistryTest . WithPathWithoutValueController ( ) , new ro . pippo . controller . ControllerRegistryTest . WithPathWithSingleVal... | org . junit . Assert . assertEquals ( expectedTotalRoutes , controllerRegistry . getRoutes ( ) . size ( ) ) |
createCollectionWithMinimalParametersIsSuccessful ( ) { java . lang . String uniqueCollectionName = ( uniqueName ) + "-collection" ; com . ibm . watson . discovery . v1 . model . CreateCollectionOptions createOptions = new com . ibm . watson . discovery . v1 . model . CreateCollectionOptions . Builder ( com . ibm . wat... | org . junit . Assert . assertNotNull ( createResponse . getCollectionId ( ) ) |
testApply ( ) { com . ccreanga . bitbucket . rest . client . http . responseparsers . PullRequestParser pullRequestParser = new com . ccreanga . bitbucket . rest . client . http . responseparsers . PullRequestParser ( ) ; com . ccreanga . bitbucket . rest . client . model . pull . PullRequest pullRequest = new com . cc... | org . junit . Assert . assertEquals ( pullRequest , parsedPullRequest ) |
testHasTax ( ) { com . eclipsesource . tabris . tracking . Order order = new com . eclipsesource . tabris . tracking . Order ( "foo" , java . math . BigDecimal . ONE ) ; order . setTax ( java . math . BigDecimal . valueOf ( 3 ) ) ; java . math . BigDecimal tax = order . getTax ( ) ; "<AssertPlaceHolder>" ; } getTax ( )... | org . junit . Assert . assertEquals ( java . math . BigDecimal . valueOf ( 3 ) , tax ) |
testEmptySortAndGroup ( ) { final java . util . List < org . apache . hadoop . mrunit . types . Pair < org . apache . hadoop . io . Text , org . apache . hadoop . io . Text > > inputs = new java . util . ArrayList < org . apache . hadoop . mrunit . types . Pair < org . apache . hadoop . io . Text , org . apache . hadoo... | org . junit . Assert . assertEquals ( 0 , outputs . size ( ) ) |
testDeepUnification ( ) { nl . utwente . viskell . haskell . type . TypeScope scope = new nl . utwente . viskell . haskell . type . TypeScope ( ) ; nl . utwente . viskell . haskell . type . TypeVar a = scope . getVar ( "a" ) ; nl . utwente . viskell . haskell . type . TypeVar b = scope . getVar ( "b" ) ; nl . utwente .... | org . junit . Assert . assertEquals ( "Int" , y . prettyPrint ( ) ) |
testCoordinateDimensionPointLite1D ( ) { org . locationtech . jts . geom . Geometry geom = org . geotools . geometry . jts . coordinatesequence . CoordinateSequencesTest . geomBuilder . point ( 1 ) ; "<AssertPlaceHolder>" ; } coordinateDimension ( org . locationtech . jts . geom . Geometry ) { if ( g instanceof org . g... | org . junit . Assert . assertEquals ( 1 , org . geotools . geometry . jts . coordinatesequence . CoordinateSequences . coordinateDimension ( geom ) ) |
testParallelVariableValueEqualConditions ( ) { java . util . Map < java . lang . String , java . lang . Object > variables = org . camunda . bpm . engine . variable . Variables . createVariables ( ) ; variables . put ( org . camunda . bpm . engine . test . bpmn . event . conditional . VARIABLE_NAME , 0 ) ; org . camund... | org . junit . Assert . assertNull ( procInst ) |
testFindCurrentByMonthCodeAndGroupNo ( ) { java . lang . String monthCode = "A" ; java . lang . String groupNo = "101" ; java . util . Date updateDateTime = new java . util . Date ( dfm . parse ( "20080101" ) . getTime ( ) ) ; org . oscarehr . billing . CA . model . BillActivity billActivity1 = new org . oscarehr . bil... | org . junit . Assert . assertTrue ( true ) |
testGeldigeDatumWaarde ( ) { final nl . bzk . brp . domain . element . AttribuutElement attribuutElement = getAttribuutElement ( Element . PERSOON_GEBOORTE_DATUM . getId ( ) ) ; final nl . bzk . brp . service . bevraging . zoekpersoongeneriek . AbstractZoekPersoonVerzoek bevragingVerzoek = maakBevragingVerzoek ( attrib... | org . junit . Assert . assertEquals ( 0 , meldingen . size ( ) ) |
testAddFieldWithWButtonNullLabel ( ) { com . github . bordertech . wcomponents . WFieldLayout layout = new com . github . bordertech . wcomponents . WFieldLayout ( ) ; com . github . bordertech . wcomponents . WField field = layout . addField ( new com . github . bordertech . wcomponents . WButton ( "Test" ) ) ; "<Asse... | org . junit . Assert . assertNull ( field . getLabel ( ) ) |
testShouldFireSyncEvent ( ) { java . util . concurrent . atomic . AtomicInteger moveCounter = com . liferay . document . library . app . service . test . DLAppServiceTestUtil . registerDLSyncEventProcessorMessageListener ( DLSyncConstants . EVENT_MOVE ) ; com . liferay . portal . kernel . repository . model . FileEntry... | org . junit . Assert . assertEquals ( 1 , moveCounter . get ( ) ) |
shouldReturnStateBadRequestIfRoleNameIsInvalid ( ) { ch . mobi . itc . mobiliar . rest . dtos . RestrictionDTO restrictionDTO = new ch . mobi . itc . mobiliar . rest . dtos . RestrictionDTO ( null , "invalid" , null , ch . puzzle . itc . mobiliar . business . security . entity . Permission . RESOURCE , null , null , nu... | org . junit . Assert . assertEquals ( ch . mobi . itc . mobiliar . rest . permissions . BAD_REQUEST . getStatusCode ( ) , response . getStatus ( ) ) |
testEvaluation ( ) { sg . edu . nus . comp . nsynth . Node n = new sg . edu . nus . comp . nsynth . Add ( sg . edu . nus . comp . nsynth . IntConst . of ( 1 ) , sg . edu . nus . comp . nsynth . IntConst . of ( 2 ) ) ; sg . edu . nus . comp . nsynth . Node s = sg . edu . nus . comp . nsynth . Simplifier . simplify ( n )... | org . junit . Assert . assertEquals ( sg . edu . nus . comp . nsynth . IntConst . of ( 3 ) , s ) |
testUnion ( ) { org . apache . druid . collections . bitmap . WrappedBitSetBitmap bitSet = new org . apache . druid . collections . bitmap . WrappedBitSetBitmap ( org . apache . druid . collections . IntSetTestUtility . createSimpleBitSet ( org . apache . druid . collections . IntSetTestUtility . getSetBits ( ) ) ) ; j... | org . junit . Assert . assertTrue ( org . apache . druid . collections . IntSetTestUtility . equalSets ( union , ( ( org . apache . druid . collections . bitmap . WrappedBitSetBitmap ) ( bitSet . union ( bitExtraSet ) ) ) ) ) |
testInvalidData ( ) { queryDNSTestRunner . removeProperty ( QueryDNS . QUERY_PARSER_INPUT ) ; queryDNSTestRunner . setProperty ( QueryDNS . DNS_QUERY_TYPE , "AAAA" ) ; queryDNSTestRunner . setProperty ( QueryDNS . DNS_RETRIES , "1" ) ; queryDNSTestRunner . setProperty ( QueryDNS . DNS_TIMEOUT , "1000<sp>ms" ) ; queryDN... | org . junit . Assert . assertTrue ( ( ( results . size ( ) ) == 1 ) ) |
manageOperations_VSERVERS_STOPPING_VSysNotInNormalState ( ) { org . oscm . app . iaas . data . FlowState newState = vSystemProcessor . manageOperations ( org . oscm . app . iaas . VSystemProcessorBeanTest . CONTROLLER_ID , org . oscm . app . iaas . VSystemProcessorBeanTest . INSTANCE_ID , paramHandler , FlowState . VSE... | org . junit . Assert . assertNull ( newState ) |
testRdfcatConcat ( ) { org . apache . jena . rdf . model . Model source = org . apache . jena . rdf . model . ModelFactory . createDefaultModel ( ) ; source . read ( "file:testing/cmd/rdfcat.xml" , "RDF/XML" ) ; java . io . OutputStream so = new java . io . ByteArrayOutputStream ( ) ; jena . cmd . Test_rdfcat . rdfcatF... | org . junit . Assert . assertTrue ( output . isIsomorphicWith ( source ) ) |
testIfPresentOrElseWhenValuePresent ( ) { com . annimon . stream . Optional . of ( 10 ) . ifPresentOrElse ( new com . annimon . stream . function . Consumer < java . lang . Integer > ( ) { @ com . annimon . stream . Override public void accept ( java . lang . Integer value ) { "<AssertPlaceHolder>" ; } } , new java . l... | org . junit . Assert . assertEquals ( 10 , ( ( int ) ( value ) ) ) |
testGetMSList ( ) { "<AssertPlaceHolder>" ; } sort ( java . util . List , java . util . List , java . lang . Long ) { if ( ( msList . size ( ) ) < 2 ) { return msList ; } final java . util . List < java . lang . Long > hostList = new java . util . ArrayList ( orderedHostList ) ; java . lang . Long searchId = hostId ; i... | org . junit . Assert . assertEquals ( msList , algorithm . sort ( msList , null , null ) ) |
testDataset2 ( ) { fr . inria . corese . core . Graph g = fr . inria . corese . core . Graph . create ( ) ; g . getDataStore ( ) . addDefaultGraph ( ) ; fr . inria . corese . core . load . Load ld = fr . inria . corese . core . load . Load . create ( g ) ; ld . setDefaultGraph ( true ) ; ld . parse ( ( ( fr . inria . c... | org . junit . Assert . assertEquals ( size , map . size ( ) ) |
runTest ( ) { boolean result = checkNoError ( "Social_Communities_Get_Sub_Communities" ) ; "<AssertPlaceHolder>" ; } getNoErrorMsg ( ) { return noErrorMsg ; } | org . junit . Assert . assertTrue ( getNoErrorMsg ( ) , result ) |
testPredikaatLeeg ( ) { java . util . Set < javax . validation . ConstraintViolation > overtredingen = validate ( bouwGroep ( "-" , "abc" , StatischeObjecttypeBuilder . ADEL_TITEL_BARON , null , null ) ) ; "<AssertPlaceHolder>" ; } size ( ) { return elementen . size ( ) ; } | org . junit . Assert . assertEquals ( 0 , overtredingen . size ( ) ) |
testProcessMsgNotifInstanceRemoved_invalidInstance ( ) { net . roboconf . messaging . api . messages . from_agent_to_dm . MsgNotifInstanceRemoved msg = new net . roboconf . messaging . api . messages . from_agent_to_dm . MsgNotifInstanceRemoved ( this . app . getName ( ) , new net . roboconf . core . model . beans . In... | org . junit . Assert . assertEquals ( instancesCount , net . roboconf . core . model . helpers . InstanceHelpers . getAllInstances ( this . app ) . size ( ) ) |
testMakeAttachmentText ( ) { com . huffingtonpost . chronos . agent . PersistentResultSet results = com . huffingtonpost . chronos . agent . TestCallableQuery . getPRS ( ) ; java . lang . String actual = com . huffingtonpost . chronos . agent . CallableQuery . makeAttachmentText ( results ) ; java . lang . String expec... | org . junit . Assert . assertEquals ( expected , actual ) |
testNonExistingKeyEvalIsNilWithoutDefault ( ) { boolean isNil = ff . isNil ( ff . function ( "env" , ff . literal ( "not<sp>existig<sp>key" ) ) , null ) . evaluate ( null ) ; "<AssertPlaceHolder>" ; } evaluate ( java . lang . Object ) { return evaluate ( object , org . locationtech . jts . geom . Point . class ) ; } | org . junit . Assert . assertTrue ( isNil ) |
whenFillFormCorrectlyEventFired ( ) { org . finance . app . core . domain . Form correctlyFilledForm = fillTheFormAndSave ( ) ; org . finance . app . core . domain . events . customerservice . RequestWasSubmitted event = new org . finance . app . core . domain . events . customerservice . RequestWasSubmitted ( correctl... | org . junit . Assert . assertTrue ( requestSubmittedHandler . isRightEventOccurred ( ) ) |
notEquals ( ) { org . apache . taverna . scufl2 . api . container . WorkflowBundle wb1 = new org . apache . taverna . scufl2 . api . container . WorkflowBundle ( ) ; org . apache . taverna . scufl2 . api . container . WorkflowBundle wb2 = new org . apache . taverna . scufl2 . api . container . WorkflowBundle ( ) ; wb1 ... | org . junit . Assert . assertFalse ( wb1 . equals ( wb2 ) ) |
testGetDateOnDateCell ( ) { final org . simpleflatmapper . reflect . Getter < org . simpleflatmapper . poi . test . impl . Row , java . util . Date > getter = rowGetterFactory . newGetter ( java . util . Date . class , key , CsvColumnDefinition . IDENTITY ) ; java . util . Date now = new java . util . Date ( ) ; cell .... | org . junit . Assert . assertEquals ( now , getter . get ( row ) ) |
testReadFromInput ( ) { byte [ ] ar = new byte [ 100 ] ; java . util . Arrays . fill ( ar , ( ( byte ) ( 5 ) ) ) ; java . io . ByteArrayInputStream bis = new java . io . ByteArrayInputStream ( ar ) ; java . io . DataInputStream dis = new java . io . DataInputStream ( bis ) ; byte [ ] b = new byte [ 100 ] ; dis . read (... | org . junit . Assert . assertEquals ( 5 , b [ 0 ] ) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.