input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testNonNormalizedURIs ( ) { org . eclipse . emf . ecore . resource . ResourceSet resourceSet = new org . eclipse . xtext . resource . XtextResourceSet ( ) ; parser . parse ( "B" , org . eclipse . emf . common . util . URI . createURI ( ( "a." + ( parser . fileExtension ) ) ) , resourceSet ) ; parser . parse ( "B" , org...
org . junit . Assert . assertEquals ( 2 , objects . size ( ) )
getValueMessage ( ) { org . openhab . binding . zwave . internal . protocol . commandclass . ZWavePowerLevelCommandClass cls = ( ( org . openhab . binding . zwave . internal . protocol . commandclass . ZWavePowerLevelCommandClass ) ( getCommandClass ( CommandClass . COMMAND_CLASS_POWERLEVEL ) ) ) ; org . openhab . bind...
org . junit . Assert . assertTrue ( java . util . Arrays . equals ( msg . getPayloadBuffer ( ) , expectedResponseV1 ) )
isNewReceiptNotRequiredTestQuantity ( ) { final de . metas . inoutcandidate . model . I_M_ReceiptSchedule previousReceiptSchedule = createReceiptSchedule ( bpartner1 , warehouse1 , date , product1_wh1 , 10 ) ; final de . metas . inoutcandidate . model . I_M_ReceiptSchedule receiptSchedule = createReceiptSchedule ( bpar...
org . junit . Assert . assertFalse ( isNewRequired )
testLogout ( ) { org . openiot . security . client . AccessControlUtil accessControlUtil = org . openiot . security . client . AccessControlUtil . getRestInstance ( ) ; accessControlUtil . login ( "admin" , "secret" ) ; accessControlUtil . logout ( ) ; "<AssertPlaceHolder>" ; } logout ( ) { org . apache . shiro . subje...
org . junit . Assert . assertFalse ( org . apache . shiro . SecurityUtils . getSubject ( ) . isAuthenticated ( ) )
testToUda_Null ( ) { "<AssertPlaceHolder>" ; } toUda ( org . oscm . internal . vo . VOUda ) { if ( voUda == null ) { return null ; } org . oscm . domobjects . Uda uda = new org . oscm . domobjects . Uda ( ) ; org . oscm . accountservice . assembler . UdaAssembler . copyAttributes ( voUda , uda ) ; return uda ; }
org . junit . Assert . assertNull ( org . oscm . accountservice . assembler . UdaAssembler . toUda ( null ) )
loadProfilesFromClasspath ( ) { java . util . List < com . optimaize . langdetect . profiles . LanguageProfile > result = new com . optimaize . langdetect . profiles . LanguageProfileReader ( ) . read ( this . getClass ( ) . getClassLoader ( ) , "languages" , com . google . common . collect . ImmutableList . of ( "en" ...
org . junit . Assert . assertEquals ( result . size ( ) , 4 )
testContainObjectId ( ) { org . o3project . odenos . remoteobject . RemoteObject mockLocalObject = org . mockito . Mockito . mock ( org . o3project . odenos . remoteobject . RemoteObject . class ) ; org . mockito . Mockito . when ( mockLocalObject . getObjectId ( ) ) . thenReturn ( "object1" ) ; java . util . concurren...
org . junit . Assert . assertTrue ( target . containObjectId ( "object1" ) )
testDecoratedElementsShouldBeUnwrapped ( ) { final org . openqa . selenium . remote . RemoteWebElement element = new org . openqa . selenium . remote . RemoteWebElement ( ) ; element . setId ( "foo" ) ; org . openqa . selenium . WebDriver driver = new org . openqa . selenium . StubDriver ( ) { @ org . openqa . selenium...
org . junit . Assert . assertEquals ( expected , seen )
testRetrieve ( ) { accessor . add ( file , org . apache . commons . io . IOUtils . toInputStream ( ee . shy . storage . FileAccessorTest . TEST_STRING ) ) ; checkFile ( file ) ; "<AssertPlaceHolder>" ; } get ( java . nio . file . Path ) { try { return java . nio . file . Files . newInputStream ( path ) ; } catch ( java...
org . junit . Assert . assertEquals ( ee . shy . storage . FileAccessorTest . TEST_STRING , org . apache . commons . io . IOUtils . toString ( accessor . get ( file ) ) )
canIterateThroughResults ( ) { java . util . List < java . lang . String > result = createStringListResult ( ) ; int i = 0 ; for ( java . lang . String s : result ) { "<AssertPlaceHolder>" ; ++ i ; } } createStringListResult ( ) { com . microsoft . windowsazure . services . media . models . ListResult < java . lang . S...
org . junit . Assert . assertEquals ( expectedStrings [ i ] , s )
testDoubleTroubleResolution ( ) { try { org . glassfish . hk2 . tests . locator . justintime . JustInTimeTest . locator . getService ( org . glassfish . hk2 . tests . locator . justintime . DoubleTroubleService . class ) ; org . junit . Assert . fail ( "DoubleTrouble<sp>depends<sp>on<sp>Service2<sp>which<sp>should<sp>n...
org . junit . Assert . assertNotNull ( org . glassfish . hk2 . tests . locator . justintime . JustInTimeTest . locator . getService ( org . glassfish . hk2 . tests . locator . justintime . DoubleTroubleService . class ) )
testBasicQueryGroupBy ( ) { java . lang . String query = "select<sp>`timestamp`,<sp>sum(`aggregated<sp>value`)<sp>from<sp>openTSDB.`(metric=warp.speed.test,<sp>aggregator=sum,<sp>start=47y-ago)`<sp>group<sp>by<sp>`timestamp`" ; "<AssertPlaceHolder>" ; } testSql ( java . lang . String ) { return org . apache . drill . t...
org . junit . Assert . assertEquals ( 15 , testSql ( query ) )
shouldDenyUserDeletionIfCurrentUserIdIsTheSameAsIdInDeletingOne ( ) { java . lang . Long id = 1L ; stubCurrentUserId ( id ) ; stubUserEntityId ( id ) ; boolean canDelete = userModelHooks . preventSelfDeletion ( userDD , user ) ; "<AssertPlaceHolder>" ; } preventSelfDeletion ( com . qcadoo . model . api . DataDefinition...
org . junit . Assert . assertFalse ( canDelete )
testDeleteUsers_NullStatus ( ) { final java . lang . String instanceId = createService ( ProvisioningStatus . COMPLETED ) ; final java . util . List < org . oscm . provisioning . data . User > users = new java . util . ArrayList ( ) ; final org . oscm . provisioning . data . BaseResult result = new org . oscm . provisi...
org . junit . Assert . assertEquals ( 0 , ur . getRc ( ) )
should_update_user_create_a_new_icon ( ) { org . bonitasoft . engine . identity . User user = getIdentityAPI ( ) . createUser ( new org . bonitasoft . engine . identity . UserCreator ( "userWithIcon" , "thePassword" ) ) ; org . bonitasoft . engine . identity . User updatedUser = getIdentityAPI ( ) . updateUser ( user ....
org . junit . Assert . assertThat ( icon )
testSetLineCapWithUnchangeValue ( ) { gc . setLineCap ( SWT . CAP_ROUND ) ; org . eclipse . swt . graphics . ControlGC_Test . getGCAdapter ( gc ) . clearGCOperations ( ) ; gc . setLineCap ( SWT . CAP_ROUND ) ; "<AssertPlaceHolder>" ; } getGCOperations ( org . eclipse . swt . graphics . GC ) { return org . eclipse . swt...
org . junit . Assert . assertEquals ( 0 , org . eclipse . swt . graphics . ControlGC_Test . getGCOperations ( gc ) . length )
testValidFixed ( ) { org . apache . drill . exec . record . BatchSchema schema = new org . apache . drill . exec . record . metadata . SchemaBuilder ( ) . add ( "a" , MinorType . INT ) . addNullable ( "b" , MinorType . INT ) . build ( ) ; org . apache . drill . test . rowSet . RowSet . SingleRowSet batch = org . apache...
org . junit . Assert . assertTrue ( validator . errors ( ) . isEmpty ( ) )
getByKey_not_normalized ( ) { final net . ripe . db . whois . common . rpsl . RpslObject rpslObject = net . ripe . db . whois . common . rpsl . RpslObject . parse ( ( "" + ( ( "inet6num:<sp>2001:0658:021A::/48\n" + "netname:<sp>NETNAME\n" ) + "source:<sp>RIPE\n" ) ) ) ; databaseHelper . addObject ( rpslObject ) ; final...
org . junit . Assert . assertThat ( byKey , org . hamcrest . Matchers . is ( rpslObject ) )
shouldReturnCaseSensitiveWhenResultIsNotExtendedJcrQueryResult ( ) { for ( int i = 0 ; i != ( columnNames . length ) ; ++ i ) { "<AssertPlaceHolder>" ; } } isCaseSensitive ( int ) { return provider . getBooleanValue ( adjustColumn ( index ) , ResultsMetadataConstants . CASE_SENSITIVE ) ; }
org . junit . Assert . assertThat ( metadata . isCaseSensitive ( ( i + 1 ) ) , org . hamcrest . core . Is . is ( true ) )
should_return_true_if_both_Objects_are_null ( ) { "<AssertPlaceHolder>" ; } areEqual ( java . lang . Object , java . lang . Object ) { if ( o1 == null ) { return o2 == null ; } if ( o1 . equals ( o2 ) ) { return true ; } return org . fest . util . Objects . areEqualArrays ( o1 , o2 ) ; }
org . junit . Assert . assertTrue ( org . fest . util . Objects . areEqual ( null , null ) )
testSGGradientNegative1 ( ) { org . nd4j . linalg . api . ndarray . INDArray syn0 = org . nd4j . linalg . factory . Nd4j . create ( 10 , 10 ) . assign ( 0.01F ) ; org . nd4j . linalg . api . ndarray . INDArray syn1 = org . nd4j . linalg . factory . Nd4j . create ( 10 , 10 ) . assign ( 0.02F ) ; org . nd4j . linalg . ap...
org . junit . Assert . assertEquals ( expSyn0 , syn0 . getRow ( idxSyn0 ) )
isAllServicesSelected_All ( ) { bean . allServicesSelected = true ; boolean actual = bean . isAllServicesSelected ( ) ; "<AssertPlaceHolder>" ; } isAllServicesSelected ( ) { return allServicesSelected ; }
org . junit . Assert . assertEquals ( true , actual )
testParseCatalogXML4 ( ) { owltools . io . CatalogXmlIRIMapper m = new owltools . io . CatalogXmlIRIMapper ( "src/test/resources/catalog-v001.xml" ) ; owltools . io . ParserWrapper p = new owltools . io . ParserWrapper ( ) ; p . addIRIMapper ( m ) ; if ( owltools . io . CatalogXmlIRIMapperTest . verbose ) { p . manager...
org . junit . Assert . assertNotNull ( owlOntology )
scroll ( ) { session . save ( new com . querydsl . jpa . domain . Cat ( "Bob" , 10 ) ) ; session . save ( new com . querydsl . jpa . domain . Cat ( "Steve" , 11 ) ) ; com . querydsl . jpa . domain . QCat cat = com . querydsl . jpa . domain . QCat . cat ; com . querydsl . jpa . hibernate . HibernateQuery < ? > query = n...
org . junit . Assert . assertNotNull ( results . get ( 0 ) )
shouldMatchIfAllMatch ( ) { org . springframework . springfaces . mvc . navigation . annotation . NavigationMappingFilter f1 = mock ( org . springframework . springfaces . mvc . navigation . annotation . NavigationMappingFilter . class ) ; org . springframework . springfaces . mvc . navigation . annotation . Navigation...
org . junit . Assert . assertThat ( composite . matches ( this . context ) , org . hamcrest . Matchers . is ( true ) )
testGetProjectById ( ) { com . onboard . domain . model . Project result = projectServiceImpl . getById ( com . onboard . service . collaboration . impl . test . ProjectServiceImplTest . id ) ; verify ( projectMapper ) . selectByPrimaryKey ( com . onboard . service . collaboration . impl . test . ProjectServiceImplTest...
org . junit . Assert . assertEquals ( project , result )
testPropertyReactivityOfAKnownClass ( ) { final java . lang . String drl1 = ( ( ( ( ( ( ( ( ( ( "<sp>when\n" 0 + ( org . drools . compiler . integrationtests . incrementalcompilation . IncrementalCompilationTest . TypeA . class . getCanonicalName ( ) ) ) + "\n" ) + "<sp>when\n" 0 ) + ( org . drools . compiler . integra...
org . junit . Assert . assertEquals ( 1 , fired )
testDatatypeValue3 ( ) { java . lang . String init = "'01'^^xsd:integer,<sp>'1'^^xsd:integer" 1 + ( ( ( ( ( ( ( ( "<Jack><sp>" + "rdf:value<sp>" ) + "<sp>1,<sp>1.0,<sp>'1'^^xsd:long,<sp>1e0,<sp>'1'^^xsd:double,<sp>'1'^^xsd:float,<sp>" ) + "'01'^^xsd:integer,<sp>'1'^^xsd:integer" 3 ) + "'1'^^xsd:boolean,<sp>'0'^^xsd:boo...
org . junit . Assert . assertEquals ( 10 , map . size ( ) )
testCannotRetrieveUserWorkspaceWithoutDomains ( ) { java . util . List < org . nuxeo . ecm . core . api . DocumentRef > refs = session . getChildren ( session . getRootDocument ( ) . getRef ( ) ) . stream ( ) . map ( DocumentModel :: getRef ) . collect ( java . util . stream . Collectors . toList ( ) ) ; session . remo...
org . junit . Assert . assertNull ( uw )
testUpdateSecurityZoneWithMisMatchId ( ) { org . apache . ranger . plugin . model . RangerSecurityZone rangerSecurityZoneToUpdate = createRangerSecurityZone ( ) ; java . lang . Long securityZoneId = 1L ; rangerSecurityZoneToUpdate . setId ( securityZoneId ) ; when ( rangerBizUtil . isAdmin ( ) ) . thenReturn ( true ) ;...
org . junit . Assert . assertEquals ( rangerSecurityZoneToUpdate . getId ( ) , updatedRangerSecurityZone . getId ( ) )
defaultSeparatorOutsideOfAVariable ( ) { ch . qos . logback . core . subst . Tokenizer tokenizer = new ch . qos . logback . core . subst . Tokenizer ( "{a:-b}" ) ; ch . qos . logback . core . subst . Parser parser = new ch . qos . logback . core . subst . Parser ( tokenizer . tokenize ( ) ) ; ch . qos . logback . core ...
org . junit . Assert . assertEquals ( witness , node )
testValidPublish ( ) { com . streamsets . pipeline . stage . destination . redis . RedisTargetConfig conf = getDefaultConfig ( ) ; conf . mode = ModeType . PUBLISH ; conf . channel = com . google . common . collect . ImmutableList . of ( com . streamsets . pipeline . stage . destination . redis . RedisTargetIT . channe...
org . junit . Assert . assertTrue ( runner . getErrorRecords ( ) . isEmpty ( ) )
Should_locallyStoreEntries ( ) { info . smart_tools . smartactors . scheduler . actor . impl . EntryStorage storage = new info . smart_tools . smartactors . scheduler . actor . impl . EntryStorage ( remoteEntryStorage , null ) ; storage . notifyActive ( entries [ 0 ] ) ; storage . notifyActive ( entries [ 1 ] ) ; stora...
org . junit . Assert . assertSame ( entries [ 1 ] , storage . getEntry ( "1" ) )
shouldParseIsoPrefixSimpleNumber ( ) { long value = org . dcache . util . ByteSizeParser . using ( isoPrefix ( ) ) . parse ( "1" ) ; "<AssertPlaceHolder>" ; } parse ( java . io . File ) { java . util . List < diskCacheV111 . util . PnfsId > list = new java . util . ArrayList ( ) ; try ( java . io . BufferedReader reade...
org . junit . Assert . assertThat ( value , org . hamcrest . Matchers . is ( org . hamcrest . Matchers . equalTo ( 1L ) ) )
testWritableOutputStreamWithAutoCreateOnNullBlob ( ) { java . lang . String location = "gs://test-spring/test" ; com . google . cloud . storage . Storage storage = mock ( com . google . cloud . storage . Storage . class ) ; com . google . cloud . storage . BlobId blobId = com . google . cloud . storage . BlobId . of ( ...
org . junit . Assert . assertNotNull ( os )
etaLam ( ) { org . arend . core . expr . PiExpression type = Pi ( singleParam ( null , Nat ( ) ) , DataCall ( Prelude . PATH , Sort . SET0 , Lam ( singleParam ( "i" , Interval ( ) ) , Nat ( ) ) , Zero ( ) , Zero ( ) ) ) ; org . arend . typechecking . visitor . CheckTypeVisitor . Result result1 = typeCheckExpr ( "\\lam<...
org . junit . Assert . assertEquals ( result2 . expression , result1 . expression )
testHasWarningsWhenBothWarningsAndErrorsAreRecorded ( ) { "<AssertPlaceHolder>" ; } hasWarnings ( ) { runCodes ( ) ; return ( numWarnings ) > 0 ; }
org . junit . Assert . assertThat ( report . hasWarnings ( ) , org . hamcrest . Matchers . equalTo ( true ) )
addWithEqualsInSuperclass ( ) { org . optaplanner . core . impl . testdata . domain . lookup . TestdataObjectEqualsSubclass object = new org . optaplanner . core . impl . testdata . domain . lookup . TestdataObjectEqualsSubclass ( 0 ) ; lookUpManager . addWorkingObject ( object ) ; "<AssertPlaceHolder>" ; } lookUpWorki...
org . junit . Assert . assertSame ( object , lookUpManager . lookUpWorkingObject ( object ) )
testJmsConsumerIdFromJmsSessionId ( ) { org . apache . qpid . jms . meta . JmsConsumerId id1 = new org . apache . qpid . jms . meta . JmsConsumerId ( firstId , 1 ) ; org . apache . qpid . jms . meta . JmsConsumerId id2 = new org . apache . qpid . jms . meta . JmsConsumerId ( id1 ) ; "<AssertPlaceHolder>" ; } getValue (...
org . junit . Assert . assertSame ( id1 . getValue ( ) , id2 . getValue ( ) )
testRemoveExpiredMasterKeyInRMStateStore ( ) { org . apache . hadoop . yarn . server . resourcemanager . MockRM rm1 = new org . apache . hadoop . yarn . server . resourcemanager . security . TestRMDelegationTokens . MyMockRM ( conf ) ; rm1 . start ( ) ; org . apache . hadoop . yarn . server . resourcemanager . security...
org . junit . Assert . assertTrue ( foundIt )
testAfter ( ) { final org . apache . drill . exec . expr . holders . VarCharHolder left = org . apache . drill . exec . fn . impl . TestByteComparisonFunctions . hello ; final org . apache . drill . exec . expr . holders . VarCharHolder right = org . apache . drill . exec . fn . impl . TestByteComparisonFunctions . goo...
org . junit . Assert . assertTrue ( ( ( org . apache . drill . exec . expr . fn . impl . ByteFunctionHelpers . compare ( left . buffer , left . start , left . end , right . buffer , right . start , right . end ) ) == 1 ) )
testNestedExecution ( ) { final org . nd4j . autodiff . samediff . SameDiff outer = org . nd4j . autodiff . samediff . SameDiff . create ( ) ; org . nd4j . autodiff . samediff . Map < java . lang . String , org . nd4j . linalg . api . ndarray . INDArray > input = new org . nd4j . autodiff . samediff . HashMap ( ) ; inp...
org . junit . Assert . assertEquals ( outputsAssertion , outputs [ 0 ] )
printsOutLinesIndiscrimately ( ) { com . facebook . buck . tools . consistency . RuleKeyLogFilePrinter printer = new com . facebook . buck . tools . consistency . RuleKeyLogFilePrinter ( stream , reader , java . util . Optional . empty ( ) , java . util . Optional . empty ( ) , Integer . MAX_VALUE ) ; printer . printFi...
org . junit . Assert . assertEquals ( 12 , lines . length )
test ( ) { connect ( ) ; org . zkoss . zktest . zats . ztl . JQuery icon1 = jq ( ".z-icon-caret-right" ) ; click ( icon1 ) ; check ( jq ( ".z-checkbox" ) . find ( "input" ) ) ; waitResponse ( ) ; org . zkoss . zktest . zats . ztl . JQuery trs = jq ( ".z-treerow-selected" ) ; "<AssertPlaceHolder>" ; } length ( ) { retur...
org . junit . Assert . assertTrue ( ( ( trs . length ( ) ) == 5 ) )
shouldParsePicklistsToObjects ( ) { final int properCountExceptions = 0 ; final org . apache . camel . maven . GenerateMojo mojo = new org . apache . camel . maven . GenerateMojo ( ) ; mojo . picklistToStrings = org . apache . camel . maven . GenerateMojoTest . createValidPicklistToStrings ( ) ; mojo . picklistToEnums ...
org . junit . Assert . assertEquals ( properCountExceptions , resultCountExceptions )
testConvertToThreeBytes ( ) { result2 = org . onosproject . isis . io . util . IsisUtil . convertToThreeBytes ( 30 ) ; "<AssertPlaceHolder>" ; } is ( java . lang . Class ) { return true ; }
org . junit . Assert . assertThat ( result2 . length , org . hamcrest . CoreMatchers . is ( 3 ) )
shouldHaveProjections ( ) { final int result = uut . size ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return ( examples . getRows ( ) . size ( ) ) - 1 ; }
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . equalTo ( 1 ) )
testBadUsername ( ) { mockNonce ( "3rfcNHYJY1ZVvWVs7j" ) ; final org . wildfly . security . password . Password password = org . wildfly . security . sasl . scram . ScramServerCompatibilityTest . getPassword ( "pencil" , "QSXCR+Q6sek8bf92" ) ; final javax . security . sasl . SaslServer saslServer = new org . wildfly . ...
org . junit . Assert . assertFalse ( saslServer . isComplete ( ) )
classInfoClone ( ) { org . mapdb . elsa . ElsaSerializerPojo . ClassInfo c = p . makeClassInfo ( org . mapdb . elsa . IntBean . class , null ) ; org . mapdb . elsa . ByteArrayOutputStream bout = new org . mapdb . elsa . ByteArrayOutputStream ( ) ; org . mapdb . elsa . DataOutputStream out = new org . mapdb . elsa . Dat...
org . junit . Assert . assertEquals ( c , c2 )
preHandleDomainPort ( ) { domain = "localhost" ; org . springframework . mock . web . MockHttpServletRequest request = new org . springframework . mock . web . MockHttpServletRequest ( ) ; org . springframework . mock . web . MockHttpServletResponse response = new org . springframework . mock . web . MockHttpServletRes...
org . junit . Assert . assertEquals ( 200 , response . getStatus ( ) )
testFuzzyLookup ( ) { java . lang . Class expected = com . laytonsmith . PureUtilities . Common . ReflectionUtils . class ; java . lang . Class actual = com . laytonsmith . PureUtilities . ClassLoading . ClassDiscovery . getDefaultInstance ( ) . forFuzzyName ( "com.laytonsmith.Pur.*" , "ReflectionUtils" ) . loadClass (...
org . junit . Assert . assertEquals ( expected , actual )
countAuditLogs_byOperationName1 ( ) { givenAuditLogs ( ) ; operatorIds . add ( "opId1" ) ; long cnt = countAuditLogsInTx ( operatorIds , 0 , Long . MAX_VALUE ) ; "<AssertPlaceHolder>" ; } countAuditLogsInTx ( java . util . List , long , long ) { return runTX ( new java . util . concurrent . Callable < java . lang . Lon...
org . junit . Assert . assertEquals ( 3 , cnt )
shouldReturnFriends ( ) { try ( org . neo4j . harness . ServerControls server = newTestDb ( ) ) { populateDb ( server . graph ( ) ) ; org . neo4j . server . rest . RestRequest restRequest = new org . neo4j . server . rest . RestRequest ( server . httpURI ( ) . resolve ( com . neo4j . example . extension . MyServiceFunc...
org . junit . Assert . assertEquals ( new java . util . HashSet ( java . util . Arrays . asList ( "A" , "C" ) ) , new java . util . HashSet ( list ) )
testDestroyWeakSynapseOnWrongPrediction ( ) { org . numenta . nupic . algorithms . TemporalMemory tm = new org . numenta . nupic . algorithms . TemporalMemory ( ) ; org . numenta . nupic . model . Connections cn = new org . numenta . nupic . model . Connections ( ) ; org . numenta . nupic . Parameters p = getDefaultPar...
org . junit . Assert . assertEquals ( 3 , cn . numSynapses ( activeSegment ) )
testParsePathNodePortSizeErr ( ) { queriesString = org . apache . commons . lang . StringUtils . join ( new java . lang . String [ ] { "type=node" , "enabled=true" , "status=established" , "path=type=Network,node_id=node01,port_id=port01,port_id=port02" } , "&" ) ; target = new org . o3project . odenos . core . compone...
org . junit . Assert . assertThat ( target . parse ( ) , org . hamcrest . CoreMatchers . is ( false ) )
testGroupItemChangesBaseItem ( ) { org . eclipse . smarthome . model . item . internal . GenericItemProvider gip = new org . eclipse . smarthome . model . item . internal . GenericItemProvider ( ) ; org . eclipse . smarthome . core . items . GroupItem g1 = new org . eclipse . smarthome . core . items . GroupItem ( "tes...
org . junit . Assert . assertTrue ( gip . hasItemChanged ( g1 , g2 ) )
testNeighborState ( ) { isisNeighbor . setNeighborState ( IsisInterfaceState . DOWN ) ; isisInterfaceState = isisNeighbor . neighborState ( ) ; "<AssertPlaceHolder>" ; } is ( java . lang . Class ) { return true ; }
org . junit . Assert . assertThat ( isisInterfaceState , org . hamcrest . CoreMatchers . is ( IsisInterfaceState . DOWN ) )
fromNumericCodeWorksWithExistingValuesExceptForUicFranc ( ) { for ( fr . marcwrobel . jbanking . IsoCurrency currency : fr . marcwrobel . jbanking . IsoCurrency . values ( ) ) { if ( currency != ( IsoCurrency . UIC_FRANC ) ) { "<AssertPlaceHolder>" ; } } } fromNumericCode ( java . lang . Integer ) { if ( code == null )...
org . junit . Assert . assertEquals ( currency , fr . marcwrobel . jbanking . IsoCurrency . fromNumericCode ( currency . getNumericCode ( ) ) )
testGetMenuItem ( ) { "<AssertPlaceHolder>" ; } getMenuItem ( ) { return menuItem ; }
org . junit . Assert . assertEquals ( item , menuItem . getMenuItem ( ) )
testRegExPattern ( ) { java . lang . String str = null ; java . lang . String regex = null ; java . util . regex . Pattern p = null ; java . util . regex . Matcher m = null ; str = "191.254.169.46||IPc986b1a0b0d88d5fb2629f||URL-2-2-3-y-h-r-t-7-.v32c-to-5-8w-0yc-tzl8-h2a-7f-ezc-oxt1-7-8y-0elh-be-3k-d.info||DOMAIN" ; reg...
org . junit . Assert . assertTrue ( m . matches ( ) )
test ( ) { org . reunionemu . jreunion . model . Quest quest = questDao . findById ( 1 ) ; "<AssertPlaceHolder>" ; } findById ( int ) { for ( org . reunionemu . jreunion . model . Quest quest : quests ) { if ( ( quest . getId ( ) ) == id ) { return quest ; } } throw new java . lang . IllegalStateException ( ( ( "Quest<...
org . junit . Assert . assertNotNull ( quest )
testOptions1 ( ) { ch . qos . logback . core . pattern . parser . Parser < java . lang . Object > p = new ch . qos . logback . core . pattern . parser . Parser ( "%45x{a,<sp>b}" ) ; ch . qos . logback . core . pattern . parser . Node t = p . parse ( ) ; ch . qos . logback . core . pattern . parser . SimpleKeywordNode w...
org . junit . Assert . assertEquals ( witness , t )
testEncryptDecryptRSA15WrapA128CBCHS256 ( ) { final java . lang . String specPlainText = "Live<sp>long<sp>and<sp>prosper." ; java . security . interfaces . RSAPublicKey publicKey = org . apache . cxf . rt . security . crypto . CryptoUtils . getRSAPublicKey ( org . apache . cxf . rs . security . jose . jwe . JweCompactR...
org . junit . Assert . assertEquals ( specPlainText , decryptedText )
testBuildWithDisabledStatusConstraint ( ) { unit . setActive ( false ) ; org . lnu . is . domain . enrolment . status . EnrolmentStatus context = new org . lnu . is . domain . enrolment . status . EnrolmentStatus ( ) ; java . lang . String expectedQuery = "SELECT<sp>e<sp>FROM<sp>EnrolmentStatus<sp>e<sp>WHERE<sp>e.crtUs...
org . junit . Assert . assertEquals ( expectedQuery , actualQuery )
testLogout ( ) { org . apache . jackrabbit . oak . spi . security . authentication . AbstractLoginModule loginModule = org . apache . jackrabbit . oak . spi . security . authentication . AbstractLoginModuleTest . initLoginModule ( org . apache . jackrabbit . oak . spi . security . authentication . AbstractLoginModuleTe...
org . junit . Assert . assertFalse ( loginModule . logout ( ) )
testMultipleDefeats ( ) { org . kie . api . runtime . KieSession kSession = getSession ( "org/drools/compiler/beliefsystem/defeasible/multiDefeat.drl" ) ; kSession . fireAllRules ( ) ; org . drools . core . common . TruthMaintenanceSystem tms = ( ( org . drools . core . common . NamedEntryPoint ) ( kSession . getEntryP...
org . junit . Assert . assertEquals ( 2 , kSession . getObjects ( ) . size ( ) )
testMonitoringTrue ( ) { com . sun . enterprise . universal . xml . MiniXmlParser instance = new com . sun . enterprise . universal . xml . MiniXmlParser ( com . sun . enterprise . universal . xml . MiniXmlParserTest . monitoringTrue , "server" ) ; "<AssertPlaceHolder>" ; } isMonitoringEnabled ( ) { org . glassfish . f...
org . junit . Assert . assertTrue ( instance . isMonitoringEnabled ( ) )
testNN_AtmCorrCheckOutputNode ( ) { int numNodesInput = 18 ; int numNodesOutput = 10 ; int checkOutputNode = org . esa . s3tbx . fub . wew . util . NN_CHL . compute ( in , numNodesInput , out , numNodesOutput , width , mask , 0 , a ) ; "<AssertPlaceHolder>" ; } compute ( float [ ] [ ] , int , float [ ] [ ] , int , int ...
org . junit . Assert . assertEquals ( ( - 2 ) , checkOutputNode )
shipmentViolationAtStart_shouldWork ( ) { buildAnotherScenarioWithOnlyOneVehicleAndWithoutAnyConstraintsBefore ( ) ; com . graphhopper . jsprit . core . analysis . SolutionAnalyser analyser = new com . graphhopper . jsprit . core . analysis . SolutionAnalyser ( vrp , solution , vrp . getTransportCosts ( ) ) ; com . gra...
org . junit . Assert . assertFalse ( violation )
testRepeatedOr ( ) { org . opengis . filter . expression . PropertyName p = ff . property ( "prop" ) ; org . opengis . filter . Or orFilter = ff . or ( java . util . Arrays . asList ( ff . equal ( p , ff . literal ( "zero" ) , true ) , ff . equal ( p , ff . literal ( "one" ) , true ) , ff . equal ( p , ff . literal ( "...
org . junit . Assert . assertEquals ( expected , nhResult )
testStore ( ) { for ( org . springframework . context . ApplicationContext context : AppContextSetup . contextList ) { org . apache . taverna . reference . ListDao dao = ( ( org . apache . taverna . reference . ListDao ) ( context . getBean ( "testListDao" ) ) ) ; org . apache . taverna . reference . impl . T2Reference...
org . junit . Assert . assertNotNull ( dao . get ( r ) )
GetBestMatchWithNoDriver ( ) { org . osgi . service . device . Match match = m_matcherImpl . getBestMatch ( ) ; "<AssertPlaceHolder>" ; } getBestMatch ( ) { if ( m_map . isEmpty ( ) ) { return null ; } int matchValue = m_map . lastKey ( ) ; java . util . List < org . apache . felix . das . DriverAttributes > das = m_ma...
org . junit . Assert . assertNull ( match )
doNotDeleteNewSlaveIfInstanceRequired ( ) { jenkins . plugins . openstack . compute . JCloudsCloud cloud = j . configureSlaveLaunchingWithFloatingIP ( j . dummyCloud ( j . dummySlaveTemplate ( j . defaultSlaveOptions ( ) . getBuilder ( ) . retentionTime ( 0 ) . instancesMin ( 1 ) . build ( ) , "label" ) ) ) ; jenkins ....
org . junit . Assert . assertFalse ( computer . isPendingDelete ( ) )
shouldAllowEmptyNamespaceUriInConstructor ( ) { name = new org . modeshape . jcr . value . basic . BasicName ( "" , validLocalName ) ; "<AssertPlaceHolder>" ; } getNamespaceUri ( ) { return namespaceUri ; }
org . junit . Assert . assertThat ( name . getNamespaceUri ( ) , org . hamcrest . core . Is . is ( "" ) )
getWhenBlocks ( ) { com . alibaba . citrus . service . pipeline . Pipeline [ ] pipelines = new com . alibaba . citrus . service . pipeline . Pipeline [ ] { createPipeline ( ) , createPipeline ( ) } ; valve . setWhenBlocks ( pipelines ) ; "<AssertPlaceHolder>" ; } getWhenBlocks ( ) { com . alibaba . citrus . service . p...
org . junit . Assert . assertArrayEquals ( pipelines , valve . getWhenBlocks ( ) )
deleteNotExistingId ( ) { com . ebay . cloud . cms . model . raptor_paas . ApplicationService deleteServ = new com . ebay . cloud . cms . model . raptor_paas . ApplicationService ( ) ; deleteServ . set_id ( "invalid-oid" ) ; com . ebay . cloud . cms . typsafe . service . CMSClientServiceTest . raptorService . delete ( ...
org . junit . Assert . assertNull ( entity )
getGroupMembersCount ( ) { System . out . println ( ( ( cz . metacentrum . perun . core . entry . GroupsManagerEntryIntegrationTest . CLASS_NAME ) + "getGroupMembersCount" ) ) ; vo = setUpVo ( ) ; setUpGroup ( vo ) ; cz . metacentrum . perun . core . api . Member member = setUpMember ( vo ) ; groupsManager . addMember ...
org . junit . Assert . assertTrue ( ( count == 1 ) )
testSadPath ( ) { ( ( com . krillsson . sysapi . core . metrics . rasbian . RaspbianLinuxInfoProviderTest . TestableRaspbianLinuxInfoProvider ) ( infoProvider ) ) . setCommandOutput ( "volt=NaNV" ) ; double voltage = infoProvider . cpuVoltage ( ) ; "<AssertPlaceHolder>" ; } cpuVoltage ( ) { java . lang . String vcgenCm...
org . junit . Assert . assertEquals ( 0.0 , voltage , 0.0 )
testCommitOnePhase ( ) { com . arjuna . ats . internal . jts . orbspecific . ControlImple cont = new com . arjuna . ats . internal . jts . orbspecific . ControlImple ( null , null ) ; org . omg . CosTransactions . Control theControl = cont . getControl ( ) ; com . arjuna . ats . internal . jts . orbspecific . coordinat...
org . junit . Assert . assertTrue ( ( ( act . type ( ) ) != null ) )
testStopInstance_Null ( ) { org . easymock . EasyMock . expect ( computeRpcMock . stop ( com . google . cloud . compute . deprecated . ComputeImplTest . INSTANCE_ID . getZone ( ) , com . google . cloud . compute . deprecated . ComputeImplTest . INSTANCE_ID . getInstance ( ) , com . google . cloud . compute . deprecated...
org . junit . Assert . assertNull ( compute . stop ( com . google . cloud . compute . deprecated . ComputeImplTest . INSTANCE_ID ) )
newInstance_cmd ( ) { java . io . File cmd = putExec ( "bin/hadoop" ) ; create ( "conf/hadoop-env.sh" ) ; putConf ( "conf/core-site.xml" ) ; java . util . Map < java . lang . String , java . lang . String > envp = new java . util . HashMap ( ) ; envp . put ( "HADOOP_CMD" , cmd . getAbsolutePath ( ) ) ; org . apache . h...
org . junit . Assert . assertThat ( isLoaded ( conf ) , is ( true ) )
resetPropertyValueOnResourceRelationForContextShouldThrowExceptionWhenWhenResourceUpdatePermissionIsMissing ( ) { java . lang . String resourceGroupName = "resourceGroupName" ; java . lang . String releaseName = "releaseName" ; java . lang . String relatedResourceGroupName = "relatedResourceGroupName" ; java . lang . S...
org . junit . Assert . assertFalse ( properties . isEmpty ( ) )
testAddAll ( ) { inventory . clear ( ) ; inventory . addAll ( items ) ; "<AssertPlaceHolder>" ; } containsAll ( java . util . Collection ) { java . util . Iterator < ? > i = objects . iterator ( ) ; while ( i . hasNext ( ) ) { if ( ! ( contains ( i . next ( ) ) ) ) { return false ; } } return true ; }
org . junit . Assert . assertTrue ( inventory . containsAll ( items ) )
testWriteMBeanQuery ( ) { com . ibm . ws . jmx . connector . datatypes . MBeanQuery mBean = new com . ibm . ws . jmx . connector . datatypes . MBeanQuery ( ) ; java . io . ByteArrayOutputStream out = new java . io . ByteArrayOutputStream ( ) ; java . lang . StringBuilder str = new java . lang . StringBuilder ( ) ; try ...
org . junit . Assert . assertEquals ( out . toString ( ) , str . toString ( ) )
testGetKey ( ) { "<AssertPlaceHolder>" ; } getApnsKey ( ) { return com . turo . pushy . apns . auth . ApnsVerificationKey . loadFromInputStream ( this . getClass ( ) . getResourceAsStream ( "/token-auth-public-key.p8" ) , "Team<sp>ID" , "Key<sp>ID" ) ; }
org . junit . Assert . assertNotNull ( this . getApnsKey ( ) . getKey ( ) )
testGetSignalKillCommand ( ) { java . lang . String anyPid = "9999" ; int anySignal = 9 ; java . lang . String [ ] checkProcessAliveCommand = getSignalKillCommand ( anySignal , anyPid ) ; java . lang . String [ ] expectedCommand ; if ( org . apache . hadoop . util . Shell . Shell . WINDOWS ) { expectedCommand = new jav...
org . junit . Assert . assertArrayEquals ( expectedCommand , checkProcessAliveCommand )
testMinAtRangeInclusive ( ) { parameter . setMinimumValue ( 0 , true ) ; parameter . configure ( org . apache . flink . api . java . utils . ParameterTool . fromArgs ( new java . lang . String [ ] { "--test" , "0" } ) ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return value ; }
org . junit . Assert . assertEquals ( new java . lang . Double ( 0 ) , parameter . getValue ( ) )
testAsymmetricEncryptionNoKeyValue ( ) { org . apache . camel . support . jsse . KeyStoreParameters tsParameters = new org . apache . camel . support . jsse . KeyStoreParameters ( ) ; tsParameters . setPassword ( "password" ) ; tsParameters . setResource ( "sender.ts" ) ; final org . apache . camel . dataformat . xmlse...
org . junit . Assert . assertTrue ( ( ( nodeList . getLength ( ) ) == 0 ) )
shouldReturnFeatureEnabledGivenFeatureWithDayOfWeekEvaluatesToTrue ( ) { java . lang . reflect . Method method = org . flips . fixture . TestClientFlipAnnotationsWithAnnotationsOnMethod . class . getMethod ( "featureWithDayOfWeekConditionBasedAnnotation" ) ; boolean result = flipAnnotationsStore . isFeatureEnabled ( me...
org . junit . Assert . assertEquals ( true , result )
testPartialRadixSortSortsKeysCorrectly ( ) { int key1 = 1 << 16 ; int key2 = 1 << 17 ; int [ ] data = new int [ ] { key2 | 25 , key1 | 1 , 0 , key2 | 10 , 25 , key1 | 10 , key1 , 10 } ; int [ ] expected = new int [ ] { 0 , 25 , 10 , key1 | 1 , key1 | 10 , key1 , key2 | 25 , key2 | 10 } ; int [ ] test = java . util . Ar...
org . junit . Assert . assertArrayEquals ( expected , test )
testGetUserDefinedTags ( ) { java . util . Map < java . lang . String , java . lang . String > instanceTemplateTags = com . google . common . collect . ImmutableMap . < java . lang . String , java . lang . String > builder ( ) . put ( "t1" , "v1" ) . put ( "t2" , "v2" ) . build ( ) ; com . cloudera . director . spi . v...
org . junit . Assert . assertEquals ( new java . util . HashSet ( java . util . Arrays . asList ( com . cloudera . director . aws . AbstractAWSTagHelperTest . createTestTag ( "t1" , "v1" ) , com . cloudera . director . aws . AbstractAWSTagHelperTest . createTestTag ( "t2" , "v2" ) ) ) , userDefinedTags )
insert ( ) { io . confluent . connect . jdbc . util . TableId customers = tableId ( "customers" ) ; java . lang . String expected = "INSERT<sp>INTO<sp>`customers`(`age`,`firstName`,`lastName`)<sp>VALUES(?,?,?)" ; java . lang . String sql = dialect . buildInsertStatement ( customers , columns ( customers ) , columns ( c...
org . junit . Assert . assertEquals ( expected , sql )
whenNotPresent ( ) { final org . apache . isis . applib . fixturescripts . FixtureScript . ExecutionContext executionContext = new org . apache . isis . applib . fixturescripts . FixtureScript . ExecutionContext ( ( ( java . lang . String ) ( null ) ) , null ) ; executionContext . setParameterIfNotPresent ( "foo" , "ba...
org . junit . Assert . assertThat ( executionContext . getParameter ( "foo" ) , org . hamcrest . CoreMatchers . is ( "bar" ) )
testTellInsertsSentence ( ) { kb . tell ( "(A<sp>&<sp>B)" ) ; "<AssertPlaceHolder>" ; } size ( ) { return sentences . size ( ) ; }
org . junit . Assert . assertEquals ( 1 , kb . size ( ) )
createDynamicModule ( ) { de . devsurf . injection . guice . scanner . StartupModule startup = de . devsurf . injection . guice . scanner . StartupModule . create ( de . devsurf . injection . guice . scanner . asm . ASMClasspathScanner . class , de . devsurf . injection . guice . scanner . PackageFilter . create ( de ....
org . junit . Assert . assertNotNull ( injector )
whenBuildingTypeJustByCallingNewInstance_capMustBeCorrect ( ) { com . graphhopper . jsprit . core . problem . vehicle . VehicleTypeImpl type = VehicleTypeImpl . Builder . newInstance ( "foo" ) . build ( ) ; "<AssertPlaceHolder>" ; } getCapacityDimensions ( ) { return capacityDimensions ; }
org . junit . Assert . assertEquals ( 0 , type . getCapacityDimensions ( ) . get ( 0 ) )
throwsIfRequestBodyForGet ( ) { boolean caught = false ; java . lang . String url = "https://jsoup.org" ; try { org . jsoup . nodes . Document doc = org . jsoup . Jsoup . connect ( url ) . requestBody ( "fail" ) . get ( ) ; } catch ( java . lang . IllegalArgumentException e ) { caught = true ; } "<AssertPlaceHolder>" ;...
org . junit . Assert . assertTrue ( caught )
shouldConcatSomethingAndNoneToSomething ( ) { "<AssertPlaceHolder>" ; } of ( double , double [ ] ) { double limit = java . util . stream . DoubleStream . of ( limits ) . filter ( ( l ) -> l > 0.0 ) . min ( ) . orElse ( Double . POSITIVE_INFINITY ) ; return java . lang . Double . isFinite ( limit ) ? new org . dcache . ...
org . junit . Assert . assertThat ( org . dcache . pool . assumption . PerformanceCostAssumption . of ( 0 , 1 ) . and ( org . dcache . pool . assumption . Assumptions . none ( ) ) , org . hamcrest . CoreMatchers . is ( org . dcache . pool . assumption . PerformanceCostAssumption . of ( 0 , 1 ) ) )
test23PrefixPostfix_join_noresult3 ( ) { com . ebay . cloud . cms . query . service . QueryContext context = new com . ebay . cloud . cms . query . service . QueryContext ( raptorContext ) ; java . lang . String query = "Environment[@name<sp>in<sp>(\"EnvRaptor-invalid\")].applications[@archTier=\"app\"].services.runsOn...
org . junit . Assert . assertEquals ( 0 , result . getEntities ( ) . size ( ) )
testBackForwardCache ( ) { clickEditCancelEdition ( ) ; clickEditPageInWysiwyg ( ) ; waitForEditorToLoad ( ) ; typeText ( "123" ) ; getSelenium ( ) . goBack ( ) ; waitPage ( ) ; getSelenium ( ) . runScript ( "window.history.forward()" ) ; waitPage ( ) ; waitForEditorToLoad ( ) ; "<AssertPlaceHolder>" ; } getRichTextAre...
org . junit . Assert . assertEquals ( "123" , getRichTextArea ( ) . getText ( ) )