input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
shouldReturnTrueWhenGivenAValidMinimalLoadBalancer ( ) { org . openstack . atlas . api . validation . results . ValidatorResult result = validator . validate ( lb , org . openstack . atlas . api . validation . validators . POST ) ; "<AssertPlaceHolder>" ; } passedValidation ( ) { return expectationResultList . isEmpty ...
org . junit . Assert . assertTrue ( result . passedValidation ( ) )
sideOperation ( ) { when ( tupleMock . getValueByField ( "pass" ) ) . thenReturn ( 9 ) ; eu . icolumbo . breeze . SpringBolt subject = new eu . icolumbo . breeze . SpringBolt ( eu . icolumbo . breeze . TestBean . class , "nop()" ) ; subject . setPassThroughFields ( "pass" ) ; subject . setDoAnchor ( false ) ; run ( sub...
org . junit . Assert . assertEquals ( asList ( "pass" ) , outputFieldsCaptor . getValue ( ) . toList ( ) )
removeUserVerifierByIdTest ( ) { org . kaaproject . kaa . common . dto . user . UserVerifierDto verifierDto = generateUserVerifierDto ( null , null ) ; verifierService . removeUserVerifierById ( verifierDto . getId ( ) ) ; org . kaaproject . kaa . common . dto . user . UserVerifierDto found = verifierService . findUser...
org . junit . Assert . assertNull ( found )
flatten ( ) { io . divide . dao . TestObject1 to1 = io . divide . dao . DAOTest . testObject1 ; io . divide . dao . orientdb . ODocumentWrapper wrapper = new io . divide . dao . orientdb . ODocumentWrapper ( to1 ) ; io . divide . dao . TestObject1 to2 = wrapper . toObject ( io . divide . dao . TestObject1 . class ) ; "...
org . junit . Assert . assertEquals ( to1 , to2 )
testGet ( ) { com . google . cloud . resourcemanager . testing . LocalResourceManagerHelperTest . rpc . create ( com . google . cloud . resourcemanager . testing . LocalResourceManagerHelperTest . COMPLETE_PROJECT ) ; com . google . api . services . cloudresourcemanager . model . Project returnedProject = com . google ...
org . junit . Assert . assertNull ( com . google . cloud . resourcemanager . testing . LocalResourceManagerHelperTest . rpc . get ( com . google . cloud . resourcemanager . testing . LocalResourceManagerHelperTest . COMPLETE_PROJECT . getProjectId ( ) , com . google . cloud . resourcemanager . testing . LocalResourceMa...
deserializersTestsTraversalMetrics ( ) { final org . apache . tinkerpop . gremlin . tinkergraph . structure . TinkerGraph tg = org . apache . tinkerpop . gremlin . tinkergraph . structure . TinkerFactory . createModern ( ) ; final org . apache . tinkerpop . gremlin . structure . io . GraphWriter writer = getWriter ( de...
org . junit . Assert . assertTrue ( tm . toString ( ) . equals ( traversalMetricsRead . toString ( ) ) )
testText ( ) { view . setText ( "sample" ) ; "<AssertPlaceHolder>" ; } getText ( ) { java . lang . CharSequence text = getEditTextView ( ) . getText ( ) ; return text == null ? null : text . toString ( ) ; }
org . junit . Assert . assertThat ( view . getText ( ) , org . hamcrest . CoreMatchers . equalTo ( "sample" ) )
testGeoServerStyleActionConfigurationAliased ( ) { java . lang . Boolean configurationAliasRegistered = false ; java . lang . Class configurationClass = it . geosolutions . geobatch . geoserver . style . GeoServerStyleConfiguration . class ; java . util . Iterator < java . util . Map . Entry < java . lang . String , ja...
org . junit . Assert . assertTrue ( configurationAliasRegistered )
testBuildContainerCallsPostConstructionActions ( ) { final com . picocontainer . script . PostBuildContainerAction action = context . mock ( com . picocontainer . script . PostBuildContainerAction . class ) ; context . checking ( new org . jmock . Expectations ( ) { { oneOf ( action ) . onNewContainer ( simpleContainer...
org . junit . Assert . assertNotNull ( pico )
testBelongsTo ( ) { org . eclipse . core . runtime . jobs . Job installJob = new com . google . cloud . tools . eclipse . sdk . internal . CloudSdkModifyJobTest . FakeModifyJob ( false ) ; "<AssertPlaceHolder>" ; } belongsTo ( java . lang . Object ) { return ( super . belongsTo ( family ) ) || ( family == ( com . googl...
org . junit . Assert . assertTrue ( installJob . belongsTo ( CloudSdkModifyJob . CLOUD_SDK_MODIFY_JOB_FAMILY ) )
invokeAnyShouldPropagateContext ( ) { final java . util . concurrent . Callable < java . lang . String > callable = TEST_KEY :: get ; final java . lang . String result = io . grpc . Context . current ( ) . withValue ( com . spotify . styx . util . TEST_KEY , "foobar" ) . call ( ( ) -> sut . invokeAny ( java . util . Li...
org . junit . Assert . assertThat ( result , org . hamcrest . Matchers . is ( "foobar" ) )
test ( ) { org . zstack . header . configuration . DiskOfferingInventory inv = new org . zstack . header . configuration . DiskOfferingInventory ( ) ; inv . setDiskSize ( SizeUnit . GIGABYTE . toByte ( 10 ) ) ; inv . setName ( "Test" ) ; inv . setDescription ( "Test" ) ; inv = api . addDiskOffering ( inv ) ; org . zsta...
org . junit . Assert . assertEquals ( SizeUnit . GIGABYTE . toByte ( 10 ) , vo . getDiskSize ( ) )
testOnConditionChangeWhenConditionNotSelected ( ) { when ( functionSearchSelectionHandler . getSelectedKey ( ) ) . thenReturn ( null ) ; when ( translationService . getValue ( org . kie . workbench . common . stunner . bpmn . client . forms . fields . conditionEditor . SimpleConditionEditorPresenter . FUNCTION_NOT_SELE...
org . junit . Assert . assertFalse ( presenter . isValid ( ) )
testDefaultPrincipalConfiguration ( ) { org . apache . jackrabbit . oak . spi . security . principal . PrincipalConfiguration defaultConfig = securityProvider . getConfiguration ( org . apache . jackrabbit . oak . spi . security . principal . PrincipalConfiguration . class ) ; "<AssertPlaceHolder>" ; } getConfiguration...
org . junit . Assert . assertNull ( defaultConfig )
whenResourceIsRetrieved_thenUriToGetAllResourcesIsDiscoverable ( ) { final java . lang . String uriOfExistingResource = com . baeldung . common . web . AbstractDiscoverabilityLiveTest . createAsUri ( ) ; final io . restassured . response . Response getResponse = io . restassured . RestAssured . get ( uriOfExistingResou...
org . junit . Assert . assertThat ( getAllResponse . getStatusCode ( ) , com . baeldung . common . web . AbstractDiscoverabilityLiveTest . is ( 200 ) )
testGetSubMapNullKeys ( ) { java . util . Map < java . lang . String , java . lang . Integer > map = com . feilong . core . util . MapUtil . newHashMap ( ) ; map . put ( "a" , 3007 ) ; map . put ( "b" , 3001 ) ; map . put ( "c" , 3001 ) ; map . put ( "d" , 3003 ) ; "<AssertPlaceHolder>" ; } getSubMap ( java . util . Ma...
org . junit . Assert . assertEquals ( map , com . feilong . core . util . MapUtil . getSubMap ( map , ( ( java . lang . String [ ] ) ( null ) ) ) )
shouldConstructorCreateAValidSolution ( ) { int permutationLength = 20 ; org . uma . jmetal . problem . impl . AbstractIntegerPermutationProblem problem = new org . uma . jmetal . solution . impl . DefaultIntegerPermutationSolutionTest . MockIntegerPermutationProblem ( permutationLength ) ; org . uma . jmetal . solutio...
org . junit . Assert . assertArrayEquals ( expectedList . toArray ( ) , values . toArray ( ) )
testCxDxClientSessionStartsIdleState ( ) { org . jdiameter . api . cxdx . ClientCxDxSession session = getAppSession ( org . jdiameter . api . cxdx . ClientCxDxSession . class , new org . jdiameter . common . impl . app . cxdx . CxDxSessionFactoryImpl ( org . mobicents . diameter . stack . sessions . SessionsWithAppIdTe...
org . junit . Assert . assertEquals ( state . IDLE , state )
shouldConvertStatusCode ( ) { simplehttp . HttpResponse response = handler . handleResponse ( anApacheOkResponse ) ; "<AssertPlaceHolder>" ; } status ( int ) { return simplehttp . matchers . HttpResponseStatusCodeMatcher . status ( status ) ; }
org . junit . Assert . assertThat ( response , status ( 200 ) )
testGetImportedFromTable ( ) { classUnderTest . setImportedFromTable ( "aTestString" ) ; "<AssertPlaceHolder>" ; } getImportedFromTable ( ) { return importedFromTable ; }
org . junit . Assert . assertEquals ( "aTestString" , classUnderTest . getImportedFromTable ( ) )
testGetParametersWithDefaultEntityAndDisabledDetaults ( ) { unit . setActive ( false ) ; unit . setSecurity ( false ) ; org . lnu . is . domain . order . Order entity = new org . lnu . is . domain . order . Order ( ) ; java . util . Map < java . lang . String , java . lang . Object > expected = new java . util . HashMa...
org . junit . Assert . assertEquals ( expected , actual )
testLangProfileStringInt ( ) { com . optimaize . langdetect . cybozu . util . LangProfile profile = new com . optimaize . langdetect . cybozu . util . LangProfile ( "en" ) ; "<AssertPlaceHolder>" ; } getName ( ) { return name ; }
org . junit . Assert . assertEquals ( profile . getName ( ) , "en" )
testloadMultiDic ( ) { info . bbd . analyzer . mmseg4j . core . Dictionary dic = info . bbd . analyzer . mmseg4j . core . Dictionary . getInstance ( ) ; "<AssertPlaceHolder>" ; } match ( char [ ] ) { return this . match ( charArray , 0 , charArray . length , null ) ; }
org . junit . Assert . assertTrue ( dic . match ( "" ) )
testFindChildren_noMatch ( ) { byte [ ] oidByteArray = de . persosim . simulator . utils . HexString . toByteArray ( "FF" ) ; de . persosim . simulator . protocols . Oid anonymousTypeOid = new de . persosim . simulator . protocols . GenericOid ( oidByteArray ) ; de . persosim . simulator . cardobjects . OidIdentifier o...
org . junit . Assert . assertEquals ( 0 , cardObjects . size ( ) )
test0DivideXMatrix ( ) { org . ujmp . core . Matrix m1 = createMatrixWithAnnotation ( 5 , 7 ) ; org . ujmp . core . Matrix m2 = createMatrixWithAnnotation ( 5 , 7 ) ; m2 . randn ( Ret . ORIG ) ; org . ujmp . core . Matrix m3 = m1 . divide ( m2 ) ; "<AssertPlaceHolder>" ; if ( m1 instanceof org . ujmp . core . interface...
org . junit . Assert . assertTrue ( getLabel ( ) , m3 . isEmpty ( ) )
testdataSolverConfigWithClassLoader ( ) { java . lang . ClassLoader classLoader = new org . optaplanner . core . api . solver . DivertingClassLoader ( getClass ( ) . getClassLoader ( ) ) ; org . optaplanner . core . api . solver . SolverFactory < org . optaplanner . core . impl . testdata . domain . TestdataSolution > ...
org . junit . Assert . assertNotNull ( solver )
testBadId ( ) { com . amadeus . session . SessionConfiguration sc = new com . amadeus . session . SessionConfiguration ( ) ; sc . setSessionIdName ( "somesession" ) ; cookieSessionTracking . configure ( sc ) ; com . amadeus . session . RequestWithSession request = mock ( com . amadeus . session . RequestWithSession . c...
org . junit . Assert . assertNull ( cookieSessionTracking . retrieveId ( request ) )
testVersionArg ( ) { liquibase . integration . commandline . Main . run ( new java . lang . String [ ] { "--version" } ) ; "<AssertPlaceHolder>" ; } run ( java . lang . String [ ] ) { return liquibase . integration . commandline . Scope . child ( null , liquibase . integration . commandline . Collections . singletonMap...
org . junit . Assert . assertTrue ( true )
dataPointsArrayFieldMayContainNullValue ( ) { java . util . List < org . junit . contrib . theories . PotentialAssignment > valueSources = allMemberValuesFor ( org . junit . contrib . tests . theories . internal . AllMembersSupplierTest . HasDataPointsFieldWithNullValue . class , java . lang . Object . class ) ; "<Asse...
org . junit . Assert . assertThat ( valueSources . size ( ) , org . hamcrest . CoreMatchers . is ( 2 ) )
testSecondChildBean ( ) { final org . apache . commons . beanutils2 . bugs . RootBean bean = new org . apache . commons . beanutils2 . bugs . SecondChildBean ( ) ; final java . lang . Class < ? > propertyType = org . apache . commons . beanutils2 . PropertyUtils . getPropertyType ( bean , "file[0]" ) ; "<AssertPlaceHol...
org . junit . Assert . assertEquals ( java . lang . String . class . getName ( ) , propertyType . getName ( ) )
hashEqualsHashOfKey ( ) { com . ontology2 . bakemono . joins . TaggedTextItem k1 = new com . ontology2 . bakemono . joins . TaggedTextItem ( new org . apache . hadoop . io . Text ( "Doctor<sp>Funkenstein" ) , new org . apache . hadoop . io . VIntWritable ( 33550336 ) ) ; "<AssertPlaceHolder>" ; } hashCode ( ) { return ...
org . junit . Assert . assertEquals ( new org . apache . hadoop . io . Text ( "Doctor<sp>Funkenstein" ) . hashCode ( ) , k1 . hashCode ( ) )
testGetRecommendation ( ) { java . util . List < java . lang . String > agents = new java . util . ArrayList < java . lang . String > ( ) ; java . util . List < java . lang . String > things = new java . util . ArrayList < java . lang . String > ( ) ; java . util . List < eu . dime . commons . dto . TrustWarning > warn...
org . junit . Assert . assertNotNull ( warnings )
testByteArrayPayload ( ) { byte [ ] sentPayload = new byte [ ] { 0 , 1 , 2 , 3 , 4 } ; com . google . appengine . api . taskqueue . Queue queue = com . google . appengine . api . taskqueue . QueueFactory . getDefaultQueue ( ) ; queue . add ( withPayload ( sentPayload , "application/octet-stream" ) ) ; sync ( ) ; byte [...
org . junit . Assert . assertArrayEquals ( sentPayload , receivedPayload )
notInRing ( ) { org . openscience . cdk . isomorphism . matchers . Expr actual = org . openscience . cdk . smarts . SmartsExprReadTest . getBondExpr ( "*!@*" ) ; org . openscience . cdk . isomorphism . matchers . Expr expected = org . openscience . cdk . smarts . SmartsExprReadTest . expr ( org . openscience . cdk . sm...
org . junit . Assert . assertThat ( expected , org . hamcrest . CoreMatchers . is ( actual ) )
sortTest ( ) { int [ ] input = new int [ ] { 29 , 10 , 14 , 37 , 13 } ; int [ ] output = new int [ ] { 10 , 13 , 14 , 29 , 37 } ; chapter3 . bubblesort . BubbleSort bubbleSort = new chapter3 . bubblesort . ILhyunBubbleSort ( ) ; int [ ] result = bubbleSort . sort ( input ) ; for ( int i = 0 ; i < ( input . length ) ; i...
org . junit . Assert . assertThat ( result [ i ] , org . hamcrest . CoreMatchers . is ( output [ i ] ) )
testSetPositionLongArray ( ) { final long [ ] initial = new long [ ] { 532 , 632 , 987421 } ; final long [ ] displacement = new long [ ] { 85 , 8643 , - 973 } ; final net . imglib2 . Point p = new net . imglib2 . Point ( initial ) ; p . setPosition ( displacement ) ; for ( int i = 0 ; i < ( initial . length ) ; i ++ ) ...
org . junit . Assert . assertEquals ( p . getLongPosition ( i ) , displacement [ i ] )
testToBytePrimitiveFromByte ( ) { java . lang . Object result = com . orientechnologies . orient . core . metadata . schema . OType . convert ( ( ( byte ) ( 10 ) ) , Byte . TYPE ) ; "<AssertPlaceHolder>" ; } convert ( java . lang . Object , java . lang . Class ) { if ( iValue == null ) return null ; if ( iTargetClass =...
org . junit . Assert . assertEquals ( result , ( ( byte ) ( 10 ) ) )
testAdjacentEdges ( ) { edu . ucla . sspace . graph . Graph < edu . ucla . sspace . graph . Edge > g = new edu . ucla . sspace . graph . SparseUndirectedGraph ( ) ; edu . ucla . sspace . graph . Set < edu . ucla . sspace . graph . Edge > control = new edu . ucla . sspace . graph . HashSet < edu . ucla . sspace . graph ...
org . junit . Assert . assertEquals ( control , test )
testGetRemoved ( ) { try { java . util . Date date = new java . text . SimpleDateFormat ( "MM/dd/yyyy<sp>HH:mm:ss" ) . parse ( "02/01/2012<sp>12:12:12" ) ; java . util . Date d = host . getRemoved ( ) ; "<AssertPlaceHolder>" ; } catch ( java . text . ParseException e ) { e . printStackTrace ( ) ; } } compareTo ( org . ...
org . junit . Assert . assertTrue ( ( ( d . compareTo ( date ) ) == 0 ) )
testIfNullModelTailSettingWorks_shouldThrowNoException ( ) { org . openengsb . core . api . model . ModelWrapper wrapper = org . openengsb . core . api . model . ModelWrapper . wrap ( new org . openengsb . core . weaver . test . model . TestModel ( ) ) ; wrapper . setOpenEngSBModelTail ( null ) ; "<AssertPlaceHolder>" ...
org . junit . Assert . assertThat ( wrapper . getOpenEngSBModelTail ( ) . size ( ) , org . hamcrest . CoreMatchers . is ( 0 ) )
setChargingSchedule_aChargingSchedule_chargingScheduleIsSet ( ) { eu . chargetime . ocpp . model . core . ChargingSchedule chargingSchedule = mock ( eu . chargetime . ocpp . model . core . ChargingSchedule . class ) ; chargingProfile . setChargingSchedule ( chargingSchedule ) ; "<AssertPlaceHolder>" ; } getChargingSche...
org . junit . Assert . assertThat ( chargingProfile . getChargingSchedule ( ) , org . hamcrest . CoreMatchers . equalTo ( chargingSchedule ) )
testSubNetworkEdgeTableColumnsPropagate ( ) { defaultSetup ( ) ; sub . getDefaultEdgeTable ( ) . createColumn ( "ASDFASDF" , org . cytoscape . model . subnetwork . Integer . class , true ) ; org . cytoscape . model . subnetwork . CySubNetwork sub2 = root . addSubNetwork ( ) ; "<AssertPlaceHolder>" ; } createColumn ( or...
org . junit . Assert . assertNotNull ( sub2 . getDefaultEdgeTable ( ) . getColumn ( "ASDFASDF" ) )
testCancelOnErrorWithAnnotation0 ( ) { org . databene . contiperf . junit . ContiPerfRuleTest . TestBean test = new org . databene . contiperf . junit . ContiPerfRuleTest . TestBean ( ) ; try { check ( test , "cancelOnErrorWithAnnotation0" ) ; } catch ( java . lang . RuntimeException e ) { int count = test . cancelOnEr...
org . junit . Assert . assertEquals ( 1 , count )
testInfiniteIteration ( ) { int size = 10 ; java . util . List < java . lang . String > hosts = new java . util . ArrayList < java . lang . String > ( size ) ; for ( int i = 0 ; i < size ; i ++ ) { hosts . add ( ( ( "http://thisismyawesomehost<sp>" + i ) + ".com" ) ) ; } com . twitter . hbc . core . HttpHosts httpHosts...
org . junit . Assert . assertTrue ( hostsSet . contains ( httpHosts . nextHost ( ) ) )
normalizeWithReservedChars ( ) { final java . lang . String TEST_NAME = "?a/b\nc\td\re*f\\g:h<i>j.txt|" ; final java . lang . String EXPECTED_NAME = "%3Fa/b%0Ac%09d%0De%2Af\\g%3Ah%3Ci%3Ej.txt%7C" ; "<AssertPlaceHolder>" ; } normalize ( java . lang . String ) { if ( name == null ) { throw new java . lang . IllegalArgume...
org . junit . Assert . assertEquals ( EXPECTED_NAME , org . apache . tika . io . FilenameUtils . normalize ( TEST_NAME ) )
testChange ( ) { presenter . init ( "On" , "Off" , true , 0 ) ; presenter . setOnChange ( onChange ) ; when ( view . isOn ( ) ) . thenReturn ( false ) ; presenter . onChange ( ) ; "<AssertPlaceHolder>" ; verify ( onChange ) . execute ( ) ; } isOn ( ) { return switchControl . getValue ( ) ; }
org . junit . Assert . assertFalse ( presenter . isOn ( ) )
testGetFragmentCollectionsCountByKeywordsAndStatus ( ) { com . liferay . portal . kernel . service . ServiceContext serviceContext = com . liferay . portal . kernel . test . util . ServiceContextTestUtil . getServiceContext ( _group . getGroupId ( ) , com . liferay . portal . kernel . test . util . TestPropsValues . ge...
org . junit . Assert . assertEquals ( actualFragmentEntries . toString ( ) , 1 , actualFragmentEntries . size ( ) )
testOnVisitorGetDamageNotInIvSettings ( ) { when ( iwm . inWorld ( any ( org . bukkit . World . class ) ) ) . thenReturn ( false ) ; when ( iwm . inWorld ( any ( org . bukkit . Location . class ) ) ) . thenReturn ( false ) ; org . bukkit . event . entity . EntityDamageEvent e = new org . bukkit . event . entity . Entit...
org . junit . Assert . assertFalse ( e . isCancelled ( ) )
getOrElse_A$Long ( ) { java . lang . Long actual = com . m3 . scalaflavor4j . SLong . apply ( 123L ) . getOrElse ( 0L ) ; "<AssertPlaceHolder>" ; } getOrElse ( java . lang . Integer ) { if ( ( value ) == null ) { return defaultValue ; } else { return value ; } }
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( 123L ) ) )
listExcludeUserIdText ( ) { me . xiezefan . easyim . server . model . User user = new me . xiezefan . easyim . server . model . User ( ) ; user . setId ( Contact . USER_ID2 ) ; user . setUsername ( "kdsjaskdhjaksjdh" ) ; user . setPassword ( java . util . UUID . randomUUID ( ) . toString ( ) ) ; user . setNickname ( "h...
org . junit . Assert . assertTrue ( ( ( ( result2 . size ( ) ) - ( result1 . size ( ) ) ) == 1 ) )
cacheCachedValue ( ) { final org . jboss . msc . value . Value < java . lang . String > cachedValue = new org . jboss . msc . value . CachedValue < java . lang . String > ( new org . jboss . msc . value . ImmediateValue < java . lang . String > ( "value" ) ) ; final org . jboss . msc . value . Value < ? > cachedCachedV...
org . junit . Assert . assertSame ( cachedValue , cachedCachedValue )
testSourcePatternNoMatch ( ) { com . box . l10n . mojito . cli . filefinder . file . MacStringsdictFileType macStringsdictFileType = new com . box . l10n . mojito . cli . filefinder . file . MacStringsdictFileType ( ) ; com . box . l10n . mojito . cli . filefinder . FilePattern sourceFilePattern = macStringsdictFileTyp...
org . junit . Assert . assertFalse ( matcher . matches ( ) )
contextNameConverter ( ) { ch . qos . logback . classic . pattern . ClassicConverter converter = new ch . qos . logback . classic . pattern . ContextNameConverter ( ) ; ch . qos . logback . classic . LoggerContext lcOther = new ch . qos . logback . classic . LoggerContext ( ) ; lcOther . setName ( "another" ) ; convert...
org . junit . Assert . assertEquals ( "aValue" , result )
testDeployUsingARMTemplateWithTags ( ) { "<AssertPlaceHolder>" ; } runSample ( com . microsoft . azure . management . Azure ) { final java . lang . String rgName = com . microsoft . azure . management . resources . fluentcore . utils . SdkContext . randomResourceName ( "rgRSAT" , 24 ) ; final java . lang . String deplo...
org . junit . Assert . assertTrue ( com . microsoft . azure . management . resources . samples . DeployUsingARMTemplateWithTags . runSample ( azure ) )
testWithDisjointSupersets ( ) { java . util . Collection < org . apache . accumulo . core . security . Authorizations > toMinimize = com . google . common . collect . Lists . newArrayList ( new org . apache . accumulo . core . security . Authorizations ( "A" , "B" 0 , "D" , "B" 1 , "F" ) , new org . apache . accumulo ....
org . junit . Assert . assertEquals ( expected , actual )
testEqualsTrue ( ) { org . hipparchus . complex . Complex x = new org . hipparchus . complex . Complex ( 3.0 , 4.0 ) ; org . hipparchus . complex . Complex y = new org . hipparchus . complex . Complex ( 3.0 , 4.0 ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ( this ) == other ) { return true ; } ...
org . junit . Assert . assertTrue ( x . equals ( y ) )
shouldReturnTrueGivenEmptyString ( ) { boolean isEmpty = org . flips . utils . Utils . isEmpty ( "" ) ; "<AssertPlaceHolder>" ; } isEmpty ( java . lang . Object [ ] ) { return org . springframework . util . ObjectUtils . isEmpty ( array ) ; }
org . junit . Assert . assertEquals ( true , isEmpty )
getDbclientAgainGivesSame ( ) { java . util . Map < java . lang . String , java . lang . String > labels = new java . util . HashMap ( ) ; labels . put ( "env" , "dev" ) ; org . mockito . Mockito . when ( spannerOptions . getSessionLabels ( ) ) . thenReturn ( labels ) ; java . lang . String dbName = "projects/p1/instan...
org . junit . Assert . assertThat ( databaseClient1 )
testProcessSimpleImageURL ( ) { com . liferay . document . library . document . conversion . internal . DocumentHTMLProcessor documentHTMLProcessor = new com . liferay . document . library . document . conversion . internal . DocumentHTMLProcessor ( ) ; java . lang . String originalHTML = com . liferay . petra . string...
org . junit . Assert . assertEquals ( expectedHTML , processedHTML )
testOfMaintainsHeaderValueCase ( ) { java . lang . String expected = "vAlUe" ; org . deftserver . util . HttpRequestHelper helper = new org . deftserver . util . HttpRequestHelper ( ) ; helper . addHeader ( "TESTKEY" , expected ) ; org . deftserver . web . http . HttpRequest request = org . deftserver . web . http . Ht...
org . junit . Assert . assertEquals ( expected , actual )
testGetType ( ) { final elemental2 . dom . Element element = mock ( elemental2 . dom . Element . class ) ; doReturn ( element ) . when ( view ) . querySelector ( "type" ) ; "<AssertPlaceHolder>" ; } getType ( ) { return delegate . getType ( ) ; }
org . junit . Assert . assertEquals ( element , view . getType ( ) )
testSelectAlbum ( ) { com . iluwatar . pageobject . pages . AlbumPage albumPage = albumListPage . selectAlbum ( "21" ) ; albumPage . navigateToPage ( ) ; "<AssertPlaceHolder>" ; } isAt ( ) { return "Album<sp>Page" . equals ( page . getTitleText ( ) ) ; }
org . junit . Assert . assertTrue ( albumPage . isAt ( ) )
testProcessWithPageOption ( ) { try { instance . setSourceFormat ( Format . PDF ) ; } catch ( edu . illinois . library . cantaloupe . processor . UnsupportedSourceFormatException e ) { return ; } final java . nio . file . Path fixture = edu . illinois . library . cantaloupe . test . TestUtil . getImage ( "pdf-multipage...
org . junit . Assert . assertFalse ( java . util . Arrays . equals ( page1 , page2 ) )
testEquals_notEqualsNull ( ) { org . eclipse . rap . rwt . template . Position position = new org . eclipse . rap . rwt . template . Position ( 3.14F , 42 ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ( this ) == obj ) return true ; if ( obj == null ) return false ; if ( ( getClass ( ) ) != ( obj...
org . junit . Assert . assertFalse ( position . equals ( null ) )
testContinueFollowedByOther ( ) { java . lang . String outcome = opennlp . tools . namefind . BilouNameFinderSequenceValidatorTest . OTHER ; java . lang . String [ ] inputSequence = new java . lang . String [ ] { "TypeA" , "TypeA" , "something" , "something" } ; java . lang . String [ ] outcomesSequence = new java . la...
org . junit . Assert . assertFalse ( opennlp . tools . namefind . BilouNameFinderSequenceValidatorTest . validator . validSequence ( 2 , inputSequence , outcomesSequence , outcome ) )
testRegisterOrganizationWithInvalidCountry_checkRollback ( ) { int orgCount = getOrganizationCount ( ) ; final org . oscm . domobjects . Organization organization = new org . oscm . domobjects . Organization ( ) ; organization . setOrganizationId ( organizationId ) ; final org . oscm . internal . vo . VOUserDetails use...
org . junit . Assert . assertEquals ( ( orgCount + 1 ) , getOrganizationCount ( ) )
modifyData_noClassAttributeFoundInDataIsDefinedWithClassAttributeProvided_throwsException ( ) { configureProperlyClassAttribute ( extractElementDataModifier , "class_name" ) ; java . lang . String inputData = "<div><form<sp>class=\"different_class_name\"><sp>\n<sp><input<sp>id=\"input_id\"<sp>/><sp>\n</form></div>" ; j...
org . junit . Assert . assertEquals ( actualData , "" )
testNonIsolatedSettingDisabledNonIsolationLookup ( ) { final com . smartitengineering . cms . repo . dao . impl . tx . TransactionInMemoryCache memCache = isolatedOnlyInjector . getInstance ( com . smartitengineering . cms . repo . dao . impl . tx . TransactionInMemoryCache . class ) ; final com . smartitengineering . ...
org . junit . Assert . assertTrue ( gCache . isEmpty ( ) )
testDefineCommand5 ( ) { try { com . gabstudios . cmdline . CmdLine . defineCommand ( "file<sp>!fileName<sp>:file\\d.txt<sp>#Load<sp>files<sp>into<sp>the<sp>system" ) ; org . junit . Assert . fail ( ) ; } catch ( com . gabstudios . cmdline . UnsupportedException e ) { "<AssertPlaceHolder>" ; } } defineCommand ( java . ...
org . junit . Assert . assertTrue ( true )
queryPredicate10 ( ) { int begin = 1 ; int end = 10 ; com . aerospike . client . query . Statement stmt = new com . aerospike . client . query . Statement ( ) ; stmt . setNamespace ( args . namespace ) ; stmt . setSetName ( com . aerospike . test . sync . query . TestQueryPredExp . setName ) ; stmt . setFilter ( com . ...
org . junit . Assert . assertEquals ( 2 , count )
initializesValue ( ) { com . mpatric . mp3agic . MutableInteger integer = new com . mpatric . mp3agic . MutableInteger ( 8 ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return value ; }
org . junit . Assert . assertEquals ( 8 , integer . getValue ( ) )
userPost ( ) { io . seldon . client . beans . UserBean userBean = new io . seldon . client . beans . UserBean ( "abc" , "abc" ) ; io . seldon . client . beans . UserBean responseBean = apiClient . addUser ( userBean ) ; "<AssertPlaceHolder>" ; } addUser ( io . seldon . client . services . UserBean ) { return addUser ( ...
org . junit . Assert . assertEquals ( responseBean , userBean )
toStringValues ( ) { biweekly . property . RawProperty property = new biweekly . property . RawProperty ( "name" , "value" ) ; "<AssertPlaceHolder>" ; } toStringValues ( ) { biweekly . property . ValuedProperty < java . lang . String > property = new biweekly . property . ValuedProperty < java . lang . String > ( "valu...
org . junit . Assert . assertFalse ( property . toStringValues ( ) . isEmpty ( ) )
testWebServiceWSDL ( ) { org . apache . tuscany . sca . implementation . java . JavaImplementation type = javaImplementationFactory . createJavaImplementation ( ) ; processor . visitClass ( org . apache . tuscany . sca . implementation . java . introspect . impl . JAXWSProcessorTestCase . Foo3Impl . class , type ) ; or...
org . junit . Assert . assertNotNull ( service )
shouldRetrunTrueWhenCheckIfProductIsNotUsedIfEntityIsSaved ( ) { java . lang . String belongsToProductName = "product" ; java . lang . String belongsToCompanyName = "company" ; java . lang . String hasManyName = "products" ; given ( companyProduct . getId ( ) ) . willReturn ( 1L ) ; boolean result = companyProductServi...
org . junit . Assert . assertTrue ( result )
testQueryStringMatchesWithParameters ( ) { store . get ( "my<sp>cat" , new org . ocpsoft . rewrite . param . DefaultParameter ( "my<sp>cat" ) ) ; "<AssertPlaceHolder>" ; } parameterExists ( java . lang . String ) { org . ocpsoft . common . util . Assert . notNull ( name , "Parameter<sp>name<sp>pattern<sp>must<sp>not<sp...
org . junit . Assert . assertTrue ( org . ocpsoft . rewrite . servlet . config . Query . parameterExists ( "my<sp>cat" ) . evaluate ( rewrite , context ) )
test16 ( ) { java . lang . Object obj = null ; boolean expResult = false ; boolean result = instance . equals ( obj ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ( this ) == obj ) { return true ; } if ( obj == null ) { return false ; } if ( ( getClass ( ) ) != ( obj . getClass ( ) ) ) { return fa...
org . junit . Assert . assertEquals ( expResult , result )
testHasKey ( ) { "<AssertPlaceHolder>" ; } subject ( ) { return org . everit . json . schema . EnumSchema . builder ( ) . possibleValues ( possibleValues ) ; }
org . junit . Assert . assertTrue ( subject ( ) . containsKey ( "a" ) )
test_5 ( ) { com . alibaba . json . bvt . support . spring . FastJsonRedisSerializerTest . User user = new com . alibaba . json . bvt . support . spring . FastJsonRedisSerializerTest . User ( 1 , "" , 25 ) ; byte [ ] serializedValue = serializer . serialize ( user ) ; java . util . Arrays . sort ( serializedValue ) ; "...
org . junit . Assert . assertNull ( serializer . deserialize ( serializedValue ) )
isTopicReadWhenLoggedLastVisitOlderThanTopicReadTimeNewerThanTopicShouldReturnTrue ( ) { when ( httpSession . getAttribute ( ConfigKeys . LOGGED ) ) . thenReturn ( "1" ) ; net . jforum . entities . Topic topic = new net . jforum . entities . Topic ( ) ; topic . setLastPost ( new net . jforum . entities . Post ( ) ) ; t...
org . junit . Assert . assertTrue ( userSession . isTopicRead ( topic ) )
testCount ( ) { service . setResourceLoader ( new org . springframework . core . io . DefaultResourceLoader ( ) ) ; service . afterPropertiesSet ( ) ; "<AssertPlaceHolder>" ; } countFiles ( ) { org . springframework . core . io . support . ResourcePatternResolver resolver = org . springframework . core . io . support ....
org . junit . Assert . assertEquals ( 0 , service . countFiles ( ) )
testParsingRecoveryNoInfiniteLoopDuringAdaptivePredictionAtEof ( ) { java . lang . String testrigName = "parsing-recovery" ; java . lang . String hostname = "ios-blankish-file" ; java . util . List < java . lang . String > configurationNames = com . google . common . collect . ImmutableList . of ( hostname ) ; org . ba...
org . junit . Assert . assertThat ( configurations . entrySet ( ) , org . hamcrest . Matchers . hasSize ( 1 ) )
testCustomFrameBuilder ( ) { final com . syncleus . ferma . Person o = new com . syncleus . ferma . Person ( ) ; final org . apache . tinkerpop . gremlin . structure . Graph g = org . apache . tinkerpop . gremlin . tinkergraph . structure . TinkerGraph . open ( ) ; final com . syncleus . ferma . FramedGraph fg = new co...
org . junit . Assert . assertEquals ( o , person )
testEmptyArray ( ) { com . mictale . jsonite . JsonValue json = com . mictale . jsonite . JsonValue . parse ( "[]" ) ; com . mictale . jsonite . JsonArray arr = json . asArray ( ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return members . isEmpty ( ) ; }
org . junit . Assert . assertEquals ( arr . isEmpty ( ) , true )
testSelectByIds ( ) { org . apache . ibatis . session . SqlSession sqlSession = tk . mybatis . mapper . mapper . MybatisHelper . getSqlSession ( ) ; try { tk . mybatis . mapper . mapper . CountryMapper mapper = sqlSession . getMapper ( tk . mybatis . mapper . mapper . CountryMapper . class ) ; java . util . List < tk ....
org . junit . Assert . assertEquals ( 3 , countryList . size ( ) )
testMultipleReturnValues ( ) { java . lang . Object o = deliver ( message7 , 7 , 7 ) ; "<AssertPlaceHolder>" ; } deliver ( java . io . Serializable , int , int ) { try { return dispatcher . call ( new dmg . cells . nucleus . CellMessage ( new dmg . cells . nucleus . CellAddressCore ( "test" ) , msg ) ) ; } finally { or...
org . junit . Assert . assertEquals ( o , null )
correctlyParseNullString ( ) { au . com . bytecode . opencsv . StringWriter sw = new au . com . bytecode . opencsv . StringWriter ( ) ; au . com . bytecode . opencsv . CSVWriter csvw = new au . com . bytecode . opencsv . CSVWriter ( sw , ',' , '\'' ) ; csvw . writeNext ( null ) ; "<AssertPlaceHolder>" ; } toString ( ) ...
org . junit . Assert . assertEquals ( 0 , sw . toString ( ) . length ( ) )
test_x_$ ( ) { org . antlr . v4 . runtime . atn . PredictionContext r = contextCache . join ( x ( false ) , PredictionContext . EMPTY_LOCAL ) ; System . out . println ( org . antlr . v4 . test . tool . TestGraphNodes . toDOTString ( r ) ) ; java . lang . String expecting = "digraph<sp>G<sp>{\n" + ( ( "rankdir=LR;\n" + ...
org . junit . Assert . assertEquals ( expecting , org . antlr . v4 . test . tool . TestGraphNodes . toDOTString ( r ) )
testMergeOverlappingStrings ( ) { final java . util . List < org . apache . commons . lang3 . tuple . Pair < java . lang . String , java . lang . String > > outputs = new java . util . ArrayList < org . apache . commons . lang3 . tuple . Pair < java . lang . String , java . lang . String > > ( ) ; uk . org . rbc1b . ro...
org . junit . Assert . assertEquals ( java . util . Arrays . asList ( new org . apache . commons . lang3 . tuple . ImmutablePair < java . lang . String , java . lang . String > ( "bar" , null ) , new org . apache . commons . lang3 . tuple . ImmutablePair < java . lang . String , java . lang . String > ( "foo" , "foo" )...
testIntegerVariableGet ( ) { jnr . ffi . GlobalVariableTest . TestLib lib = jnr . ffi . TstUtil . loadTestLib ( jnr . ffi . GlobalVariableTest . TestLib . class ) ; jnr . ffi . Variable < java . lang . Long > var = lib . gvar_s32 ( ) ; final int MAGIC = - 559038737 ; lib . gvar_s32_set ( MAGIC ) ; "<AssertPlaceHolder>"...
org . junit . Assert . assertEquals ( MAGIC , var . get ( ) . intValue ( ) )
whenSortingEntitiesByNameReversed_thenCorrectlySorted ( ) { final java . util . List < com . baeldung . java8 . entity . Human > humans = com . google . common . collect . Lists . newArrayList ( new com . baeldung . java8 . entity . Human ( "Sarah" , 10 ) , new com . baeldung . java8 . entity . Human ( "Jack" , 12 ) ) ...
org . junit . Assert . assertThat ( humans . get ( 0 ) , org . hamcrest . Matchers . equalTo ( new com . baeldung . java8 . entity . Human ( "Sarah" , 10 ) ) )
testVersionFactory ( ) { co . cask . tephra . util . HBaseVersion . Version foundVersion = co . cask . tephra . util . HBaseVersion . get ( ) ; "<AssertPlaceHolder>" ; } getExpectedVersion ( ) { return HBaseVersion . Version . HBASE_98 ; }
org . junit . Assert . assertEquals ( getExpectedVersion ( ) , foundVersion )
testNewStager_xml ( ) { org . mockito . Mockito . when ( stageMojo . isAppEngineCompatiblePackaging ( ) ) . thenReturn ( true ) ; org . mockito . Mockito . when ( stageMojo . isAppEngineWebXmlBased ( ) ) . thenReturn ( true ) ; org . mockito . Mockito . when ( stageMojo . getArtifact ( ) ) . thenReturn ( tempFolder . g...
org . junit . Assert . assertEquals ( com . google . cloud . tools . maven . stage . AppEngineWebXmlStager . class , stager . getClass ( ) )
ThreeCollisionsEquals ( ) { io . usethesource . capsule . SetSmokeTest . DummyValue hash98304_obj1 = new io . usethesource . capsule . SetSmokeTest . DummyValue ( 1 , 98304 ) ; io . usethesource . capsule . SetSmokeTest . DummyValue hash98304_obj2 = new io . usethesource . capsule . SetSmokeTest . DummyValue ( 2 , 9830...
org . junit . Assert . assertEquals ( xs , ys )
testInvoke_overloadedOneParam ( ) { java . lang . Object [ ] args = new java . lang . Object [ ] { 1 } ; when ( soapCall . getSoapClientMethod ( ) ) . thenReturn ( com . google . api . ads . common . lib . soap . testing . MockSoapClient . class . getMethod ( "testOverloaded" , int . class ) ) ; when ( soapCall . getSo...
org . junit . Assert . assertSame ( 1 , result )
forEach ( ) { org . eclipse . collections . api . bag . MutableBag < java . lang . Integer > result = org . eclipse . collections . impl . bag . mutable . HashBag . newBag ( ) ; org . eclipse . collections . api . bag . sorted . ImmutableSortedBag < java . lang . Integer > collection = this . classUnderTest ( ) ; colle...
org . junit . Assert . assertEquals ( collection , result )
shouldReturnDetectionStatusOfSurvivedWhenNoFailuresOrErrors ( ) { this . testee = new org . pitest . mutationtest . execute . CheckTestHasFailedResultListener ( false ) ; this . testee . onTestSuccess ( new org . pitest . testapi . TestResult ( this . description , null ) ) ; "<AssertPlaceHolder>" ; } status ( ) { if (...
org . junit . Assert . assertEquals ( DetectionStatus . SURVIVED , this . testee . status ( ) )
testConnectorResources ( ) { java . lang . String testPool = "connectorPool" + ( generateRandomString ( ) ) ; java . lang . String testConnector = "connectorResource" + ( generateRandomString ( ) ) ; org . glassfish . admingui . devtests . StandaloneTest standaloneTest = new org . glassfish . admingui . devtests . Stan...
org . junit . Assert . assertTrue ( isTextPresent ( testPool ) )
writeSourcePropagatesEof ( ) { okio . Source source = new okio . Buffer ( ) . writeUtf8 ( "abcd" ) ; try { sink . write ( source , 8 ) ; org . junit . Assert . fail ( ) ; } catch ( java . io . EOFException expected ) { } sink . flush ( ) ; "<AssertPlaceHolder>" ; } readUtf8 ( ) { buffer . writeAll ( source ) ; return b...
org . junit . Assert . assertEquals ( "abcd" , data . readUtf8 ( ) )
testDepthFirstTraversal ( ) { java . lang . String [ ] output = new java . lang . String [ ] { "Root" , "Leaf1" , "Child1" , "Child1Leaf" , "Child2" , "Child2Leaf1" , "Child2Leaf2" , "Leaf2" } ; int i = 0 ; for ( edu . illinois . cs . cogcomp . core . datastructures . trees . Tree < java . lang . String > t : edu . ill...
org . junit . Assert . assertEquals ( output [ ( i ++ ) ] , t . getLabel ( ) )