input stringlengths 28 18.7k | output stringlengths 39 1.69k |
|---|---|
testGetParametersWithDefaultEntityAndDisabledDefaults ( ) { unit . setActive ( false ) ; unit . setSecurity ( false ) ; org . lnu . is . domain . person . type . PersonType entity = new org . lnu . is . domain . person . type . PersonType ( ) ; java . util . Map < java . lang . String , java . lang . Object > expected ... | org . junit . Assert . assertEquals ( expected , actual ) |
testSinglePhoneme ( ) { edu . ucla . sspace . text . PatPho vectorizor = new edu . ucla . sspace . text . PatPho ( ) ; double [ ] result = vectorizor . vectorize ( "j" ) ; "<AssertPlaceHolder>" ; } vectorize ( java . util . List ) { int nextConsonantIndex = 0 ; int nextVowelIndex = 0 ; double [ ] result = new double [ ... | org . junit . Assert . assertEquals ( result . length , 3 ) |
testGetFilenameConstructor ( ) { java . nio . file . Path path = java . nio . file . Paths . get ( getClass ( ) . getResource ( "/intraday.test.properties" ) . toURI ( ) ) ; com . sumzerotrading . intraday . trading . strategy . IntradaySystemProperties props = new com . sumzerotrading . intraday . trading . strategy .... | org . junit . Assert . assertEquals ( getExpected ( ) , props ) |
createsAcceptedEncodingListWhenHeaderIsEmptyString ( ) { java . util . List < org . everrest . core . impl . header . AcceptToken > charsetList = org . everrest . core . impl . header . HeaderHelper . createAcceptedEncodingList ( "" ) ; "<AssertPlaceHolder>" ; } createAcceptedEncodingList ( java . lang . String ) { if ... | org . junit . Assert . assertEquals ( newArrayList ( new org . everrest . core . impl . header . AcceptToken ( "*" ) ) , charsetList ) |
testGetParameterValuesEmpty ( ) { java . util . Map < java . lang . String , java . util . List < java . lang . String > > queryParams = new java . util . HashMap ( ) ; queryParams . put ( "name" , java . util . Arrays . asList ( ) ) ; javax . servlet . http . HttpServletRequest request = new org . apache . servicecomb... | org . junit . Assert . assertArrayEquals ( null , request . getParameterValues ( "name" ) ) |
generateWithRadicalAdjunct ( ) { org . openscience . cdk . renderer . generators . standard . AtomSymbol symbol = atomGenerator . generatePeriodicSymbol ( 7 , 0 , ( - 1 ) , 0 , 1 , HydrogenPosition . Right ) ; "<AssertPlaceHolder>" ; } getOutlines ( ) { java . util . List < java . awt . Shape > shapes = new java . util... | org . junit . Assert . assertThat ( symbol . getOutlines ( ) . size ( ) , org . hamcrest . CoreMatchers . is ( 2 ) ) |
shouldLoadAllColumnQualifierPropertiesWhenGetGroupByProperty ( ) { final java . lang . String group = uk . gov . gchq . gaffer . commonutil . TestGroups . ENTITY ; final org . apache . accumulo . core . data . Key key = mock ( org . apache . accumulo . core . data . Key . class ) ; final org . apache . accumulo . core ... | org . junit . Assert . assertEquals ( "propValue1" , property ) |
testJoinCartesianProduct ( ) { int n = org . apache . calcite . linq4j . Linq4j . asEnumerable ( org . apache . calcite . linq4j . test . Linq4jTest . emps ) . < org . apache . calcite . linq4j . test . Linq4jTest . Department , java . lang . Integer , java . lang . Integer > join ( org . apache . calcite . linq4j . Li... | org . junit . Assert . assertEquals ( 12 , n ) |
getDefaultLocaleTest ( ) { org . springframework . mock . web . MockHttpServletRequest request = new org . springframework . mock . web . MockHttpServletRequest ( ) ; java . util . Locale locale_empty = org . cloudfoundry . autoscaler . api . util . LocaleUtil . getLocale ( request ) ; java . util . Locale default_loca... | org . junit . Assert . assertEquals ( default_locale , locale_empty ) |
MD5Bytes ( ) { final byte [ ] v = new byte [ ] { 97 } ; final byte [ ] expect = new byte [ ] { 48 , 99 , 99 , 49 , 55 , 53 , 98 , 57 , 99 , 48 , 102 , 49 , 98 , 54 , 97 , 56 , 51 , 49 , 99 , 51 , 57 , 57 , 101 , 50 , 54 , 57 , 55 , 55 , 50 , 54 , 54 , 49 } ; "<AssertPlaceHolder>" ; } MD5Bytes ( byte [ ] ) { return com ... | org . junit . Assert . assertArrayEquals ( expect , com . jzy . game . engine . util . CipherUtil . MD5Bytes ( v ) ) |
testBuscaFuncionario ( ) { br . com . senacrs . alp . aulas . trabalho8 . Funcionario busca = null ; br . com . senacrs . alp . aulas . trabalho8 . Funcionario adicionado = null ; java . lang . String nome = null ; int salario = 0 ; nome = "Nome" ; salario = br . com . senacrs . alp . aulas . trabalho5 . EmpresaTest . ... | org . junit . Assert . assertEquals ( adicionado , busca ) |
testGetLastEpisodesForPodcastIdentifier ( ) { org . podcastpedia . dao . mybatis . EpisodeDaoIT . LOG . debug ( "<sp>\n\n------<sp>executing<sp>PodcastDaoTest.testGetPodcastByUrl<sp>-------" ) ; java . util . Map < java . lang . String , java . lang . Object > params = new java . util . HashMap < java . lang . String ,... | org . junit . Assert . assertTrue ( ( ( lastEpisodes . size ( ) ) > 0 ) ) |
testSample ( ) { long companyId = _layout . getCompanyId ( ) ; "<AssertPlaceHolder>" ; System . out . println ( ( "The<sp>companyId<sp>is:<sp>" + companyId ) ) ; } getCompanyId ( ) { return _companyId ; } | org . junit . Assert . assertNotNull ( companyId ) |
testGetInt ( ) { java . lang . String key = "SomeNumber" ; int expResult = 85 ; getSettings ( ) . setString ( key , "85" ) ; int result = getSettings ( ) . getInt ( key ) ; "<AssertPlaceHolder>" ; } getInt ( java . lang . String ) { try { return java . lang . Integer . parseInt ( getString ( key ) ) ; } catch ( java . ... | org . junit . Assert . assertEquals ( expResult , result ) |
deleteByLabel ( ) { org . candlepin . model . activationkeys . ActivationKeyContentOverride cco1 = new org . candlepin . model . activationkeys . ActivationKeyContentOverride ( key , "test-content" , "name1" , "value" ) ; activationKeyContentOverrideCurator . create ( cco1 ) ; org . candlepin . model . activationkeys .... | org . junit . Assert . assertEquals ( ccoList . size ( ) , 0 ) |
testIdentityToStringStringBuffer ( ) { final java . lang . Integer i = java . lang . Integer . valueOf ( 45 ) ; final java . lang . String expected = "java.lang.Integer@" + ( java . lang . Integer . toHexString ( java . lang . System . identityHashCode ( i ) ) ) ; final java . lang . StringBuffer buffer = new java . la... | org . junit . Assert . assertEquals ( expected , buffer . toString ( ) ) |
testCompileVerbose ( ) { org . eclipse . ceylon . common . tool . ToolModel < org . eclipse . ceylon . compiler . CeylonCompileTool > model = pluginLoader . loadToolModel ( "compile" ) ; "<AssertPlaceHolder>" ; org . eclipse . ceylon . compiler . CeylonCompileTool tool = pluginFactory . bindArguments ( model , getMainT... | org . junit . Assert . assertNotNull ( model ) |
testToString ( ) { de . metanome . algorithm_integration . results . ColumnIdentifier expectedColumn1 = new de . metanome . algorithm_integration . results . ColumnIdentifier ( "table1" , "condition2" 0 ) ; de . metanome . algorithm_integration . results . ColumnIdentifier expectedColumn2 = new de . metanome . algorith... | org . junit . Assert . assertEquals ( expectedStringRepresentation , actualConditionalColumnCombination . buildPatternTableau ( ) ) |
assertGetGroupByValues ( ) { java . util . List < ? > actual = new org . apache . shardingsphere . core . merge . dql . groupby . GroupByValue ( new org . apache . shardingsphere . core . merge . fixture . TestQueryResult ( resultSet ) , java . util . Arrays . asList ( new org . apache . shardingsphere . core . parse .... | org . junit . Assert . assertTrue ( actual . equals ( expected ) ) |
givenCustomizedRule_whenGenerating_thenGeneratedPasswordContainsCustomizedCharacters ( ) { org . passay . CharacterRule specialCharacterRule = new org . passay . CharacterRule ( new org . passay . CharacterData ( ) { @ com . baeldung . passay . Override public java . lang . String getErrorCode ( ) { return "SAMPLE_ERRO... | org . junit . Assert . assertTrue ( containsOnlyCharactersFromSet ( password , "ABCxyz123!@#" ) ) |
buildSubQueryManyCorpus ( ) { java . lang . String expected = "" + ( ( ( ( "SELECT<sp>DISTINCT<sp>c1.id<sp>" + "FROM<sp>corpus<sp>AS<sp>c1,<sp>corpus<sp>AS<sp>c2<sp>" ) + "WHERE<sp>c1.pre<sp>>=<sp>c2.pre<sp>" ) + "AND<sp>c1.post<sp><=<sp>c2.post<sp>" ) + "AND<sp>c2.id<sp>IN<sp>(<sp>23,<sp>42,<sp>69<sp>)" ) ; corpusList... | org . junit . Assert . assertEquals ( expected , strategy . buildSubQuery ( corpusList , metaData ) ) |
testNextFloat ( ) { final double result = org . apache . commons . lang3 . RandomUtils . nextFloat ( 33.0F , 42.0F ) ; "<AssertPlaceHolder>" ; } nextFloat ( float , float ) { org . apache . commons . lang3 . Validate . isTrue ( ( endInclusive >= startInclusive ) , "Start<sp>value<sp>must<sp>be<sp>smaller<sp>or<sp>equal... | org . junit . Assert . assertTrue ( ( ( result >= 33.0F ) && ( result <= 42.0F ) ) ) |
testJobLocatorStepLocator ( ) { stepLocator = new org . springframework . batch . admin . service . JobLocatorStepLocator ( jobLocator ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertNotNull ( stepLocator ) |
isManager_retuns_true_when_manager ( ) { org . exist . storage . DBBroker mockBroker = org . easymock . EasyMock . createMock ( org . exist . storage . DBBroker . class ) ; org . exist . security . AbstractRealm mockRealm = org . easymock . EasyMock . createMock ( org . exist . security . AbstractRealm . class ) ; java... | org . junit . Assert . assertTrue ( result ) |
partialSelectorWithNoTargetField ( ) { final org . w3c . dom . Document document = newRecord ( null , null ) ; final eu . aliada . rdfizer . pipeline . format . marc . selector . xml . ControlFieldExpression expression = new eu . aliada . rdfizer . pipeline . format . marc . selector . xml . ControlFieldExpression ( ( ... | org . junit . Assert . assertNull ( expression . evaluate ( document ) ) |
testResolveClassClassLoader ( ) { org . apache . camel . impl . DefaultClassResolver resolver = new org . apache . camel . impl . DefaultClassResolver ( ) ; java . lang . Class < ? > clazz = resolver . resolveClass ( "java.lang.Integer" , org . apache . camel . impl . DefaultClassResolverTest . class . getClassLoader (... | org . junit . Assert . assertNotNull ( clazz ) |
testDWithin ( ) { org . locationtech . jts . geom . Point geom = new org . locationtech . jts . geom . GeometryFactory ( ) . createPoint ( new org . locationtech . jts . geom . Coordinate ( 0 , 0 ) ) ; org . opengis . filter . Filter filter = ff . dwithin ( ff . property ( "name" ) , ff . literal ( geom ) , 100 , "metr... | org . junit . Assert . assertEquals ( new org . locationtech . jts . geom . Envelope ( ( - 100 ) , 100 , ( - 100 ) , 100 ) , env ) |
testPut_EraseCharArrays ( ) { org . eclipse . aether . repository . AuthenticationContext context = org . eclipse . aether . repository . AuthenticationContext . forRepository ( newSession ( ) , newRepo ( newAuth ( ) , null ) ) ; char [ ] secret = new char [ ] { 'v' , 'a' , 'l' , 'u' , 'e' } ; context . put ( "key" , s... | org . junit . Assert . assertArrayEquals ( new char [ ] { 0 , 0 , 0 , 0 , 0 } , secret ) |
shouldMergeSomeRandomIdsInto ( ) { java . util . Random random = java . util . concurrent . ThreadLocalRandom . current ( ) ; int batchSize = 10000 ; for ( int i = 0 ; i < 100 ; i ++ ) { long [ ] values = randomBatch ( batchSize , random , 100000000 ) ; long [ ] into = randomBatch ( batchSize , random , 100000000 ) ; l... | org . junit . Assert . assertArrayEquals ( expectedMergedArray , into ) |
testGenerateNextValueLastDayDoWLessThanRequestedDoW ( ) { fieldValueGenerator = createFieldValueGeneratorInstanceLastDayDoWLessThanRequestedDoW ( ) ; "<AssertPlaceHolder>" ; fieldValueGenerator . generateNextValue ( com . cronutils . model . time . generator . OnDayOfWeekValueGeneratorHashTest . FIRST_DAY_DOW_LESS_THAN... | org . junit . Assert . assertEquals ( com . cronutils . model . time . generator . OnDayOfWeekValueGeneratorHashTest . FIRST_DAY_DOW_LESS_THAN_REQUESTED_DOW_DAY , fieldValueGenerator . generateNextValue ( 1 ) ) |
testByteRnd ( ) { try ( com . questdb . cairo . VirtualMemory mem = new com . questdb . cairo . VirtualMemory ( 11 ) ) { int n = 120 ; long o = 0 ; for ( int i = 0 ; i < n ; i ++ , o ++ ) { mem . putByte ( o , ( ( byte ) ( i ) ) ) ; } o = 0 ; for ( int i = 0 ; i < n ; i ++ ) { "<AssertPlaceHolder>" ; } } } getByte ( in... | org . junit . Assert . assertEquals ( i , mem . getByte ( ( o ++ ) ) ) |
testCall ( ) { final java . io . StringWriter strWriter = new java . io . StringWriter ( ) ; final java . io . PrintWriter pw = new java . io . PrintWriter ( strWriter ) ; final java . lang . Module module = new java . lang . Module ( "mod" , "mod.wasm.map" ) ; final de . mirkosertic . bytecoder . backend . wasm . ast ... | org . junit . Assert . assertEquals ( expected , strWriter . toString ( ) ) |
enableFirewall ( ) { org . easymock . Capture < java . util . ArrayList < org . projectfloodlight . openflow . types . Masked < org . projectfloodlight . openflow . types . U64 > > > wc1 = org . easymock . EasyMock . newCapture ( CaptureType . ALL ) ; routingService . handleRoutingDecisionChange ( capture ( wc1 ) ) ; j... | org . junit . Assert . assertTrue ( compareU64ListsOrdered ( wc1 . getValue ( ) , test_changes ) ) |
testAppendRowSetToTable ( ) { org . sagebionetworks . repo . model . table . ColumnModel aBoolean = org . sagebionetworks . repo . model . dbo . dao . table . TableModelTestUtils . createColumn ( 201L , "aBoolean" , ColumnType . BOOLEAN ) ; org . sagebionetworks . repo . model . table . ColumnModel aString = org . sage... | org . junit . Assert . assertEquals ( changeSet . writeToDto ( ) , copy ) |
testCustomizeInvalidRefreshInterval ( ) { java . lang . String someInvalidRefreshInterval = "a" ; java . lang . System . setProperty ( "apollo.refreshInterval" , someInvalidRefreshInterval ) ; com . ctrip . framework . apollo . util . ConfigUtil configUtil = new com . ctrip . framework . apollo . util . ConfigUtil ( ) ... | org . junit . Assert . assertTrue ( ( ( configUtil . getRefreshInterval ( ) ) > 0 ) ) |
testAppYamlPathValidation_noValidationIfRequireValuesIsFalse ( ) { com . google . cloud . tools . eclipse . appengine . deploy . ui . flexible . FlexDeployPreferencesPanel panel = createPanel ( false ) ; org . eclipse . swt . widgets . Text appYamlField = com . google . cloud . tools . eclipse . appengine . deploy . ui... | org . junit . Assert . assertNull ( com . google . cloud . tools . eclipse . appengine . deploy . ui . flexible . FlexDeployPreferencesPanelTest . getAppYamlPathValidationStatus ( panel ) ) |
testSupplemental2 ( ) { java . lang . StringBuilder sb = new java . lang . StringBuilder ( ) ; org . krysalis . barcode4j . impl . upcean . EAN13LogicImpl logic ; java . lang . String expected ; logic = new org . krysalis . barcode4j . impl . upcean . EAN13LogicImpl ( org . krysalis . barcode4j . ChecksumMode . CP_AUTO... | org . junit . Assert . assertEquals ( expected , sb . toString ( ) ) |
should_return_this ( ) { org . fest . assertions . api . BooleanAssert returned = assertions . isEqualTo ( actual ) ; "<AssertPlaceHolder>" ; } isEqualTo ( byte ) { bytes . assertEqualTo ( description , actual , expected ) ; return this ; } | org . junit . Assert . assertSame ( assertions , returned ) |
remoteNonBlocking ( ) { org . ebayopensource . turmeric . runtime . sif . service . Service service = org . ebayopensource . turmeric . runtime . sif . service . ServiceFactory . create ( "test1" , "remote" , serverUri . toURL ( ) ) ; service . createDispatch ( "echoString" ) . invokeAsync ( ( ( ECHO_STRING ) + "servic... | org . junit . Assert . assertTrue ( ( ( responseList . size ( ) ) == 1 ) ) |
testGetBaseURI ( ) { java . net . URI baseUri = java . net . URI . create ( "/test" ) ; when ( options . getBaseUri ( ) ) . thenReturn ( baseUri ) ; java . net . URI result = jerseyHandler . getBaseUri ( ) ; "<AssertPlaceHolder>" ; } getBaseUri ( ) { if ( ( baseUri ) == null ) { baseUri = getContainer ( ) . getOptions ... | org . junit . Assert . assertEquals ( baseUri , result ) |
getCellValue ( ) { java . lang . String value = org . oscm . ui . common . ExcelHandler . getCellValue ( prepareRow ( true , "<sp>key<sp>" ) , 0 , false ) ; "<AssertPlaceHolder>" ; } prepareRow ( boolean , java . lang . String [ ] ) { org . apache . poi . ss . usermodel . Row row = mock ( org . apache . poi . ss . user... | org . junit . Assert . assertEquals ( "<sp>key<sp>" , value ) |
toStringIsCorrect ( ) { final java . lang . String iotHubHostname = "test.iothub" ; final java . lang . String deviceId = "test-deviceid" ; final java . lang . String uriStr = "test-uri-str" ; new mockit . NonStrictExpectations ( ) { { mockIotHubUri . toString ( ) ; result = uriStr ; } } ; com . microsoft . azure . sdk... | org . junit . Assert . assertThat ( testUriStr , org . hamcrest . CoreMatchers . is ( expectedUriStr ) ) |
testNumberOfReviews2 ( ) { java . util . List < org . apache . cxf . jaxrs . ext . search . jpa . Book > books = queryBooks ( "reviews<sp>gt<sp>3" ) ; "<AssertPlaceHolder>" ; } size ( ) { return cache . getSize ( ) ; } | org . junit . Assert . assertEquals ( 0 , books . size ( ) ) |
testCommandAutocompleteOption ( ) { test . waitForCompletion ( "foocommand<sp>--help<sp>" , "foocommand<sp>--h" , org . jboss . forge . addon . shell . parser . CommandCompletionTest . QUANTITY , TimeUnit . SECONDS ) ; "<AssertPlaceHolder>" ; } getBuffer ( ) { org . jboss . aesh . console . AeshConsoleImpl console = ( ... | org . junit . Assert . assertEquals ( "foocommand<sp>--help<sp>" , test . getBuffer ( ) ) |
getTagsByPattern_emptyPattern ( ) { java . util . List < java . lang . String > tags = org . oscm . ws . TagServiceWSTest . tagService . getTagsByPattern ( "en" , "" , 5 ) ; "<AssertPlaceHolder>" ; } size ( ) { return categoriesForMarketplace . size ( ) ; } | org . junit . Assert . assertEquals ( 0 , tags . size ( ) ) |
testGetBusinessObjectDataKeyInvalidBusinessObjectDataVersion ( ) { try { java . lang . String [ ] line = new java . lang . String [ ] { NAMESPACE , BUSINESS_OBJECT_DEFINITION_NAME , BUSINESS_OBJECT_FORMAT_USAGE , BUSINESS_OBJECT_FORMAT_FILE_TYPE , org . finra . herd . tools . retention . destroyer . BUSINESS_OBJECT_FOR... | org . junit . Assert . assertEquals ( java . lang . String . format ( "Line<sp>number<sp>%d<sp>of<sp>input<sp>file<sp>\"%s\"<sp>does<sp>not<sp>match<sp>the<sp>expected<sp>format.<sp>Business<sp>object<sp>data<sp>version<sp>must<sp>be<sp>an<sp>integer." , org . finra . herd . tools . retention . destroyer . LINE_NUMBER ... |
testHasIndexRangeKeyCondition_WhenConditionCriteriaIsNonEqualityConditionOnAPropertyWhichIsNeitherAnIndexRangeKeyOrAHashKey ( ) { org . mockito . Mockito . when ( entityInformation . isGlobalIndexRangeKeyProperty ( "joinDate" ) ) . thenReturn ( false ) ; criteria . withPropertyBetween ( "joinDate" , new java . util . D... | org . junit . Assert . assertFalse ( hasIndexRangeKeyCondition ) |
testClearParents ( ) { final N parent1 = org . mockito . Mockito . spy ( getBuilderInstance ( ) . build ( ) ) ; final N parent2 = org . mockito . Mockito . spy ( getBuilderInstance ( ) . build ( ) ) ; final N parent3 = org . mockito . Mockito . spy ( getBuilderInstance ( ) . build ( ) ) ; final B builder = getBuilderIn... | org . junit . Assert . assertEquals ( 0 , child . getAllParents ( ) . size ( ) ) |
testNoLeftColumnsJoin ( ) { java . util . List < com . bah . culvert . data . CKeyValue > joinvalues = new java . util . ArrayList < com . bah . culvert . data . CKeyValue > ( ) ; joinvalues . add ( new com . bah . culvert . data . CKeyValue ( new byte [ ] { 1 } , new byte [ ] { 2 } , new byte [ ] { 3 } , new byte [ ] ... | org . junit . Assert . assertFalse ( iter . hasNext ( ) ) |
getObjectOK ( ) { final java . io . InputStream stream = new java . io . ByteArrayInputStream ( "Test" . getBytes ( ) ) ; when ( fr . gouv . vitam . storage . offers . workspace . driver . ConnectionImplTest . mock . get ( ) ) . thenReturn ( javax . ws . rs . core . Response . status ( Status . OK ) . entity ( stream )... | org . junit . Assert . assertNotNull ( result ) |
test_toInstant ( ) { for ( int i = - 1000 ; i < 1000 ; i ++ ) { for ( int j = 0 ; j < 10 ; j ++ ) { java . time . Instant expected = java . time . Instant . ofEpochSecond ( ( ( 315532800 + ( i * ( org . threeten . extra . scale . TestUtcInstant . SECS_PER_DAY ) ) ) + j ) ) . plusNanos ( 2 ) ; org . threeten . extra . s... | org . junit . Assert . assertEquals ( expected , test . toInstant ( ) ) |
testGetConfigWithLocalFileAndWithRemoteConfig ( ) { java . lang . String someKey = "someKey" ; java . lang . String someValue = "someValue" ; java . lang . String anotherValue = "anotherValue" ; java . util . Properties properties = new java . util . Properties ( ) ; properties . put ( someKey , someValue ) ; createLoc... | org . junit . Assert . assertEquals ( anotherValue , config . getProperty ( someKey , null ) ) |
testRemoveObsFromSingle ( ) { org . hipparchus . stat . regression . SimpleRegression regression = new org . hipparchus . stat . regression . SimpleRegression ( ) ; regression . addData ( removeX , removeY ) ; regression . removeData ( removeX , removeY ) ; "<AssertPlaceHolder>" ; } getN ( ) { return n ; } | org . junit . Assert . assertEquals ( regression . getN ( ) , 0 ) |
testDNSKEYRecord ( ) { java . lang . String publicK = "AwEAAe1Jev0Az1khlQCvf0nud1/CNHQwwPEu8BNchZthdDxKPVn29yrD<sp>" + ( ( "CHoAWjwiGsOSw3SzIPrawSbHzyJsjn0oLBhGrH6QedFGnydoxjNsw3m/<sp>" + "SCmOjR/a7LGBAMDFKqFioi4gOyuN66svBeY+/5uw72+0ei9AQ20gqf6q<sp>" ) + "705qmZpiaaFB+LnhG7VtpPiOBm3UzZxdrBfeq/qaKrXid60=" 2 ) ; org . xb... | org . junit . Assert . assertNotNull ( dnskeyRecord ) |
testBlueprint_ClassWithPublicConstructor ( ) { final net . sf . qualitytest . blueprint . BlueprintTest . ClassWithPublicConstructor blueprint = net . sf . qualitytest . blueprint . Blueprint . construct ( net . sf . qualitytest . blueprint . BlueprintTest . ClassWithPublicConstructor . class , new net . sf . qualityte... | org . junit . Assert . assertNotNull ( blueprint ) |
constructorWithOwnerShouldSetOwner ( ) { ch . puzzle . itc . mobiliar . business . foreignable . entity . ForeignableOwner owner = ch . puzzle . itc . mobiliar . business . foreignable . entity . ForeignableOwner . MAIA ; consumedResourceRelationEntity = new ch . puzzle . itc . mobiliar . business . resourcerelation . ... | org . junit . Assert . assertEquals ( owner , consumedResourceRelationEntity . getOwner ( ) ) |
deserializeNull ( ) { final com . amazonaws . encryptionsdk . model . CiphertextHeaders ciphertextHeaders = new com . amazonaws . encryptionsdk . model . CiphertextHeaders ( ) ; final int deserializedBytes = ciphertextHeaders . deserialize ( null , 0 ) ; "<AssertPlaceHolder>" ; } deserialize ( byte [ ] , int ) { if ( b... | org . junit . Assert . assertEquals ( 0 , deserializedBytes ) |
testSetPreloadedItemsReturnsDecorator ( ) { com . eclipsesource . tabris . widgets . enhancement . TreeDecorator actualDecorator = decorator . setPreloadedItems ( 1 ) ; "<AssertPlaceHolder>" ; } setPreloadedItems ( int ) { when ( ( preloadedItems < 0 ) ) . throwIllegalArgument ( ( "Preloaded<sp>items<sp>must<sp>be<sp>>... | org . junit . Assert . assertSame ( decorator , actualDecorator ) |
recordExpectationOnBaseMethodHavingASyntheticBridgeMethodInSubclass ( mockit . ExpectationsUsingMockedTest$GenericSubclass ) { new mockit . Expectations ( ) { { mock . base ( ) ; result = null ; } } ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertNull ( mock . base ( ) ) |
testRemovePrefixAndSuffix ( ) { final java . lang . String actual = org . kie . workbench . common . dmn . client . editors . types . listview . constraint . common . typed . common . DurationHelper . removePrefixAndSuffix ( "duration(\"<VALUE>\")" ) ; final java . lang . String expected = "<VALUE>" ; "<AssertPlaceHold... | org . junit . Assert . assertEquals ( expected , actual ) |
getByUserGroupByDateWithProjectIdListEmpty ( ) { java . util . TreeMap < java . util . Date , java . util . List < com . onboard . domain . model . Activity > > result = activityService . getByUserGroupByDate ( com . onboard . service . activity . impl . test . ActivityServiceImplTest . companyId , com . onboard . serv... | org . junit . Assert . assertEquals ( result , new java . util . TreeMap < java . util . Date , java . util . List < com . onboard . domain . model . Activity > > ( ) ) |
testId ( ) { org . shredzone . flattr4j . model . UserId id = org . shredzone . flattr4j . model . User . withId ( "abc123" ) ; "<AssertPlaceHolder>" ; } getUserId ( ) { return data . getSubString ( "owner" , "username" ) ; } | org . junit . Assert . assertThat ( id . getUserId ( ) , is ( "abc123" ) ) |
findAllAangifteAdreshouding ( ) { final java . util . List < nl . bzk . algemeenbrp . dal . domein . brp . entity . AangifteAdreshouding > result = aangifteAdreshoudingRepository . findAll ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return elementen . size ( ) ; } | org . junit . Assert . assertEquals ( 12 , result . size ( ) ) |
chunk ( ) { "<AssertPlaceHolder>" ; } newBag ( ) { return new com . gs . collections . impl . bag . sorted . mutable . TreeBag < E > ( ) ; } | org . junit . Assert . assertEquals ( this . newBag ( ) , this . newBag ( ) . chunk ( 2 ) ) |
testHttpsWrappedContinuations ( ) { org . apache . cxf . bus . spring . SpringBusFactory bf = new org . apache . cxf . bus . spring . SpringBusFactory ( ) ; org . apache . cxf . Bus bus = bf . createBus ( org . apache . cxf . systest . http_jetty . continuations . ClientServerWrappedContinuationTest . CLIENT_HTTPS_CONF... | org . junit . Assert . assertNotNull ( service ) |
testOverrideNormal ( ) { final java . lang . Long someValue = 60000L ; java . lang . System . clearProperty ( CamelBlueprintTestSupport . SPROP_CAMEL_CONTEXT_CREATION_TIMEOUT ) ; org . apache . camel . test . blueprint . CamelBlueprintTestSupport ts = new org . apache . camel . test . blueprint . ContextCreationTimeout... | org . junit . Assert . assertEquals ( someValue , ts . getCamelContextCreationTimeout ( ) ) |
testRemoteStaging2 ( ) { setPortalProperty ( "STAGING_LIVE_GROUP_REMOTE_STAGING_ENABLED" , true ) ; long classPK = doTestRemoteStaging ( ) ; com . liferay . portal . kernel . model . SystemEvent systemEvent = com . liferay . portal . kernel . service . SystemEventLocalServiceUtil . fetchSystemEvent ( _liveGroup . getGr... | org . junit . Assert . assertNotNull ( systemEvent ) |
testBeidePartnersNietOnderCuratele ( ) { final nl . bzk . brp . model . bericht . kern . PersoonBericht manBericht = nl . bzk . brp . util . PersoonBuilder . bouwPersoon ( SoortPersoon . INGESCHREVENE , 1111 , null , 19840404 , null , null , null , null , null ) ; manBericht . setIdentificerendeSleutel ( "technischeSle... | org . junit . Assert . assertTrue ( meldingen . isEmpty ( ) ) |
testLocalIndexSelfJoin ( ) { java . lang . String tableName = generateUniqueName ( ) ; java . lang . String indexName = "IDX_" + ( generateUniqueName ( ) ) ; java . sql . Connection conn1 = java . sql . DriverManager . getConnection ( getUrl ( ) ) ; if ( isNamespaceMapped ) { conn1 . createStatement ( ) . execute ( ( "... | org . junit . Assert . assertTrue ( rs . next ( ) ) |
setUnit_v_unitIsSet ( ) { java . lang . String unitOfMeasure = "V" ; sampledValue . setUnit ( unitOfMeasure ) ; "<AssertPlaceHolder>" ; } getUnit ( ) { return unit ; } | org . junit . Assert . assertThat ( sampledValue . getUnit ( ) , org . hamcrest . CoreMatchers . equalTo ( unitOfMeasure ) ) |
getDeclaredConstructors ( ) { jetbrick . bean . KlassInfo klass = jetbrick . bean . KlassInfo . create ( java . util . HashMap . class ) ; java . util . List < jetbrick . bean . ConstructorInfo > constructors = klass . getDeclaredConstructors ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return size ; } | org . junit . Assert . assertEquals ( 4 , constructors . size ( ) ) |
testSetKeyPropertySimple ( ) { final java . lang . String EXPECTED = new java . lang . String ( "ABC" ) ; java . lang . reflect . Method method = null ; com . sap . core . odata . processor . core . jpa . mock . data . JPATypeMock typeMock = new com . sap . core . odata . processor . core . jpa . mock . data . JPATypeM... | org . junit . Assert . assertEquals ( typeMock . getMString ( ) , EXPECTED ) |
testSimpleConversion ( ) { java . io . File input = new java . io . File ( java . lang . System . getProperty ( "java.io.tmpdir" ) ) ; org . jboss . forge . addon . resource . DirectoryResource output = resourceDirConverter . convert ( input ) ; "<AssertPlaceHolder>" ; } convert ( java . lang . Object ) { java . lang .... | org . junit . Assert . assertNotNull ( output ) |
shouldReturnNotEqualForBlobAndTree ( ) { org . eclipse . egit . ui . internal . synchronize . model . GitModelObject left = createGitModelBlob ( ) ; org . eclipse . egit . ui . internal . synchronize . model . GitModelObject right = mock ( org . eclipse . egit . ui . internal . synchronize . model . GitModelTree . clas... | org . junit . Assert . assertFalse ( actual ) |
shouldDelegateGetOffset ( ) { java . lang . Integer offset = 10 ; given ( this . delegate . getOffset ( ) ) . willReturn ( offset ) ; "<AssertPlaceHolder>" ; } getOffset ( ) { return ( getPageNumber ( ) ) * ( getPageSize ( ) ) ; } | org . junit . Assert . assertThat ( this . request . getOffset ( ) , org . hamcrest . CoreMatchers . is ( offset ) ) |
testRowBandingTriggersSlowMode ( ) { java . net . URL url = getClass ( ) . getResource ( "Prd-5240.prpt" ) ; org . pentaho . reporting . engine . classic . core . MasterReport report = ( ( org . pentaho . reporting . engine . classic . core . MasterReport ) ( new org . pentaho . reporting . libraries . resourceloader .... | org . junit . Assert . assertFalse ( val . isValidForFastProcessing ( report ) ) |
testGetMessageKeyInNoBundles ( ) { java . lang . String message = classToBeTested . getMessage ( "keyNone" ) ; "<AssertPlaceHolder>" ; } getMessage ( java . lang . String ) { return au . gov . ga . earthsci . worldwind . common . util . message . MessageSourceAccessor . get ( ) . getMessage ( key ) ; } | org . junit . Assert . assertEquals ( null , message ) |
testIsShowEdges ( ) { classUnderTest . setShowEdges ( true ) ; "<AssertPlaceHolder>" ; } isShowEdges ( ) { return showEdges ; } | org . junit . Assert . assertEquals ( true , classUnderTest . isShowEdges ( ) ) |
testNewPacket ( ) { try { org . pcap4j . packet . LinuxSllPacket p = org . pcap4j . packet . LinuxSllPacket . newPacket ( packet . getRawData ( ) , 0 , packet . getRawData ( ) . length ) ; "<AssertPlaceHolder>" ; } catch ( org . pcap4j . packet . IllegalRawDataException e ) { throw new java . lang . AssertionError ( e ... | org . junit . Assert . assertEquals ( packet , p ) |
testMultipleTermNoMatch ( ) { org . terrier . structures . Index index = createIndex ( ) ; org . terrier . matching . MatchingQueryTerms mqt = new org . terrier . matching . MatchingQueryTerms ( ) ; mqt . addTermPropertyWeight ( "badger" , 1.2 ) ; mqt . addTermPropertyWeight ( "mole" , 1.2 ) ; mqt . setDefaultTermWeigh... | org . junit . Assert . assertEquals ( 0 , p . size ( ) ) |
testToBuilderIncomplete ( ) { com . google . cloud . compute . deprecated . SubnetworkInfo subnetworkInfo = com . google . cloud . compute . deprecated . SubnetworkInfo . of ( com . google . cloud . compute . deprecated . SubnetworkInfoTest . SUBNETWORK_ID , com . google . cloud . compute . deprecated . SubnetworkInfoT... | org . junit . Assert . assertEquals ( subnetworkInfo , subnetworkInfo . toBuilder ( ) . build ( ) ) |
givenList_whenCalled_thenReturnListOfEvenIndexedStrings ( ) { java . util . List < java . lang . String > names = java . util . Arrays . asList ( "Afrim" , "Bashkim" , "Besim" , "Lulzim" , "Durim" , "Shpetim" ) ; java . util . List < com . codepoetics . protonpack . Indexed < java . lang . String > > expectedResult = j... | org . junit . Assert . assertEquals ( expectedResult , actualResult ) |
testCreateCollectionValueSuccessfulOne ( ) { final com . orientechnologies . orient . core . index . OCompositeIndexDefinition compositeIndexDefinition = new com . orientechnologies . orient . core . index . OCompositeIndexDefinition ( "testCollectionClass" ) ; compositeIndexDefinition . addIndex ( new com . orientechn... | org . junit . Assert . assertEquals ( result , expectedResult ) |
testGetJMSCorrelationIDAsBytes ( ) { org . apache . qpid . jms . message . JmsMessage msg = factory . createMessage ( ) ; msg . setJMSCorrelationID ( this . jmsCorrelationID ) ; byte [ ] testbytes = msg . getJMSCorrelationIDAsBytes ( ) ; java . lang . String str2 = new java . lang . String ( testbytes ) ; "<AssertPlace... | org . junit . Assert . assertTrue ( this . jmsCorrelationID . equals ( str2 ) ) |
runBuildIndex ( ) { org . apache . hadoop . conf . Configuration conf = ivory . integration . IntegrationUtils . getBespinConfiguration ( ) ; org . apache . hadoop . fs . FileSystem fs = org . apache . hadoop . fs . FileSystem . get ( conf ) ; "<AssertPlaceHolder>" ; fs . delete ( new org . apache . hadoop . fs . Path ... | org . junit . Assert . assertTrue ( fs . exists ( collectionPath ) ) |
testNodeDecomissionRespectsRackPolicy ( ) { org . apache . hadoop . conf . Configuration conf = getConf ( ) ; short REPLICATION_FACTOR = 2 ; final org . apache . hadoop . fs . Path filePath = new org . apache . hadoop . fs . Path ( "/testFile" ) ; org . apache . hadoop . fs . FileSystem localFileSys = org . apache . ha... | org . junit . Assert . assertTrue ( localFileSys . mkdirs ( dir ) ) |
getRedenEindeRelatieTestOK ( ) { final char rerCode = 'N' ; final nl . bzk . migratiebrp . synchronisatie . dal . domein . brp . kern . entity . RedenBeeindigingRelatie expectedRer = new nl . bzk . migratiebrp . synchronisatie . dal . domein . brp . kern . entity . RedenBeeindigingRelatie ( rerCode , "Nietigverklaring"... | org . junit . Assert . assertEquals ( expected , resultRer ) |
shouldIndexInitialLevelNestedObject ( ) { final java . util . List < org . springframework . data . elasticsearch . entities . Car > cars = new java . util . ArrayList ( ) ; final org . springframework . data . elasticsearch . entities . Car saturn = new org . springframework . data . elasticsearch . entities . Car ( )... | org . junit . Assert . assertThat ( persons . size ( ) , org . hamcrest . CoreMatchers . is ( 1 ) ) |
testMapIntervalWithoutZeroStartingMonday ( ) { final int value = 7 ; final com . cronutils . mapper . WeekDay target = new com . cronutils . mapper . WeekDay ( 1 , false ) ; "<AssertPlaceHolder>" ; } mapTo ( int , com . cronutils . mapper . WeekDay ) { if ( ( firstDayZero ) && ( targetWeekDayDefinition . isFirstDayZero... | org . junit . Assert . assertEquals ( value , source . mapTo ( value , target ) ) |
isImpactedBySqoop2995 ( ) { if ( ( sqoop ) != null ) { "<AssertPlaceHolder>" ; } } isImpactedBySqoop2995 ( ) { return true ; } | org . junit . Assert . assertFalse ( sqoop . isImpactedBySqoop2995 ( ) ) |
testToVOPaymentInfo_bug10160 ( ) { org . oscm . domobjects . PaymentInfo paymentInfo = new org . oscm . domobjects . PaymentInfo ( ) ; paymentInfo . setPaymentInfoId ( "paymentInfoId" ) ; org . oscm . domobjects . PaymentType paymentType = new org . oscm . domobjects . PaymentType ( ) ; paymentType . setKey ( 123 ) ; s... | org . junit . Assert . assertEquals ( "paymentInfoId" , voPaymentInfo . getId ( ) ) |
testCamelToUnderscore ( ) { java . lang . String input = "myCamelCaseTest" ; java . lang . String expected = "my_camel_case_test" ; java . lang . String actual = com . ocpsoft . socialpm . util . Strings . camelToUnderscore ( input ) ; "<AssertPlaceHolder>" ; } camelToUnderscore ( java . lang . String ) { java . lang .... | org . junit . Assert . assertEquals ( expected , actual ) |
testUnknownDirective ( ) { java . lang . String sqlTemplate = "SELECT<sp>#from(1)<sp>FROM<sp>a" ; org . apache . cayenne . access . jdbc . SQLStatement compiled = processor . processTemplate ( sqlTemplate , java . util . Collections . emptyMap ( ) ) ; "<AssertPlaceHolder>" ; } getSql ( ) { return delegateTranslator . g... | org . junit . Assert . assertEquals ( "SELECT<sp>#from(1)<sp>FROM<sp>a" , compiled . getSql ( ) ) |
testSerializeObject ( ) { java . io . Serializable s = "hey" ; com . jointhegrid . ironcount . classloader . ObjectSerializer instance = new com . jointhegrid . ironcount . classloader . ObjectSerializer ( ) ; byte [ ] result = instance . serializeObject ( s ) ; java . io . Serializable s2 = instance . deserializeBytes... | org . junit . Assert . assertEquals ( s , s2 ) |
isConnected_noInstanceName_Accumulo ( ) { final org . apache . rya . shell . SharedShellState sharedState = new org . apache . rya . shell . SharedShellState ( ) ; final org . apache . rya . api . client . accumulo . AccumuloConnectionDetails connectionDetails = new org . apache . rya . api . client . accumulo . Accumu... | org . junit . Assert . assertEquals ( expected , prompt ) |
testWriteLinesToFile ( ) { java . nio . file . Path outputFile = tmp . newFile ( "output.txt" ) ; com . google . common . collect . ImmutableList < java . lang . String > lines = com . google . common . collect . ImmutableList . of ( "The" , "quick<sp>brown<sp>fox" , "jumps<sp>over" , "the<sp>lazy<sp>dog." ) ; com . fa... | org . junit . Assert . assertEquals ( lines , observedLines ) |
testOutput100Mt ( ) { System . out . println ( "testOutput100Mt" ) ; final int lines = 50000000 ; java . util . Iterator < org . apache . jena . graph . Triple > triples = prepare ( org . deri . tarql . LargeInputTest . CONSTRUCT_2TRIPLES , new org . deri . tarql . LargeInputTest . DummyContentSource ( lines ) ) . exec... | org . junit . Assert . assertEquals ( ( ( lines - 1 ) * 2 ) , results ) |
testEqBool ( ) { org . jacop . Store store = new org . jacop . Store ( ) ; int xLength = 4 ; org . jacop . IntVar [ ] x = getIntVars ( store , "x" , xLength , 2 ) ; org . jacop . IntVar n = new org . jacop . IntVar ( store , "sum" , 0 , 1 ) ; org . jacop . EqBool eqBool = new org . jacop . EqBool ( x , n ) ; store . im... | org . junit . Assert . assertThat ( noOfSolutions , org . hamcrest . CoreMatchers . is ( 16 ) ) |
testAddManualScreenshot ( ) { com . box . l10n . mojito . service . branch . BranchTestData branchTestData = new com . box . l10n . mojito . service . branch . BranchTestData ( testIdWatcher ) ; com . box . l10n . mojito . rest . entity . Branch branch1 = new com . box . l10n . mojito . rest . entity . Branch ( ) ; bra... | org . junit . Assert . assertEquals ( 1 , searchScreenshots . size ( ) ) |
shouldInitiallyBeSynchronized ( ) { "<AssertPlaceHolder>" ; } isSynchronized ( ) { for ( final org . teiid . designer . vdb . VdbModelEntry entry : modelEntries ( ) ) if ( ( entry . getSynchronization ( ) ) == ( org . teiid . designer . vdb . VdbEntry . Synchronization . NotSynchronized ) ) return false ; for ( final o... | org . junit . Assert . assertThat ( vdb . isSynchronized ( ) , org . hamcrest . core . Is . is ( true ) ) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.