input
stringlengths 28
18.7k
| output
stringlengths 39
1.69k
|
|---|---|
testListByInstrumentId ( ) { java . util . List < uk . ac . bbsrc . tgac . miso . core . data . ServiceRecord > list = dao . listByInstrumentId ( 1L ) ; "<AssertPlaceHolder>" ; } size ( ) { return map . size ( ) ; }
|
org . junit . Assert . assertEquals ( 2 , list . size ( ) )
|
equalsIsRelexive ( ) { org . milyn . payload . Export export = new org . milyn . payload . Export ( java . lang . String . class ) ; "<AssertPlaceHolder>" ; }
|
org . junit . Assert . assertEquals ( export , export )
|
testVarargsCallWithParameter ( ) { com . sun . jna . platform . win32 . COM . util . ProxyObjectObjectFactory_Test . MsWordApp comObj = this . factory . createObject ( com . sun . jna . platform . win32 . COM . util . ProxyObjectObjectFactory_Test . MsWordApp . class ) ; com . sun . jna . platform . win32 . COM . util . ProxyObjectObjectFactory_Test . Documents documents = comObj . getDocuments ( ) ; com . sun . jna . platform . win32 . COM . util . ProxyObjectObjectFactory_Test . _Document myDocument = documents . Add ( ) ; java . lang . String path = new java . io . File ( "." ) . getAbsolutePath ( ) ; myDocument . SaveAs ( ( path + "\\abcdefg" ) , com . sun . jna . platform . win32 . COM . util . ProxyObjectObjectFactory_Test . WdSaveFormat . wdFormatPDF ) ; comObj . Quit ( ) ; boolean wasDeleted = new java . io . File ( "abcdefg.pdf" ) . delete ( ) ; "<AssertPlaceHolder>" ; } SaveAs ( java . lang . String , com . sun . jna . platform . win32 . WinDef . LONG ) { com . sun . jna . platform . win32 . Variant . VARIANT vtFileName = new com . sun . jna . platform . win32 . Variant . VARIANT ( FileName ) ; com . sun . jna . platform . win32 . Variant . VARIANT vtFileFormat = new com . sun . jna . platform . win32 . Variant . VARIANT ( FileFormat ) ; this . invokeNoReply ( "SaveAs" , this . getActiveDocument ( ) , vtFileName , vtFileFormat ) ; }
|
org . junit . Assert . assertTrue ( wasDeleted )
|
testReadingEmptyFile ( ) { java . io . File f = new java . io . File ( "src/test/resources/empty_sheet.xlsx" ) ; try ( org . apache . poi . ss . usermodel . Workbook wb = com . monitorjbl . xlsx . StreamingReader . builder ( ) . open ( f ) ) { java . util . Iterator < org . apache . poi . ss . usermodel . Row > iter = wb . getSheetAt ( 0 ) . iterator ( ) ; "<AssertPlaceHolder>" ; } } hasNext ( ) { return iterator . hasNext ( ) ; }
|
org . junit . Assert . assertThat ( iter . hasNext ( ) , org . hamcrest . core . Is . is ( false ) )
|
testAdministrativePrincipals ( ) { org . apache . jackrabbit . api . security . user . UserManager userMgr = getUserManager ( root ) ; org . apache . jackrabbit . api . security . user . Group gr = null ; try { gr = userMgr . createGroup ( "administrativePrincipalName" ) ; root . commit ( ) ; javax . jcr . security . AccessControlManager acMgr = getAccessControlManager ( root ) ; javax . jcr . security . AccessControlPolicy [ ] policies = acMgr . getPolicies ( gr . getPath ( ) ) ; "<AssertPlaceHolder>" ; } finally { root . refresh ( ) ; if ( gr != null ) { gr . remove ( ) ; } root . commit ( ) ; } } getPath ( ) { java . lang . StringBuilder path = new java . lang . StringBuilder ( "/" ) ; return com . google . common . base . Joiner . on ( '/' ) . appendTo ( path , nameQueue ) . toString ( ) ; }
|
org . junit . Assert . assertEquals ( 0 , policies . length )
|
testPubSub ( ) { final fi . nls . oskari . cache . JedisSubscriber sub = new fi . nls . oskari . cache . JedisSubscriber ( ) ; fi . nls . oskari . cache . JedisManager . subscribe ( sub , "test" ) ; java . lang . Long res = fi . nls . oskari . cache . JedisManager . publish ( "test" , "test<sp>message" ) ; "<AssertPlaceHolder>" ; } publish ( java . lang . String , java . lang . String ) { final redis . clients . jedis . Jedis jedis = fi . nls . oskari . cache . JedisManager . instance . getJedis ( ) ; if ( jedis == null ) return null ; try { return jedis . publish ( channel , message ) ; } catch ( redis . clients . jedis . exceptions . JedisConnectionException e ) { fi . nls . oskari . cache . JedisManager . log . error ( "Failed<sp>to<sp>publish<sp>on:" , channel , "returning<sp>broken<sp>connection..." ) ; fi . nls . oskari . cache . JedisManager . pool . returnBrokenResource ( jedis ) ; fi . nls . oskari . cache . JedisManager . log . error ( "Broken<sp>connection<sp>closed" ) ; return null ; } catch ( java . lang . Exception e ) { fi . nls . oskari . cache . JedisManager . log . error ( "Publishing<sp>on:" , channel , "failed<sp>miserably" ) ; return null ; } finally { fi . nls . oskari . cache . JedisManager . instance . returnJedis ( jedis ) ; } }
|
org . junit . Assert . assertTrue ( ( res == 1 ) )
|
testAllWithNewAxisAndInterval ( ) { org . nd4j . linalg . api . ndarray . INDArray arr = org . nd4j . linalg . factory . Nd4j . linspace ( 1 , 24 , 24 ) . reshape ( 4 , 2 , 3 ) ; org . nd4j . linalg . api . ndarray . INDArray assertion2 = org . nd4j . linalg . factory . Nd4j . create ( new double [ ] [ ] { new double [ ] { 7 , 8 , 9 } } ) . reshape ( 1 , 1 , 3 ) ; org . nd4j . linalg . api . ndarray . INDArray get2 = arr . get ( org . nd4j . linalg . indexing . NDArrayIndex . point ( 1 ) , newAxis ( ) , org . nd4j . linalg . indexing . NDArrayIndex . interval ( 0 , 1 ) ) ; "<AssertPlaceHolder>" ; } interval ( int , int ) { return org . nd4j . linalg . indexing . NDArrayIndex . interval ( begin , 1 , end , false ) ; }
|
org . junit . Assert . assertEquals ( assertion2 , get2 )
|
connectionStatusAll ( ) { populateConnection ( ) ; java . lang . String statusRequest = "connection:all:health,<sp>stats" ; org . apache . nifi . minifi . commons . status . FlowStatusReport actual = org . apache . nifi . minifi . status . StatusConfigReporter . getStatus ( mockFlowController , statusRequest , org . slf4j . LoggerFactory . getLogger ( org . apache . nifi . minifi . status . StatusConfigReporterTest . class ) ) ; org . apache . nifi . minifi . commons . status . FlowStatusReport expected = new org . apache . nifi . minifi . commons . status . FlowStatusReport ( ) ; expected . setErrorsGeneratingReport ( Collections . EMPTY_LIST ) ; addConnectionStatus ( expected , true , true ) ; "<AssertPlaceHolder>" ; } addConnectionStatus ( org . apache . nifi . minifi . commons . status . FlowStatusReport , boolean , boolean ) { org . apache . nifi . minifi . commons . status . connection . ConnectionStatusBean expectedConnectionStatus = new org . apache . nifi . minifi . commons . status . connection . ConnectionStatusBean ( ) ; expectedConnectionStatus . setId ( "connectionId" ) ; expectedConnectionStatus . setName ( "connectionName" ) ; if ( addHealth ) { org . apache . nifi . minifi . commons . status . connection . ConnectionHealth connectionHealth = new org . apache . nifi . minifi . commons . status . connection . ConnectionHealth ( ) ; connectionHealth . setQueuedCount ( 10 ) ; connectionHealth . setQueuedBytes ( 100 ) ; expectedConnectionStatus . setConnectionHealth ( connectionHealth ) ; } if ( addStats ) { org . apache . nifi . minifi . commons . status . connection . ConnectionStats expectedConnectionStats = new org . apache . nifi . minifi . commons . status . connection . ConnectionStats ( ) ; expectedConnectionStats . setInputCount ( 1 ) ; expectedConnectionStats . setInputBytes ( 2 ) ; expectedConnectionStats . setOutputCount ( 3 ) ; expectedConnectionStats . setOutputBytes ( 4 ) ; expectedConnectionStatus . setConnectionStats ( expectedConnectionStats ) ; } flowStatusReport . setConnectionStatusList ( java . util . Collections . singletonList ( expectedConnectionStatus ) ) ; }
|
org . junit . Assert . assertEquals ( expected , actual )
|
getContentType ( ) { io . vertx . core . MultiMap headers = io . vertx . core . MultiMap . caseInsensitiveMultiMap ( ) ; new mockit . Expectations ( ) { { clientRequest . headers ( ) ; result = headers ; } } ; request . addHeader ( HttpHeaders . CONTENT_TYPE , "ct" ) ; "<AssertPlaceHolder>" ; } getContentType ( ) { return this . vertxRequest . getHeader ( HttpHeaders . CONTENT_TYPE ) ; }
|
org . junit . Assert . assertEquals ( "ct" , request . getContentType ( ) )
|
testTableSuffix ( ) { com . j256 . ormlite . db . MysqlDatabaseType dbType = new com . j256 . ormlite . db . MysqlDatabaseType ( ) ; java . lang . String suffix = "ewfwefef" ; dbType . setCreateTableSuffix ( suffix ) ; java . lang . StringBuilder sb = new java . lang . StringBuilder ( ) ; dbType . appendCreateTableSuffix ( sb ) ; "<AssertPlaceHolder>" ; } toString ( ) { return "#" + ( hashCode ( ) ) ; }
|
org . junit . Assert . assertTrue ( sb . toString ( ) . contains ( suffix ) )
|
testConcatByteArraysByteArrays_SecondElementIsNull ( ) { byte [ ] array1 = new byte [ ] { ( ( byte ) ( 1 ) ) } ; byte [ ] array2 = null ; byte [ ] array3 = new byte [ ] { ( ( byte ) ( 2 ) ) } ; byte [ ] expected = new byte [ ] { ( ( byte ) ( 1 ) ) , ( ( byte ) ( 2 ) ) } ; byte [ ] result = de . persosim . simulator . utils . Utils . concatByteArrays ( array1 , array2 , array3 ) ; "<AssertPlaceHolder>" ; }
|
org . junit . Assert . assertArrayEquals ( expected , result )
|
testDismissCache_flip ( ) { org . roaringbitmap . FastRankRoaringBitmap fast = prepareFastWithComputedCache ( ) ; fast . flip ( 0 ) ; "<AssertPlaceHolder>" ; } isCacheDismissed ( ) { return ! ( cumulatedCardinalitiesCacheIsValid ) ; }
|
org . junit . Assert . assertTrue ( fast . isCacheDismissed ( ) )
|
testGetExpiringUser ( ) { org . hisp . dhis . user . User userA = createUser ( 'A' ) ; org . hisp . dhis . user . User userB = createUser ( 'B' ) ; org . hisp . dhis . user . User userC = createUser ( 'C' ) ; org . hisp . dhis . user . User userD = createUser ( 'D' ) ; org . hisp . dhis . user . UserCredentials credentialsA = createUserCredentials ( 'A' , userA ) ; org . hisp . dhis . user . UserCredentials credentialsB = createUserCredentials ( 'B' , userB ) ; org . hisp . dhis . user . UserCredentials credentialsC = createUserCredentials ( 'C' , userC ) ; org . hisp . dhis . user . UserCredentials credentialsD = createUserCredentials ( 'D' , userD ) ; credentialsB . setDisabled ( true ) ; credentialsD . setDisabled ( true ) ; userService . addUser ( userA ) ; userService . addUser ( userB ) ; userService . addUser ( userC ) ; userService . addUser ( userD ) ; userService . addUserCredentials ( credentialsA ) ; userService . addUserCredentials ( credentialsB ) ; userService . addUserCredentials ( credentialsC ) ; userService . addUserCredentials ( credentialsD ) ; java . util . List < org . hisp . dhis . user . User > users = userService . getExpiringUsers ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return messages . size ( ) ; }
|
org . junit . Assert . assertEquals ( 2 , users . size ( ) )
|
getSupportedMessage ( ) { org . openhab . binding . zwave . internal . protocol . commandclass . ZWaveMeterCommandClass cls = ( ( org . openhab . binding . zwave . internal . protocol . commandclass . ZWaveMeterCommandClass ) ( getCommandClass ( CommandClass . COMMAND_CLASS_METER ) ) ) ; org . openhab . binding . zwave . internal . protocol . transaction . ZWaveCommandClassTransactionPayload msg ; byte [ ] expectedResponseV1 = new byte [ ] { 50 , 3 } ; cls . setVersion ( 1 ) ; msg = cls . getSupportedMessage ( ) ; "<AssertPlaceHolder>" ; } getPayloadBuffer ( ) { return payload ; }
|
org . junit . Assert . assertTrue ( java . util . Arrays . equals ( msg . getPayloadBuffer ( ) , expectedResponseV1 ) )
|
whenUsingExecutorServiceAndFuture_thenCanWaitOnFutureResult ( ) { com . baeldung . threadpool . ExecutorService executorService = com . baeldung . threadpool . Executors . newFixedThreadPool ( 10 ) ; com . baeldung . threadpool . Future < java . lang . String > future = executorService . submit ( ( ) -> "Hello<sp>World" ) ; java . lang . String result = future . get ( ) ; "<AssertPlaceHolder>" ; } get ( ) { java . lang . StringBuilder stringBuilder = new java . lang . StringBuilder ( ) ; stringBuilder . append ( "Host:<sp>" ) . append ( java . net . InetAddress . getLocalHost ( ) . getHostName ( ) ) . append ( "<br/>" ) ; stringBuilder . append ( "IP:<sp>" ) . append ( java . net . InetAddress . getLocalHost ( ) . getHostAddress ( ) ) . append ( "<br/>" ) ; stringBuilder . append ( "Type:<sp>" ) . append ( "Travel<sp>Agency" ) . append ( "<br/>" ) ; return stringBuilder . toString ( ) ; }
|
org . junit . Assert . assertEquals ( "Hello<sp>World" , result )
|
testGetInvokedFieldWhenBuilderIsNull ( ) { final org . springframework . roo . classpath . layers . MemberTypeAdditions memberTypeAdditions = new org . springframework . roo . classpath . layers . MemberTypeAdditions ( null , "foo" , "foo()" , false , null ) ; "<AssertPlaceHolder>" ; } getInvokedField ( ) { if ( ( classOrInterfaceDetailsBuilder ) == null ) { return null ; } final java . util . List < org . springframework . roo . classpath . details . FieldMetadataBuilder > declaredFields = classOrInterfaceDetailsBuilder . getDeclaredFields ( ) ; switch ( declaredFields . size ( ) ) { case 0 : return null ; case 1 : return declaredFields . get ( 0 ) . build ( ) ; default : throw new java . lang . IllegalStateException ( ( "Multiple<sp>fields<sp>introduced<sp>for<sp>" + ( this ) ) ) ; } }
|
org . junit . Assert . assertNull ( memberTypeAdditions . getInvokedField ( ) )
|
testGetPaymentReferencesForType_NoHit ( ) { org . oscm . domobjects . OrganizationRefToPaymentType result = orgRef . getPaymentReferenceForType ( PaymentInfoType . CREDIT_CARD . name ( ) ) ; "<AssertPlaceHolder>" ; } getPaymentReferenceForType ( java . lang . String ) { for ( org . oscm . domobjects . OrganizationRefToPaymentType ortpt : getPaymentTypes ( ) ) { if ( paymentType . equals ( ortpt . getPaymentType ( ) . getPaymentTypeId ( ) ) ) { return ortpt ; } } return null ; }
|
org . junit . Assert . assertNull ( result )
|
testGetAll ( ) { java . util . List < cern . c2mon . server . common . equipment . Equipment > returnList = equipmentMapper . getAll ( ) ; "<AssertPlaceHolder>" ; } size ( ) { this . listLock . readLock ( ) . lock ( ) ; try { return list . size ( ) ; } finally { this . listLock . readLock ( ) . unlock ( ) ; } }
|
org . junit . Assert . assertTrue ( ( ( returnList . size ( ) ) > 0 ) )
|
testParseRemainingParametersNumPartitions ( ) { java . lang . String [ ] args = new java . lang . String [ ] { "--storageLevel" , "MEMORY_ONLY" , "--numPartitions" , "10" } ; com . thinkbiganalytics . spark . datavalidator . ValidatorConfiguration params = new com . thinkbiganalytics . spark . datavalidator . ValidatorConfiguration ( new java . lang . String [ ] { "targetDatabase" , "entity" , "partition" , "path-to-policy-file" } ) ; new com . beust . jcommander . JCommander ( params ) . parse ( args ) ; java . lang . Integer numRDDPartitions = params . getNumPartitions ( ) ; "<AssertPlaceHolder>" ; } getNumPartitions ( ) { return numPartitions ; }
|
org . junit . Assert . assertEquals ( "10" , java . lang . String . valueOf ( numRDDPartitions ) )
|
matchingDescendant_true_sameLength ( ) { T p = createPath ( ) ; "<AssertPlaceHolder>" ; } matchingDescendant ( com . redhat . lightblue . util . Path ) { int n = pattern . numSegments ( ) ; if ( n < ( numSegments ( ) ) ) { return prefix ( n ) . matches ( pattern ) ; } else if ( n == ( numSegments ( ) ) ) { return matches ( pattern ) ; } return false ; }
|
org . junit . Assert . assertTrue ( p . matchingDescendant ( new com . redhat . lightblue . util . Path ( p . toString ( ) ) ) )
|
shouldEchoBinaryFrameWithPayloadLength65536 ( ) { org . kaazing . netx . URLConnectionHelper helper = org . kaazing . netx . URLConnectionHelper . newInstance ( ) ; java . net . URI location = java . net . URI . create ( "ws://localhost:8080/path" ) ; org . kaazing . netx . ws . WsURLConnection connection = ( ( org . kaazing . netx . ws . WsURLConnection ) ( helper . openConnection ( location ) ) ) ; connection . setMaxFramePayloadLength ( 65536 ) ; java . io . OutputStream out = connection . getOutputStream ( ) ; java . io . InputStream in = connection . getInputStream ( ) ; byte [ ] writeBytes = new byte [ 65536 ] ; random . nextBytes ( writeBytes ) ; out . write ( writeBytes ) ; byte [ ] readBytes = new byte [ 65536 ] ; int offset = 0 ; int length = readBytes . length ; int bytesRead = 0 ; while ( ( bytesRead != ( - 1 ) ) && ( length > 0 ) ) { bytesRead = in . read ( readBytes , offset , length ) ; if ( bytesRead != ( - 1 ) ) { offset += bytesRead ; length -= bytesRead ; } } k3po . finish ( ) ; "<AssertPlaceHolder>" ; } read ( byte [ ] , int , int ) { return input . read ( b , off , len ) ; }
|
org . junit . Assert . assertArrayEquals ( writeBytes , readBytes )
|
testV8ScriptExecutionExceptionGetLineNumber ( ) { "<AssertPlaceHolder>" ; } getLineNumber ( ) { return lineNumber ; }
|
org . junit . Assert . assertEquals ( 4 , exception . getLineNumber ( ) )
|
testFloatParseFailure ( ) { java . lang . Float num = com . rometools . rome . io . impl . NumberParser . parseFloat ( "Non<sp>Float" ) ; "<AssertPlaceHolder>" ; } parseFloat ( java . lang . String ) { if ( null != str ) { try { return new java . lang . Float ( java . lang . Float . parseFloat ( str . trim ( ) ) ) ; } catch ( final java . lang . Exception e ) { } } return null ; }
|
org . junit . Assert . assertNull ( num )
|
shouldCheckEanUniquenessJustReturnTrueIfNewEanIsEmpty ( ) { java . lang . String oldVal = "123456" ; java . lang . String newVal = "" ; boolean isValid = productValidators . checkEanUniqueness ( dataDefinition , fieldDefinition , entity , oldVal , newVal ) ; "<AssertPlaceHolder>" ; verify ( entity , never ( ) ) . addError ( any ( com . qcadoo . model . api . FieldDefinition . class ) , anyString ( ) ) ; } checkEanUniqueness ( com . qcadoo . model . api . DataDefinition , com . qcadoo . model . api . FieldDefinition , com . qcadoo . model . api . Entity , java . lang . Object , java . lang . Object ) { java . lang . String ean = ( ( java . lang . String ) ( eanNewValue ) ) ; if ( ( org . apache . commons . lang3 . StringUtils . isEmpty ( ean ) ) || ( org . apache . commons . lang3 . ObjectUtils . equals ( eanOldValue , ean ) ) ) { return true ; } if ( productWithEanAlreadyExists ( productDD , ean ) ) { product . addError ( eanFieldDefinition , "qcadooView.validate.field.error.duplicated" ) ; return false ; } return true ; }
|
org . junit . Assert . assertTrue ( isValid )
|
testDynamicAddRule ( ) { java . lang . String str = ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "import<sp>" + ( org . drools . compiler . integrationtests . Misc2Test . A . class . getCanonicalName ( ) ) ) + "\n" ) + "<sp>$a<sp>:<sp>A(<sp>f2<sp>==<sp>1<sp>)\n" 0 ) + "<sp>$a<sp>:<sp>A(<sp>f1<sp>==<sp>1<sp>)\n" ) + "then\n" ) + "<sp>$a<sp>:<sp>A(<sp>f2<sp>==<sp>1<sp>)\n" 2 ) + "\n" ) + "rule<sp>r2<sp>when\n" ) + "<sp>$a<sp>:<sp>A(<sp>f2<sp>==<sp>1<sp>)\n" ) + "then\n" ) + "<sp>$a<sp>:<sp>A(<sp>f2<sp>==<sp>1<sp>)\n" 2 ) + "\n" ) + "rule<sp>r3<sp>when\n" ) + "<sp>$a<sp>:<sp>A(<sp>f3<sp>==<sp>1<sp>)" ) + "then\n" ) + "end" ; java . lang . String str2 = ( ( ( ( ( "import<sp>" + ( org . drools . compiler . integrationtests . Misc2Test . A . class . getCanonicalName ( ) ) ) + "\n" ) + "rule<sp>r4<sp>when\n" ) + "<sp>$a<sp>:<sp>A(<sp>f2<sp>==<sp>1<sp>)\n" 1 ) + "then\n" ) + "end" ; org . drools . core . impl . InternalKnowledgeBase kbase = ( ( org . drools . core . impl . InternalKnowledgeBase ) ( loadKnowledgeBaseFromString ( str ) ) ) ; org . kie . api . runtime . KieSession ksession = kbase . newKieSession ( ) ; org . kie . api . runtime . rule . FactHandle fh = ksession . insert ( new org . drools . compiler . integrationtests . Misc2Test . A ( 1 , 1 , 1 , 1 ) ) ; ksession . fireAllRules ( ) ; kbase . addPackages ( loadKnowledgePackagesFromString ( str2 ) ) ; ksession . fireAllRules ( ) ; ksession . insert ( new org . drools . compiler . integrationtests . Misc2Test . A ( 2 , 2 , 2 , 2 ) ) ; org . drools . core . reteoo . LeftTuple leftTuple = ( ( org . drools . core . common . DefaultFactHandle ) ( fh ) ) . getFirstLeftTuple ( ) ; org . drools . core . reteoo . ObjectTypeNode . Id letTupleOtnId = leftTuple . getInputOtnId ( ) ; leftTuple = leftTuple . getHandleNext ( ) ; while ( leftTuple != null ) { "<AssertPlaceHolder>" ; letTupleOtnId = leftTuple . getInputOtnId ( ) ; leftTuple = leftTuple . getHandleNext ( ) ; } } before ( org . drools . core . reteoo . ObjectTypeNode$Id ) { return ( otherId != null ) && ( ( ( otnId ) < ( otherId . otnId ) ) || ( ( ( otnId ) == ( otherId . otnId ) ) && ( ( id ) < ( otherId . id ) ) ) ) ; }
|
org . junit . Assert . assertTrue ( letTupleOtnId . before ( leftTuple . getInputOtnId ( ) ) )
|
testDeferredSubTypeConstructorBinding ( ) { final org . dummycreator . ClassBindings classBindings = new org . dummycreator . ClassBindings ( ) ; classBindings . add ( org . dummycreator . helperutils . TestChainBinding . B . class , new org . dummycreator . dummyfactories . ConstructorBasedFactory < org . dummycreator . helperutils . TestChainBinding . C > ( org . dummycreator . helperutils . TestChainBinding . C . class . getConstructor ( int . class ) ) ) ; final org . dummycreator . helperutils . TestChainBinding . B dummy = new org . dummycreator . dummyfactories . ClassBasedFactory < org . dummycreator . helperutils . TestChainBinding . B > ( org . dummycreator . helperutils . TestChainBinding . B . class ) . createDummy ( classBindings ) ; "<AssertPlaceHolder>" ; } createDummy ( org . dummycreator . ClassBindings ) { return createDummy ( null , new java . util . HashMap < java . lang . String , org . dummycreator . ClassUsageInfo < ? > > ( ) , classBindings , new java . util . ArrayList < java . lang . Exception > ( ) ) ; }
|
org . junit . Assert . assertEquals ( org . dummycreator . helperutils . TestChainBinding . C . class , dummy . getClass ( ) )
|
getDouble ( ) { final java . lang . Short value = 44 ; final io . trane . ndbc . value . ShortValue wrapper = new io . trane . ndbc . value . ShortValue ( value ) ; "<AssertPlaceHolder>" ; } getDouble ( ) { return new java . lang . Double ( get ( ) ) ; }
|
org . junit . Assert . assertEquals ( new java . lang . Double ( value ) , wrapper . getDouble ( ) )
|
create_should_generate_all_indels ( ) { htsjdk . samtools . SAMRecord r = Read ( 2 , 1 , "5M1D5M2I2D5M3I5M" ) ; r . setMappingQuality ( 40 ) ; java . util . List < au . edu . wehi . idsv . IndelEvidence > e = au . edu . wehi . idsv . IndelEvidence . create ( SES ( ) , 0 , r ) ; "<AssertPlaceHolder>" ; } size ( ) { org . junit . Assert . assertEquals ( 4 , jagged ( ) . size ( ) ) ; org . junit . Assert . assertEquals ( 2 , noalt ( ) . size ( ) ) ; }
|
org . junit . Assert . assertEquals ( 6 , e . size ( ) )
|
getCentralCaseForMedicationsForNonExistingPatient ( ) { final com . marand . thinkmed . medications . connector . data . object . MedicationsCentralCaseDto centralCaseForMedicationsDto = adtDataProvider . getCentralCaseForMedicationsDto ( "999" ) ; "<AssertPlaceHolder>" ; } getCentralCaseForMedicationsDto ( java . lang . String ) { return getHibernateTemplate ( ) . execute ( ( session ) -> { final java . lang . String latestEpisodeId = getPatientLatestEpisodeId ( patientId ) ; if ( latestEpisodeId == null ) { return null ; } return new com . marand . maf . core . hibernate . query . Hql ( ) . select ( com . marand . thinkmed . medications . connector . impl . local . provider . ExternalAliases . externalCentralCase . get ( "outpatient" ) , com . marand . thinkmed . medications . connector . impl . local . provider . ExternalAliases . externalCentralCase . get ( "externalId" ) , com . marand . thinkmed . medications . connector . impl . local . provider . ExternalAliases . externalCentralCase . get ( "effective" ) , com . marand . thinkmed . medications . connector . impl . local . provider . ExternalAliases . externalCareProvider . get ( "externalId" ) , com . marand . thinkmed . medications . connector . impl . local . provider . ExternalAliases . externalEpisode . get ( "externalId" ) , com . marand . thinkmed . medications . connector . impl . local . provider . ExternalAliases . externalCareProvider . get ( "name" ) ) . from ( com . marand . thinkmed . medications . connector . impl . local . provider . ExternalAliases . externalEpisode . innerJoin ( "centralCase" ) . as ( com . marand . thinkmed . medications . connector . impl . local . provider . ExternalAliases . externalCentralCase ) , com . marand . thinkmed . medications . connector . impl . local . provider . ExternalAliases . externalCentralCase . innerJoin ( "patient" ) . as ( com . marand . thinkmed . medications . connector . impl . local . provider . ExternalAliases . externalPatient ) , com . marand . thinkmed . medications . connector . impl . local . provider . ExternalAliases . externalEpisode . innerJoin ( "careProvider" ) . as ( com . marand . thinkmed . medications . connector . impl . local . provider . ExternalAliases . externalCareProvider ) ) . where ( com . marand . thinkmed . medications . connector . impl . local . provider . ExternalAliases . externalPatient . get ( "externalId" ) . eq ( patientId ) , com . marand . thinkmed . medications . connector . impl . local . provider . ExternalAliases . externalEpisode . get ( "externalId" ) . eq ( latestEpisodeId ) , permanentEntities ( com . marand . thinkmed . medications . connector . impl . local . provider . ExternalAliases . externalEpisode , com . marand . thinkmed . medications . connector . impl . local . provider . ExternalAliases . externalCentralCase ) . notDeleted ( ) ) . orderBy ( com . marand . thinkmed . medications . connector . impl . local . provider . ExternalAliases . externalCentralCase . get ( "effective.start" ) . desc ( ) ) . buildQuery ( session , . class ) . getSingleRowOrNull ( new TupleProcessor < com . marand . thinkmed . medications . connector . data . object . MedicationsCentralCaseDto > ( ) { @ java . lang . Override protected com . marand . thinkmed . medications . connector . data . object . MedicationsCentralCaseDto process ( final boolean hasNextTuple ) throws com . marand . maf . core . resultrow . ProcessingException { final boolean outpatient = next ( ) ; final java . lang . String centralCaseId = next ( ) ; final org . joda . time . Interval centralCaseEffective = next ( ) ; final java . lang . String episodeId = next ( ) ; final java . lang . String careProviderId = next ( ) ; final java . lang . String careProviderName = next ( ) ; final com . marand . thinkmed . medications . connector . data . object . MedicationsCentralCaseDto result = new com . marand . thinkmed . medications . connector . data . object . MedicationsCentralCaseDto ( ) ; result . setOutpatient ( outpatient ) ; result . setCentralCaseId ( centralCaseId ) ; result . setCentralCaseEffective ( centralCaseEffective ) ; result . setEpisodeId ( episodeId ) ; result . setCareProvider ( new com . marand . thinkmed . api . externals . data . object . NamedExternalDto ( careProviderId , careProviderName ) ) ; return result ; } } ) ; } ) ; }
|
org . junit . Assert . assertNull ( centralCaseForMedicationsDto )
|
getSwitchId ( ) { "<AssertPlaceHolder>" ; } getSwitchId ( ) { org . junit . Assert . assertEquals ( org . openkilda . messaging . command . Constants . switchId , org . openkilda . messaging . command . flow . BaseInstallFlowTest . flow . getSwitchId ( ) ) ; }
|
org . junit . Assert . assertEquals ( org . openkilda . messaging . command . Constants . switchId , org . openkilda . messaging . command . flow . BaseInstallFlowTest . flow . getSwitchId ( ) )
|
testPopulateColumnInfo ( ) { java . util . ArrayList < co . nubetech . hiho . mapreduce . lib . db . ColumnInfo > columnInfo = null ; try { java . lang . Class . forName ( "com.mysql.jdbc.Driver" ) . newInstance ( ) ; java . sql . Connection conn = java . sql . DriverManager . getConnection ( "jdbc:mysql://localhost:3306/hiho" , "root" , "newpwd" ) ; java . sql . PreparedStatement stmt = conn . prepareStatement ( "select<sp>*<sp>from<sp>employee" ) ; columnInfo = co . nubetech . hiho . mapreduce . lib . db . GenericDBWritable . populateColumnInfo ( stmt . getMetaData ( ) ) ; } catch ( java . lang . Exception e ) { e . printStackTrace ( ) ; } java . util . ArrayList < co . nubetech . hiho . mapreduce . lib . db . ColumnInfo > columnInfoActualValue = new java . util . ArrayList < co . nubetech . hiho . mapreduce . lib . db . ColumnInfo > ( ) ; columnInfoActualValue . add ( new co . nubetech . hiho . mapreduce . lib . db . ColumnInfo ( 0 , java . sql . Types . VARCHAR , "name" ) ) ; columnInfoActualValue . add ( new co . nubetech . hiho . mapreduce . lib . db . ColumnInfo ( 1 , java . sql . Types . BIGINT , "genderId" ) ) ; columnInfoActualValue . add ( new co . nubetech . hiho . mapreduce . lib . db . ColumnInfo ( 2 , java . sql . Types . BIGINT , "com.mysql.jdbc.Driver" 0 ) ) ; columnInfoActualValue . add ( new co . nubetech . hiho . mapreduce . lib . db . ColumnInfo ( 3 , java . sql . Types . VARCHAR , "designation" ) ) ; columnInfoActualValue . add ( new co . nubetech . hiho . mapreduce . lib . db . ColumnInfo ( 4 , java . sql . Types . VARCHAR , "department" ) ) ; columnInfoActualValue . add ( new co . nubetech . hiho . mapreduce . lib . db . ColumnInfo ( 5 , java . sql . Types . TIMESTAMP , "created" ) ) ; "<AssertPlaceHolder>" ; } toString ( ) { return ( ( ( ( "Column<sp>" + ( this . index ) ) + ",<sp>name<sp>" ) + ( this . name ) ) + ",<sp>type<sp>" ) + ( this . type ) ; }
|
org . junit . Assert . assertEquals ( columnInfoActualValue . toString ( ) , columnInfo . toString ( ) )
|
testRelease ( ) { org . eclipse . tycho . locking . facade . FileLocker locker = subject . getFileLocker ( newTestFile ( ) ) ; "<AssertPlaceHolder>" ; locker . release ( ) ; } isLocked ( ) { try { return lockFileLocation . isLocked ( ) ; } catch ( java . io . IOException e ) { throw new java . lang . RuntimeException ( e ) ; } }
|
org . junit . Assert . assertFalse ( locker . isLocked ( ) )
|
shouldRaiseNoConstraintViolationWithGroup ( ) { org . agoncal . book . javaee7 . chapter03 . ex21 . CD21 cd = new org . agoncal . book . javaee7 . chapter03 . ex21 . CD21 ( "Kind<sp>of<sp>Blue" , 12.5F ) ; cd . setDescription ( "Best<sp>Jazz<sp>CD<sp>ever" ) ; java . util . Set < org . agoncal . book . javaee7 . chapter03 . ex21 . ConstraintViolation < org . agoncal . book . javaee7 . chapter03 . ex21 . CD21 > > violations = org . agoncal . book . javaee7 . chapter03 . ex21 . CD21Test . validator . validate ( cd , org . agoncal . book . javaee7 . chapter03 . ex21 . PrintingCatalog . class ) ; "<AssertPlaceHolder>" ; } validate ( java . lang . String , java . lang . Integer ) { java . lang . Character lastDigit = number . charAt ( ( ( number . length ( ) ) - 1 ) ) ; return lastDigit . toString ( ) ; }
|
org . junit . Assert . assertEquals ( 0 , violations . size ( ) )
|
test001_toString ( ) { final java . lang . String x = "8367b0edc81df80e6b42eb1b71f783111224e058cb3da37894d065d2deb7ab0a" ; final org . eclipse . jgit . lfs . lib . LongObjectId oid = org . eclipse . jgit . lfs . lib . LongObjectId . fromString ( x ) ; "<AssertPlaceHolder>" ; } name ( ) { final char [ ] b = new char [ Constants . OBJECT_ID_STRING_LENGTH ] ; org . eclipse . jgit . lib . AnyObjectId . formatHexChar ( b , 0 , w1 ) ; if ( ( nibbles ) <= 8 ) return new java . lang . String ( b , 0 , nibbles ) ; org . eclipse . jgit . lib . AnyObjectId . formatHexChar ( b , 8 , w2 ) ; if ( ( nibbles ) <= 16 ) return new java . lang . String ( b , 0 , nibbles ) ; org . eclipse . jgit . lib . AnyObjectId . formatHexChar ( b , 16 , w3 ) ; if ( ( nibbles ) <= 24 ) return new java . lang . String ( b , 0 , nibbles ) ; org . eclipse . jgit . lib . AnyObjectId . formatHexChar ( b , 24 , w4 ) ; if ( ( nibbles ) <= 32 ) return new java . lang . String ( b , 0 , nibbles ) ; org . eclipse . jgit . lib . AnyObjectId . formatHexChar ( b , 32 , w5 ) ; return new java . lang . String ( b , 0 , nibbles ) ; }
|
org . junit . Assert . assertEquals ( x , oid . name ( ) )
|
complementIfBigWindow ( ) { net . time4j . range . IntervalCollection < net . time4j . PlainDate > coll = net . time4j . range . IntervalCollection . onDateAxis ( ) . plus ( net . time4j . range . DateInterval . parseISO ( "2011-01-01/2013-12-31" ) ) . plus ( net . time4j . range . DateInterval . parseISO ( "2014-06-30/2014-08-01" ) ) . plus ( net . time4j . range . DateInterval . parseISO ( "2014-09-01/2015-09-30" ) ) ; net . time4j . range . ChronoInterval < net . time4j . PlainDate > window = net . time4j . range . DateInterval . parseISO ( "2010-06-30/2015-12-31" ) ; net . time4j . range . IntervalCollection < net . time4j . PlainDate > expected = net . time4j . range . IntervalCollection . onDateAxis ( ) . plus ( net . time4j . range . DateInterval . parseISO ( "2010-06-30/2010-12-31" ) ) . plus ( net . time4j . range . DateInterval . parseISO ( "2014-01-01/2014-06-29" ) ) . plus ( net . time4j . range . DateInterval . parseISO ( "2014-08-02/2014-08-31" ) ) . plus ( net . time4j . range . DateInterval . parseISO ( "2015-10-01/2015-12-31" ) ) ; "<AssertPlaceHolder>" ; } withComplement ( net . time4j . range . ChronoInterval ) { if ( timeWindow . isEmpty ( ) ) { java . util . List < net . time4j . range . ChronoInterval < T > > zero = java . util . Collections . emptyList ( ) ; return this . create ( zero ) ; } net . time4j . range . ChronoInterval < T > window = this . adjust ( timeWindow ) ; net . time4j . range . IntervalCollection < T > coll = this . withFilter ( window ) ; if ( coll . isEmpty ( ) ) { return this . create ( java . util . Collections . singletonList ( window ) ) ; } net . time4j . range . Boundary < T > lower = window . getStart ( ) ; net . time4j . range . Boundary < T > upper = window . getEnd ( ) ; java . util . List < net . time4j . range . ChronoInterval < T > > gaps = new java . util . ArrayList ( ) ; T min = coll . getMinimum ( ) ; if ( min != null ) { if ( lower . isInfinite ( ) ) { this . addLeft ( gaps , min ) ; } else { T s = lower . getTemporal ( ) ; if ( lower . isOpen ( ) ) { s = this . getTimeLine ( ) . stepBackwards ( s ) ; if ( s == null ) { this . addLeft ( gaps , min ) ; } else { this . addLeft ( gaps , s , min ) ; } } else { this . addLeft ( gaps , s , min ) ; } } } gaps . addAll ( coll . withGaps ( ) . getIntervals ( ) ) ; T max = coll . getMaximum ( ) ; if ( max != null ) { T s = this . getTimeLine ( ) . stepForward ( max ) ; if ( s != null ) { net . time4j . range . Boundary < T > bs = net . time4j . range . Boundary . ofClosed ( s ) ; net . time4j . range . Boundary < T > be ; if ( upper . isInfinite ( ) ) { be = upper ; gaps . add ( this . newInterval ( bs , be ) ) ; } else if ( this . isCalendrical ( ) ) { if ( upper . isClosed ( ) ) { be = upper ; } else { T e = upper . getTemporal ( ) ; e = this . getTimeLine ( ) . stepBackwards ( e ) ; be = net . time4j . range . Boundary . ofClosed ( e ) ; } if ( ! ( this . isAfter ( s , be . getTemporal ( ) ) ) ) { gaps . add ( this . newInterval ( bs , be ) ) ; } } else { if ( upper . isOpen ( ) ) { be = upper ; } else { T e = upper . getTemporal ( ) ; e = this . getTimeLine ( ) . stepForward ( e ) ; if ( e == null ) { be = net . time4j . range . Boundary . infiniteFuture ( ) ; } else { be = net . time4j . range . Boundary . ofOpen ( e ) ; } } if ( this . isBefore ( s , be . getTemporal ( ) ) ) { gaps . add ( this . newInterval ( bs , be ) ) ; } } } } return this . create ( gaps ) ; }
|
org . junit . Assert . assertThat ( coll . withComplement ( window ) , org . hamcrest . CoreMatchers . is ( expected ) )
|
testObjectIntersectionOf ( ) { org . semanticweb . owlapi . model . OWLClassExpression desc = ObjectIntersectionOf ( clsA , clsB ) ; org . semanticweb . owlapi . model . OWLClassExpression neg = ObjectComplementOf ( desc ) ; org . semanticweb . owlapi . model . OWLClassExpression nnf = ObjectUnionOf ( ObjectComplementOf ( clsA ) , ObjectComplementOf ( clsB ) ) ; org . semanticweb . owlapi . model . OWLClassExpression comp = org . semanticweb . owlapi . api . test . axioms . NNFTestCase . getNNF ( neg ) ; "<AssertPlaceHolder>" ; } getNNF ( org . semanticweb . owlapi . model . OWLClassExpression ) { org . semanticweb . owlapi . util . NNF nnf = new org . semanticweb . owlapi . util . NNF ( df ) ; return classExpression . accept ( nnf . getClassVisitor ( ) ) ; }
|
org . junit . Assert . assertEquals ( nnf , comp )
|
testGetIntValue_3 ( ) { java . lang . String intStr = null ; int defaultVal = 1 ; int result = com . impetus . ankush . common . utils . ParserUtil . getIntValue ( intStr , defaultVal ) ; "<AssertPlaceHolder>" ; } getIntValue ( java . lang . String , int ) { int paramVal = 0 ; try { if ( ( intStr != null ) && ( ! ( intStr . equals ( "" ) ) ) ) { paramVal = java . lang . Integer . parseInt ( intStr ) ; } else { paramVal = defaultVal ; } } catch ( java . lang . NumberFormatException e ) { paramVal = defaultVal ; } return paramVal ; }
|
org . junit . Assert . assertEquals ( 1 , result )
|
testRandomValuesWriteRead ( ) { final int numElements = 100000 ; final java . util . ArrayDeque < org . apache . flink . testutils . serialization . types . SerializationTestType > reference = new java . util . ArrayDeque ( ) ; org . apache . flink . core . memory . DataOutputSerializer serializer = new org . apache . flink . core . memory . DataOutputSerializer ( 1 ) ; for ( org . apache . flink . testutils . serialization . types . SerializationTestType value : org . apache . flink . testutils . serialization . types . Util . randomRecords ( numElements ) ) { reference . add ( value ) ; try { value . write ( serializer ) ; } catch ( java . io . IOException e ) { e . printStackTrace ( ) ; org . junit . Assert . fail ( "Test<sp>encountered<sp>an<sp>unexpected<sp>exception." ) ; } } org . apache . flink . core . memory . DataInputDeserializer deserializer = new org . apache . flink . core . memory . DataInputDeserializer ( serializer . wrapAsByteBuffer ( ) ) ; for ( org . apache . flink . testutils . serialization . types . SerializationTestType expected : reference ) { try { org . apache . flink . testutils . serialization . types . SerializationTestType actual = expected . getClass ( ) . newInstance ( ) ; actual . read ( deserializer ) ; "<AssertPlaceHolder>" ; } catch ( java . lang . Exception e ) { e . printStackTrace ( ) ; org . junit . Assert . fail ( "Test<sp>encountered<sp>an<sp>unexpected<sp>exception." ) ; } } reference . clear ( ) ; } read ( byte [ ] ) { return read ( b , 0 , b . length ) ; }
|
org . junit . Assert . assertEquals ( expected , actual )
|
testUpdateFolder ( ) { server . setResponseBody ( new java . io . File ( "src/test/resources/updateFolder.json" ) ) ; com . smartsheet . api . models . Folder newFolder = new com . smartsheet . api . models . Folder . UpdateFolderBuilder ( ) . setName ( "New<sp>Name" ) . build ( ) ; com . smartsheet . api . models . Folder resultFolder = folderResource . updateFolder ( newFolder ) ; "<AssertPlaceHolder>" ; } getName ( ) { return workspaceName ; }
|
org . junit . Assert . assertEquals ( resultFolder . getName ( ) , newFolder . getName ( ) )
|
sort ( ) { org . zenoss . app . metricservice . MetricCalculator calc = new org . zenoss . app . metricservice . MetricCalculatorFactory ( ) . newInstance ( "rpn" ) ; java . lang . String in = "9,<sp>3,<sp>4,<sp>5,<sp>1,<sp>2,<sp>8,<sp>6,<sp>7,<sp>0,<sp>10,<sp>sort" ; double [ ] out = new double [ ] { 9 , 8 , 7 , 6 , 5 , 4 , 3 , 2 , 1 , 0 } ; calc . evaluate ( in ) ; org . zenoss . app . metricservice . calculators . rpn . Calculator rpn = ( ( org . zenoss . app . metricservice . calculators . rpn . Calculator ) ( calc ) ) ; for ( double anOut : out ) { "<AssertPlaceHolder>" ; } } pop ( ) { return stack . remove ( ( ( stack . size ( ) ) - 1 ) ) ; }
|
org . junit . Assert . assertEquals ( anOut , rpn . pop ( ) , 0.0 )
|
shouldNotRenderAttributesWhenNoDocAttrIsProvided ( ) { java . util . List < com . github . cukedoctor . api . model . Feature > features = new java . util . ArrayList ( ) ; features . add ( com . github . cukedoctor . util . builder . FeatureBuilder . instance ( ) . id ( "id" ) . name ( "name" ) . build ( ) ) ; java . lang . String document = com . github . cukedoctor . Cukedoctor . instance ( features ) . renderAttributes ( ) . getDocumentation ( ) . toString ( ) ; "<AssertPlaceHolder>" ; } toString ( ) { return markup ; }
|
org . junit . Assert . assertEquals ( "" , document )
|
isDubboEnabled ( ) { com . navercorp . pinpoint . plugin . dubbo . DubboConfiguration configuration = new com . navercorp . pinpoint . plugin . dubbo . DubboConfiguration ( config ) ; "<AssertPlaceHolder>" ; } isDubboEnabled ( ) { return dubboEnabled ; }
|
org . junit . Assert . assertFalse ( configuration . isDubboEnabled ( ) )
|
isExpiredTrue ( ) { long expirationLong = ( java . lang . System . currentTimeMillis ( ) ) + ( 1000 * 5 ) ; java . text . SimpleDateFormat sdf = new java . text . SimpleDateFormat ( "yyyy-MM-dd<sp>HH:mm:ss" ) ; sdf . setTimeZone ( java . util . TimeZone . getTimeZone ( "GMT" ) ) ; java . lang . String expirationStr = sdf . format ( new java . util . Date ( expirationLong ) ) ; java . lang . String ak = "ak" ; java . lang . String sk = "sk" ; java . lang . String token = "token" ; long duration = 6000L ; com . aliyuncs . auth . InstanceProfileCredentials credentials = new com . aliyuncs . auth . InstanceProfileCredentials ( ak , sk , token , expirationStr , duration ) ; "<AssertPlaceHolder>" ; } isExpired ( ) { long now = java . lang . System . currentTimeMillis ( ) ; return now >= ( ( expiration ) - ( refreshIntervalInMillSeconds ) ) ; }
|
org . junit . Assert . assertTrue ( credentials . isExpired ( ) )
|
analyze_knownFile ( ) { cruise . umple . util . SampleFileWriter . createFile ( "myapp.umple" , "" ) ; boolean answer = collector . analyze ( "p1" , "myapp.umple" ) ; "<AssertPlaceHolder>" ; }
|
org . junit . Assert . assertEquals ( true , answer )
|
testConvert ( ) { java . lang . Long id = 1L ; java . lang . String name = "name" ; java . lang . String abbrName = "abbrname" ; org . lnu . is . domain . asset . type . AssetType source = new org . lnu . is . domain . asset . type . AssetType ( ) ; source . setAbbrName ( abbrName ) ; source . setName ( name ) ; source . setId ( id ) ; org . lnu . is . resource . asset . type . AssetTypeResource expected = new org . lnu . is . resource . asset . type . AssetTypeResource ( ) ; expected . setAbbrName ( abbrName ) ; expected . setId ( id ) ; expected . setName ( name ) ; org . lnu . is . resource . asset . type . AssetTypeResource actual = unit . convert ( source ) ; "<AssertPlaceHolder>" ; } convert ( org . lnu . is . domain . admin . unit . AdminUnit ) { return convert ( source , new org . lnu . is . resource . adminunit . AdminUnitResource ( ) ) ; }
|
org . junit . Assert . assertEquals ( expected , actual )
|
testGeenStandaardGroep ( ) { soortAH = nl . bzk . brp . model . algemeen . stamgegeven . kern . SoortAdministratieveHandeling . VOLTREKKING_HUWELIJK_IN_BUITENLAND ; final java . util . List < nl . bzk . brp . model . basis . BerichtEntiteit > resultaat = brby0442 . voerRegelUit ( null , bouwHuwelijk ( null ) , actie , null ) ; "<AssertPlaceHolder>" ; } size ( ) { return elementen . size ( ) ; }
|
org . junit . Assert . assertEquals ( 0 , resultaat . size ( ) )
|
testInitDynAnyFromDynAny ( ) { java . lang . String msg ; org . jacorb . test . EmptyException type ; org . omg . CORBA . Any any = null ; org . omg . CORBA . TypeCode tc = null ; org . omg . DynamicAny . DynStruct dynAny = null ; org . omg . DynamicAny . DynStruct dynAny2 = null ; tc = org . jacorb . test . EmptyExceptionHelper . type ( ) ; dynAny = createDynAnyFromTypeCode ( tc ) ; type = new org . jacorb . test . EmptyException ( ) ; any = orb . create_any ( ) ; org . jacorb . test . EmptyExceptionHelper . insert ( any , type ) ; dynAny2 = createDynAnyFromAny ( any ) ; msg = "Failed<sp>to<sp>initialize<sp>a<sp>DynAny<sp>object<sp>from<sp>another<sp>DynAny<sp>" ; msg += "object<sp>using<sp>the<sp>DynAny::assign<sp>operation" ; try { dynAny . assign ( dynAny2 ) ; } catch ( java . lang . Throwable ex ) { org . junit . Assert . fail ( ( ( msg + ":<sp>" ) + ex ) ) ; } "<AssertPlaceHolder>" ; } equal ( java . lang . Object ) { if ( ( obj1 == null ) || ( ( current ) == null ) ) { throw new org . jacorb . collection . util . ObjectInvalid ( ) ; } check_object ( obj1 ) ; return ops . equal ( current , ( ( org . omg . CORBA . Any ) ( obj1 ) ) ) ; }
|
org . junit . Assert . assertTrue ( msg , dynAny . equal ( dynAny2 ) )
|
authenticateWithBadUsernamePassword ( ) { org . webbitserver . handler . authentication . InMemoryPasswordsTest . TestResultCallback callback = new org . webbitserver . handler . authentication . InMemoryPasswordsTest . TestResultCallback ( ) ; org . webbitserver . handler . authentication . InMemoryPasswords target = new org . webbitserver . handler . authentication . InMemoryPasswords ( ) ; target . authenticate ( null , "non" , "existent" , callback , null ) ; "<AssertPlaceHolder>" ; } getResult ( ) { return result ; }
|
org . junit . Assert . assertEquals ( false , callback . getResult ( ) )
|
mnsIssue2 ( ) { java . io . File wsdl = getCodegenQEDataFileInput ( "http://www.w3.org/2001/XMLSchema" 5 ) ; java . lang . String [ ] testArgs = new java . lang . String [ ] { "-servicename" , "TestService" , "-genType" , "WsdlConversionToMns" , "-wsdl" , wsdl . getAbsolutePath ( ) , "http://www.w3.org/2001/XMLSchema" 3 , destDir . getAbsolutePath ( ) , "http://www.w3.org/2001/XMLSchema" 6 , "http://www.w3.org/2001/XMLSchema" 1 , "http://www.w3.org/2001/XMLSchema" 4 , "COMMON" , "-bin" , binDir . getAbsolutePath ( ) , "-pr" , prDir . getAbsolutePath ( ) } ; performDirectCodeGen ( testArgs , binDir ) ; java . lang . String path = ( destDir . getAbsolutePath ( ) ) + "/gen-meta-src/META-INF/soa/services/wsdl/TestService_mns.wsdl" ; nsc . setNs2 ( "http://www.w3.org/2001/XMLSchema" ) ; org . w3c . dom . Node node = getNodeDetails ( nsc , "http://www.w3.org/2001/XMLSchema" 7 , path ) ; java . lang . String prefix = node . getPrefix ( ) ; "<AssertPlaceHolder>" ; } getPrefix ( ) { return getName ( ) . getPrefix ( ) ; }
|
org . junit . Assert . assertEquals ( prefix , "http://www.w3.org/2001/XMLSchema" 2 )
|
test ( ) { int httpPort = org . apache . axis2 . testutils . PortAllocator . allocatePort ( ) ; org . ops4j . pax . exam . ExamSystem system = org . ops4j . pax . exam . spi . DefaultExamSystem . create ( options ( url ( "link:classpath:com.sun.mail.javax.mail.link" 9 ) , url ( "link:classpath:org.apache.woden.core.link" 9 ) , url ( "link:classpath:com.sun.mail.javax.mail.link" 0 ) , url ( "link:classpath:org.apache.woden.core.link" 2 ) , url ( "link:classpath:com.sun.activation.javax.activation.link" 0 ) , url ( "link:classpath:com.sun.activation.javax.activation.link" ) , url ( "link:classpath:com.sun.mail.javax.mail.link" ) , url ( "link:classpath:org.apache.woden.core.link" 7 ) , url ( "link:classpath:com.sun.mail.javax.mail.link" 7 ) , url ( "link:classpath:org.apache.woden.core.link" 4 ) , url ( "link:classpath:com.sun.mail.javax.mail.link" 1 ) , url ( "link:classpath:org.apache.woden.core.link" 0 ) , url ( "link:classpath:org.apache.commons.io.link" ) , url ( "link:classpath:org.apache.servicemix.bundles.commons-httpclient.link" ) , url ( "link:classpath:com.sun.activation.javax.activation.link" 3 ) , url ( "link:classpath:com.sun.mail.javax.mail.link" 5 ) , url ( "link:classpath:com.sun.mail.javax.mail.link" 6 ) , url ( "link:classpath:org.apache.woden.core.link" 3 ) , url ( "link:classpath:org.apache.woden.core.link" ) , url ( "link:classpath:org.apache.ws.xmlschema.core.link" ) , url ( "link:classpath:com.sun.mail.javax.mail.link" 3 ) , url ( "link:classpath:com.sun.mail.javax.mail.link" 8 ) , url ( "link:classpath:com.sun.activation.javax.activation.link" 1 ) , provision ( bundle ( ) . add ( org . apache . axis2 . osgi . module . Handler1 . class ) . add ( org . apache . axis2 . osgi . module . Handler2 . class ) . add ( org . apache . axis2 . osgi . module . SimpleModule . class ) . add ( "link:classpath:com.sun.activation.javax.activation.link" 6 , OSGiTest . class . getResource ( "link:classpath:org.apache.woden.core.link" 1 ) ) . set ( org . osgi . framework . Constants . BUNDLE_SYMBOLICNAME , "link:classpath:com.sun.mail.javax.mail.link" 2 ) . set ( org . osgi . framework . Constants . DYNAMICIMPORT_PACKAGE , "link:classpath:org.apache.woden.core.link" 6 ) . build ( ) ) , provision ( bundle ( ) . add ( org . apache . axis2 . osgi . service . Activator . class ) . add ( org . apache . axis2 . osgi . service . Calculator . class ) . add ( org . apache . axis2 . osgi . service . Version . class ) . add ( "link:classpath:com.sun.activation.javax.activation.link" 5 , OSGiTest . class . getResource ( "link:classpath:org.apache.woden.core.link" 8 ) ) . set ( org . osgi . framework . Constants . BUNDLE_SYMBOLICNAME , "version.service" ) . set ( org . osgi . framework . Constants . BUNDLE_ACTIVATOR , org . apache . axis2 . osgi . service . Activator . class . getName ( ) ) . set ( org . osgi . framework . Constants . DYNAMICIMPORT_PACKAGE , "link:classpath:org.apache.woden.core.link" 6 ) . build ( ) ) , frameworkProperty ( "org.osgi.service.http.port" ) . value ( java . lang . String . valueOf ( httpPort ) ) ) ) ; org . ops4j . pax . exam . nat . internal . NativeTestContainer container = new org . ops4j . pax . exam . nat . internal . NativeTestContainer ( system , new org . apache . felix . framework . FrameworkFactory ( ) ) ; container . start ( ) ; try { org . apache . axiom . om . OMFactory factory = org . apache . axiom . om . OMAbstractFactory . getOMFactory ( ) ; org . apache . axiom . om . OMElement payload = factory . createOMElement ( "link:classpath:com.sun.activation.javax.activation.link" 4 , factory . createOMNamespace ( "link:classpath:org.apache.woden.core.link" 5 , "ns" ) ) ; org . apache . axis2 . client . Options options = new org . apache . axis2 . client . Options ( ) ; options . setTo ( new org . apache . axis2 . addressing . EndpointReference ( ( ( "link:classpath:com.sun.activation.javax.activation.link" 2 + httpPort ) + "/services/Version" ) ) ) ; org . apache . axis2 . client . ServiceClient serviceClient = new org . apache . axis2 . client . ServiceClient ( ) ; serviceClient . setOptions ( options ) ; org . apache . axiom . om . OMElement result = serviceClient . sendReceive ( payload ) ; "<AssertPlaceHolder>" ; OSGiTest . stopBundle ( OSGiTest . getAxis2Bundle ( container ) ) ; } finally { container . stop ( ) ; } } getLocalName ( ) { if ( ( state ) != ( org . apache . axis2 . util . StreamWrapper . STATE_INIT ) ) { return realReader . getLocalName ( ) ; } else { return null ; } }
|
org . junit . Assert . assertEquals ( "link:classpath:com.sun.mail.javax.mail.link" 4 , result . getLocalName ( ) )
|
testCookieForMissingCookie ( ) { final de . yourinspiration . jexpresso . core . HttpHeaders headers = new de . yourinspiration . jexpresso . core . DefaultHttpHeaders ( ) ; org . mockito . Mockito . when ( fullHttpRequest . headers ( ) ) . thenReturn ( headers ) ; final de . yourinspiration . jexpresso . core . Cookie cookie = requestImpl . cookie ( "testKey" ) ; "<AssertPlaceHolder>" ; } cookie ( de . yourinspiration . jexpresso . core . Cookie ) { fullHttpResponse . headers ( ) . add ( HttpHeaders . Names . SET_COOKIE , de . yourinspiration . jexpresso . core . ServerCookieEncoder . encode ( cookie ) ) ; }
|
org . junit . Assert . assertNull ( cookie )
|
testSimpleSerialzation ( ) { final itc4j . Stamp s = new itc4j . Stamp ( ) ; final java . lang . String js = itc4j . SerializationTest . json . writeValueAsString ( s ) ; final itc4j . Stamp ns = itc4j . SerializationTest . json . readValue ( js , itc4j . Stamp . class ) ; "<AssertPlaceHolder>" ; }
|
org . junit . Assert . assertEquals ( s , ns )
|
testNotComplete ( ) { org . mockito . Mockito . when ( mockProcessors . iterator ( ) . next ( ) . isComplete ( ) ) . thenReturn ( false ) ; "<AssertPlaceHolder>" ; } isComplete ( ) { return ( ( complete ) && ( ( worker ) != null ) ) && ( worker . isComplete ( ) ) ; }
|
org . junit . Assert . assertFalse ( processor . isComplete ( ) )
|
convertLongerFloatToStringTest ( ) { java . lang . String expected = "0.1234567" ; java . lang . String actual = com . itextpdf . svg . utils . SvgCssUtils . convertFloatToString ( 0.1234567F ) ; "<AssertPlaceHolder>" ; } convertFloatToString ( float ) { return java . lang . String . valueOf ( value ) ; }
|
org . junit . Assert . assertEquals ( expected , actual )
|
testMergeOfRangesAndSingleValues ( ) { org . antlr . v4 . runtime . misc . IntervalSet s = org . antlr . v4 . runtime . misc . IntervalSet . of ( 0 , 41 ) ; s . add ( 42 ) ; s . add ( 43 , 65534 ) ; java . lang . String expecting = "{0..65534}" ; java . lang . String result = s . toString ( ) ; "<AssertPlaceHolder>" ; } toString ( ) { return ( ( a ) + ".." ) + ( b ) ; }
|
org . junit . Assert . assertEquals ( expecting , result )
|
testDiscoverResources ( ) { java . util . Collection < org . apache . tuscany . sca . extensibility . ServiceDeclaration > descriptors = org . apache . tuscany . sca . extensibility . ContextClassLoaderServiceDiscovererTestCase . discover . getServiceDeclarations ( "/META-INF/services/org.apache.tuscany.sca.extensibility.test.TestInterface" ) ; "<AssertPlaceHolder>" ; } size ( ) { throw new java . lang . UnsupportedOperationException ( ) ; }
|
org . junit . Assert . assertEquals ( 3 , descriptors . size ( ) )
|
testIsTemporaryTableNeededToValidateUploadToTableRequest ( ) { org . sagebionetworks . repo . model . table . UploadToTableRequest request = new org . sagebionetworks . repo . model . table . UploadToTableRequest ( ) ; request . setTableId ( tableId ) ; "<AssertPlaceHolder>" ; } isTemporaryTableNeededToValidate ( org . sagebionetworks . repo . model . table . TableUpdateRequest ) { if ( change instanceof org . sagebionetworks . repo . model . table . TableSchemaChangeRequest ) { org . sagebionetworks . repo . model . table . TableSchemaChangeRequest schemaChange = ( ( org . sagebionetworks . repo . model . table . TableSchemaChangeRequest ) ( change ) ) ; return org . sagebionetworks . repo . manager . table . TableEntityManagerImpl . containsColumnUpdate ( schemaChange . getChanges ( ) ) ; } else if ( change instanceof org . sagebionetworks . repo . model . table . UploadToTableRequest ) { return false ; } else if ( change instanceof org . sagebionetworks . repo . model . table . AppendableRowSetRequest ) { return false ; } else { throw new java . lang . IllegalArgumentException ( ( "Unknown<sp>change<sp>type:<sp>" + ( change . getClass ( ) . getName ( ) ) ) ) ; } }
|
org . junit . Assert . assertFalse ( manager . isTemporaryTableNeededToValidate ( request ) )
|
runTestVirtualDispatch2 ( ) { soot . jimple . infoflow . results . InfoflowResults res = analyzeAPKFile ( "GeneralJava/VirtualDispatch2.apk" ) ; "<AssertPlaceHolder>" ; } size ( ) { return ( this . results ) == null ? 0 : this . results . size ( ) ; }
|
org . junit . Assert . assertEquals ( 2 , res . size ( ) )
|
testCreateTempDBInstance ( ) { try { com . fit2cloud . aliyun . rds . model . request . CreateTempDBInstanceRequest request = new com . fit2cloud . aliyun . rds . model . request . CreateTempDBInstanceRequest ( ) ; request . setDBInstanceId ( dBInstanceId ) ; java . lang . Integer backupId = 47707957 ; request . setBackupId ( backupId ) ; com . fit2cloud . aliyun . Response response = client . createTempDBInstance ( request ) ; System . out . println ( ( "testCreateTempDBInstance<sp>::<sp>" + ( new com . google . gson . Gson ( ) . toJson ( response ) ) ) ) ; "<AssertPlaceHolder>" ; } catch ( java . lang . Exception e ) { e . printStackTrace ( ) ; org . junit . Assert . fail ( e . getMessage ( ) ) ; } } createTempDBInstance ( com . fit2cloud . aliyun . rds . model . request . CreateTempDBInstanceRequest ) { return gson . fromJson ( request . execute ( "CreateTempDBInstance" , createTempDBInstanceRequest . toMap ( ) ) , com . fit2cloud . aliyun . rds . model . response . CreateTempDBInstanceResponse . class ) ; }
|
org . junit . Assert . assertTrue ( true )
|
emptyWhitelistShouldPreventAttack ( ) { java . lang . System . setProperty ( "notsoserial.whitelist" , "src/test/resources/whitelist.txt" ) ; org . kantega . notsoserial . WithAgentIT . attachAgent ( ) ; byte [ ] ser = java . nio . file . Files . readAllBytes ( java . nio . file . Paths . get ( "target" ) . resolve ( "bytes.ser" ) ) ; try { java . lang . System . setProperty ( "pwned" , "false" ) ; org . kantega . notsoserial . WithAgentIT . deserialize ( ser ) ; } catch ( java . lang . ClassCastException e ) { } catch ( java . lang . UnsupportedOperationException e ) { } "<AssertPlaceHolder>" ; } deserialize ( byte [ ] ) { java . io . ObjectInputStream stream = new java . io . ObjectInputStream ( new java . io . ByteArrayInputStream ( ser ) ) ; return stream . readObject ( ) ; }
|
org . junit . Assert . assertThat ( java . lang . System . getProperty ( "pwned" ) , org . hamcrest . CoreMatchers . is ( "false" ) )
|
nonPublicValueOf ( ) { com . pholser . util . properties . BindingUntypedMapsToTypedInterfacesTest . NonPublicValueOfHaver . Thing thing = new com . pholser . util . properties . BindingUntypedMapsToTypedInterfacesTest . NonPublicValueOfHaver . Thing ( ) ; java . util . Map < java . lang . String , java . lang . Object > items = new java . util . HashMap ( ) ; items . put ( "non.public.value.of" , thing ) ; com . pholser . util . properties . PropertyBinder < com . pholser . util . properties . BindingUntypedMapsToTypedInterfacesTest . NonPublicValueOfHaver > binder = com . pholser . util . properties . PropertyBinder . forType ( com . pholser . util . properties . BindingUntypedMapsToTypedInterfacesTest . NonPublicValueOfHaver . class ) ; com . pholser . util . properties . BindingUntypedMapsToTypedInterfacesTest . NonPublicValueOfHaver bound = binder . bind ( items ) ; "<AssertPlaceHolder>" ; } bind ( com . pholser . util . properties . PropertySource ) { return evaluate ( source ) ; }
|
org . junit . Assert . assertSame ( thing , bound . thing ( ) )
|
roundTripJson ( ) { final org . commonjava . indy . model . core . io . IndyObjectMapper mapper = new org . commonjava . indy . model . core . io . IndyObjectMapper ( true ) ; final org . commonjava . indy . pkg . npm . model . PackageMetadata metadata = new org . commonjava . indy . pkg . npm . model . PackageMetadata ( "test" ) ; final java . lang . String json = mapper . writeValueAsString ( metadata ) ; System . out . println ( json ) ; final org . commonjava . indy . pkg . npm . model . PackageMetadata result = mapper . readValue ( json , org . commonjava . indy . pkg . npm . model . PackageMetadata . class ) ; "<AssertPlaceHolder>" ; } getName ( ) { return getKey ( ) . toString ( ) ; }
|
org . junit . Assert . assertThat ( result . getName ( ) , org . hamcrest . CoreMatchers . equalTo ( metadata . getName ( ) ) )
|
testFetchByPrimaryKeysWithMultiplePrimaryKeysWhereNoPrimaryKeysExist ( ) { long pk1 = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; long pk2 = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; java . util . Set < java . io . Serializable > primaryKeys = new java . util . HashSet < java . io . Serializable > ( ) ; primaryKeys . add ( pk1 ) ; primaryKeys . add ( pk2 ) ; java . util . Map < java . io . Serializable , com . liferay . portal . kernel . model . UserNotificationDelivery > userNotificationDeliveries = _persistence . fetchByPrimaryKeys ( primaryKeys ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return _portalCacheListeners . isEmpty ( ) ; }
|
org . junit . Assert . assertTrue ( userNotificationDeliveries . isEmpty ( ) )
|
annotationNamesNull ( ) { com . navercorp . pinpoint . profiler . instrument . classreading . DefaultInternalClassMetadata classMetadata = new com . navercorp . pinpoint . profiler . instrument . classreading . DefaultInternalClassMetadata ( "java/lang/String" , "java/lang/Object" , java . util . Arrays . asList ( "java/lang/Comparable" , "java/lang/Serializable" ) , null , false , false , false , false ) ; "<AssertPlaceHolder>" ; } getAnnotationInternalNames ( ) { return this . annotationInternalNames ; }
|
org . junit . Assert . assertEquals ( 0 , classMetadata . getAnnotationInternalNames ( ) . size ( ) )
|
testDisableStagingWithStagedChildGroup ( ) { com . liferay . portal . kernel . model . Group parentGroup = com . liferay . portal . kernel . test . util . GroupTestUtil . addGroup ( ) ; com . liferay . portal . kernel . model . Group childGroup = com . liferay . portal . kernel . test . util . GroupTestUtil . addGroup ( parentGroup . getGroupId ( ) ) ; try { com . liferay . exportimport . kernel . service . StagingLocalServiceUtil . enableLocalStaging ( _user . getUserId ( ) , parentGroup , false , false , new com . liferay . portal . kernel . service . ServiceContext ( ) ) ; com . liferay . exportimport . kernel . service . StagingLocalServiceUtil . enableLocalStaging ( _user . getUserId ( ) , childGroup , false , false , new com . liferay . portal . kernel . service . ServiceContext ( ) ) ; com . liferay . exportimport . kernel . service . StagingLocalServiceUtil . disableStaging ( parentGroup , new com . liferay . portal . kernel . service . ServiceContext ( ) ) ; childGroup = com . liferay . portal . kernel . service . GroupLocalServiceUtil . getGroup ( childGroup . getGroupId ( ) ) ; com . liferay . portal . kernel . model . Group childGroupStagingGroup = childGroup . getStagingGroup ( ) ; "<AssertPlaceHolder>" ; } finally { com . liferay . portal . kernel . service . GroupLocalServiceUtil . deleteGroup ( childGroup . getGroupId ( ) ) ; com . liferay . portal . kernel . service . GroupLocalServiceUtil . deleteGroup ( parentGroup . getGroupId ( ) ) ; } } getParentGroupId ( ) { return _group . getParentGroupId ( ) ; }
|
org . junit . Assert . assertEquals ( childGroupStagingGroup . getParentGroupId ( ) , childGroup . getParentGroupId ( ) )
|
testDigestAuthenticationNoNonce ( ) { final org . apache . hc . core5 . http . HttpRequest request = new org . apache . hc . core5 . http . message . BasicHttpRequest ( "Simple" , "/" ) ; final org . apache . hc . core5 . http . HttpHost host = new org . apache . hc . core5 . http . HttpHost ( "somehost" , 80 ) ; final org . apache . hc . client5 . http . auth . AuthScope authScope = new org . apache . hc . client5 . http . auth . AuthScope ( host , "realm1" , null ) ; final org . apache . hc . client5 . http . impl . auth . BasicCredentialsProvider credentialsProvider = new org . apache . hc . client5 . http . impl . auth . BasicCredentialsProvider ( ) ; final org . apache . hc . client5 . http . auth . Credentials creds = new org . apache . hc . client5 . http . auth . UsernamePasswordCredentials ( "username" , "password" . toCharArray ( ) ) ; credentialsProvider . setCredentials ( authScope , creds ) ; final java . lang . String challenge = "Digest<sp>realm=\"realm1\",<sp>no-nonce=\"f2a3f18799759d4f1a1c068b92b573cb\"" ; final org . apache . hc . client5 . http . auth . AuthChallenge authChallenge = org . apache . hc . client5 . http . impl . auth . TestDigestScheme . parse ( challenge ) ; final org . apache . hc . client5 . http . impl . auth . DigestScheme authscheme = new org . apache . hc . client5 . http . impl . auth . DigestScheme ( ) ; authscheme . processChallenge ( authChallenge , null ) ; "<AssertPlaceHolder>" ; authscheme . generateAuthResponse ( host , request , null ) ; } isResponseReady ( org . apache . hc . core5 . http . HttpHost , org . apache . hc . client5 . http . auth . CredentialsProvider , org . apache . hc . core5 . http . protocol . HttpContext ) { org . apache . hc . core5 . util . Args . notNull ( host , "Auth<sp>host" ) ; org . apache . hc . core5 . util . Args . notNull ( credentialsProvider , "CredentialsProvider" ) ; final org . apache . hc . client5 . http . auth . Credentials credentials = credentialsProvider . getCredentials ( new org . apache . hc . client5 . http . auth . AuthScope ( host , getRealm ( ) , getName ( ) ) , context ) ; if ( credentials != null ) { this . username = credentials . getUserPrincipal ( ) . getName ( ) ; this . password = credentials . getPassword ( ) ; return true ; } this . username = null ; this . password = null ; return false ; }
|
org . junit . Assert . assertTrue ( authscheme . isResponseReady ( host , credentialsProvider , null ) )
|
getDestinationsCount ( ) { System . out . println ( ( ( cz . metacentrum . perun . core . entry . ServicesManagerEntryIntegrationTest . CLASS_NAME ) + "getDestinationsCount" ) ) ; service = setUpService ( ) ; facility = setUpFacility ( ) ; destination = setUpDestination ( ) ; perun . getServicesManager ( ) . addDestination ( sess , service , facility , destination ) ; int count = perun . getServicesManager ( ) . getDestinationsCount ( sess ) ; "<AssertPlaceHolder>" ; } getDestinationsCount ( cz . metacentrum . perun . core . api . PerunSession ) { try { return cz . metacentrum . perun . core . impl . ServicesManagerImpl . jdbc . queryForInt ( "select<sp>count(*)<sp>from<sp>destinations" ) ; } catch ( java . lang . RuntimeException ex ) { throw new cz . metacentrum . perun . core . api . exceptions . InternalErrorException ( ex ) ; } }
|
org . junit . Assert . assertTrue ( ( count > 0 ) )
|
returnsEnclosedResponseOnUnsuccessfulException ( ) { java . lang . Exception e = new org . fishwife . jrugged . httpclient . UnsuccessfulResponseException ( resp ) ; expect ( mockBackend . execute ( host , req , ctx ) ) . andThrow ( e ) ; replay ( mockBackend ) ; org . apache . http . HttpResponse result = impl . execute ( host , req , ctx ) ; verify ( mockBackend ) ; "<AssertPlaceHolder>" ; } execute ( org . apache . http . HttpHost , org . apache . http . HttpRequest , org . apache . http . protocol . HttpContext ) { org . apache . http . HttpResponse resp = backend . execute ( host , req , ctx ) ; if ( assessor . isFailure ( resp ) ) { throw new org . fishwife . jrugged . httpclient . UnsuccessfulResponseException ( resp ) ; } return resp ; }
|
org . junit . Assert . assertSame ( resp , result )
|
testEquals ( ) { org . gbif . api . model . checklistbank . SpeciesProfile sp1 = new org . gbif . api . model . checklistbank . SpeciesProfile ( ) ; sp1 . setHybrid ( true ) ; sp1 . setMassInGram ( 1000 ) ; sp1 . setHabitat ( "Tropical<sp>forest" ) ; org . gbif . api . model . checklistbank . SpeciesProfile sp2 = new org . gbif . api . model . checklistbank . SpeciesProfile ( ) ; sp2 . setHybrid ( true ) ; sp2 . setMassInGram ( 1000 ) ; sp2 . setHabitat ( "Tropical<sp>forest" ) ; "<AssertPlaceHolder>" ; } setHabitat ( java . lang . String ) { this . habitat = habitat ; }
|
org . junit . Assert . assertEquals ( sp1 , sp2 )
|
test_data_class_type_equals ( ) { java . time . Instant now = java . time . Instant . now ( ) ; com . github . kagkarlsson . scheduler . task . helper . OneTimeTask < java . lang . Integer > task = com . github . kagkarlsson . scheduler . TestTasks . oneTime ( "OneTime" , com . github . kagkarlsson . scheduler . Integer . class , ( instance , executionContext ) -> { } ) ; com . github . kagkarlsson . scheduler . task . Execution execution = new com . github . kagkarlsson . scheduler . task . Execution ( now , task . instance ( "id1" , new java . lang . Integer ( 1 ) ) ) ; com . github . kagkarlsson . scheduler . ScheduledExecution < java . lang . Integer > scheduledExecution = new com . github . kagkarlsson . scheduler . ScheduledExecution ( com . github . kagkarlsson . scheduler . Integer . class , execution ) ; "<AssertPlaceHolder>" ; } getData ( ) { if ( dataClass . isInstance ( this . execution . taskInstance . getData ( ) ) ) { return ( ( DATA_TYPE ) ( this . execution . taskInstance . getData ( ) ) ) ; } throw new com . github . kagkarlsson . scheduler . ScheduledExecution . DataClassMismatchException ( ) ; }
|
org . junit . Assert . assertEquals ( new java . lang . Integer ( 1 ) , scheduledExecution . getData ( ) )
|
testToJson ( ) { profile = new com . opera . core . systems . OperaProfile ( existingProfile ) ; java . lang . String json = profile . toJson ( ) . getString ( OperaProfile . BASE64_JSON_KEY ) ; new org . openqa . selenium . io . Zip ( ) . unzip ( json , temporaryProfile ) ; com . opera . core . systems . OperaProfile extractedProfile = new com . opera . core . systems . OperaProfile ( temporaryProfile . getPath ( ) ) ; "<AssertPlaceHolder>" ; } matchesProfile ( com . opera . core . systems . OperaProfile ) { return new org . hamcrest . BaseMatcher ( ) { public boolean matches ( java . lang . Object o ) { com . opera . core . systems . OperaProfile actual = ( ( com . opera . core . systems . OperaProfile ) ( o ) ) ; try { if ( ( expected . toJson ( ) . toString ( ) . equals ( actual . toJson ( ) . toString ( ) ) ) && ( ( expected . preferences ( ) . size ( ) ) == ( actual . preferences ( ) . size ( ) ) ) ) { return true ; } } catch ( java . io . IOException e ) { } return false ; } public void describeTo ( org . hamcrest . Description description ) { description . appendText ( expected . toString ( ) ) ; } } ; }
|
org . junit . Assert . assertThat ( profile , matchesProfile ( extractedProfile ) )
|
workbenchShellTest ( ) { org . eclipse . reddeer . swt . api . Shell shell = new org . eclipse . reddeer . workbench . impl . shell . WorkbenchShell ( ) ; "<AssertPlaceHolder>" ; } getText ( ) { java . lang . String text = org . eclipse . reddeer . core . handler . ShellHandler . getInstance ( ) . getText ( swtWidget ) ; return text ; }
|
org . junit . Assert . assertFalse ( shell . getText ( ) . equals ( "" ) )
|
sourceMappingInLiteralTest ( ) { final java . lang . String content = "function<sp>inlineSourceMap(sourceMap,<sp>sourceCode,<sp>sourceFilename)<sp>{\n" + ( ( ( ( ( ( ( ( ( ( ( "<sp>////#<sp>sourceMappingURL=url.js.map\n" + "<sp>//<sp>This<sp>can<sp>be<sp>used<sp>with<sp>a<sp>sourcemap<sp>that<sp>has<sp>already<sp>has<sp>toJSON<sp>called<sp>on<sp>it.\n" ) + "<sp>//<sp>Check<sp>first.\n" ) + "<sp>////#<sp>sourceMappingURL=url.js.map\n" 6 ) + "<sp>if<sp>(typeof<sp>sourceMap.toJSON<sp>===<sp>\'function\')<sp>{\n" ) + "<sp>json<sp>=<sp>sourceMap.toJSON();\n" ) + "<sp>}\n" ) + "<sp>////#<sp>sourceMappingURL=url.js.map\n" 2 ) + "<sp>json.sourcesContent<sp>=<sp>[sourceCode];\n" ) + "<sp>var<sp>base64<sp>=<sp>Buffer(JSON.stringify(json)).toString(\'base64\');\n" ) + "<sp>////#<sp>sourceMappingURL=url.js.map\n" 3 ) + "<sp>////#<sp>sourceMappingURL=url.js.map\n" 0 ) ; final java . util . concurrent . atomic . AtomicInteger count = new java . util . concurrent . atomic . AtomicInteger ( ) ; final com . github . wuic . nut . ConvertibleNut n = org . mockito . Mockito . mock ( com . github . wuic . nut . ConvertibleNut . class ) ; org . mockito . Mockito . when ( n . getName ( ) ) . thenReturn ( "foo.js" ) ; org . mockito . Mockito . when ( n . getNutType ( ) ) . thenReturn ( new com . github . wuic . NutType ( com . github . wuic . EnumNutType . JAVASCRIPT , java . nio . charset . Charset . defaultCharset ( ) . displayName ( ) ) ) ; org . mockito . Mockito . when ( n . getInitialName ( ) ) . thenReturn ( "foo.js" ) ; org . mockito . Mockito . when ( n . getInitialNutType ( ) ) . thenReturn ( new com . github . wuic . NutType ( com . github . wuic . EnumNutType . JAVASCRIPT , java . nio . charset . Charset . defaultCharset ( ) . displayName ( ) ) ) ; org . mockito . Mockito . when ( n . getSource ( ) ) . thenReturn ( new com . github . wuic . nut . SourceImpl ( ) ) ; org . mockito . Mockito . when ( n . getVersionNumber ( ) ) . thenReturn ( new com . github . wuic . util . FutureLong ( 1L ) ) ; final com . github . wuic . nut . dao . NutDao dao = org . mockito . Mockito . mock ( com . github . wuic . nut . dao . NutDao . class ) ; org . mockito . Mockito . when ( dao . create ( org . mockito . Mockito . anyString ( ) , org . mockito . Mockito . any ( com . github . wuic . ProcessContext . class ) ) ) . thenReturn ( java . util . Arrays . asList ( ( ( com . github . wuic . nut . Nut ) ( n ) ) ) ) ; final com . github . wuic . nut . NutsHeap h = new com . github . wuic . nut . NutsHeap ( this , java . util . Arrays . asList ( "<sp>////#<sp>sourceMappingURL=url.js.map\n" 1 ) , dao , "<sp>////#<sp>sourceMappingURL=url.js.map\n" 4 , new com . github . wuic . NutTypeFactory ( java . nio . charset . Charset . defaultCharset ( ) . displayName ( ) ) ) ; h . checkFiles ( com . github . wuic . test . engine . InspectorTest . processContext . getProcessContext ( ) ) ; final com . github . wuic . engine . EngineRequest r = new com . github . wuic . engine . EngineRequestBuilder ( "<sp>////#<sp>sourceMappingURL=url.js.map\n" 5 , h , org . mockito . Mockito . mock ( com . github . wuic . context . Context . class ) , new com . github . wuic . NutTypeFactory ( java . nio . charset . Charset . defaultCharset ( ) . displayName ( ) ) ) . build ( ) ; com . github . wuic . engine . core . SourceMapLineInspector . newInstance ( org . mockito . Mockito . mock ( com . github . wuic . engine . NodeEngine . class ) ) . inspect ( new com . github . wuic . engine . LineInspectorListener ( ) { @ com . github . wuic . test . engine . Override public void onMatch ( final char [ ] data , final int offset , final int length , final java . lang . String replacement , final java . util . List < ? extends com . github . wuic . nut . ConvertibleNut > extracted ) throws com . github . wuic . exception . WuicException { count . incrementAndGet ( ) ; } } , content . toCharArray ( ) , r , null , n ) ; "<AssertPlaceHolder>" ; } get ( ) { return adapt ( super . get ( ) ) ; }
|
org . junit . Assert . assertEquals ( 1 , count . get ( ) )
|
getOrders_shouldGetTheOrdersByCareSettingAndOrderType ( ) { org . openmrs . CareSetting outPatient = orderService . getCareSetting ( 1 ) ; java . util . List < org . openmrs . OrderType > orderTypes = new java . util . ArrayList ( ) ; orderTypes . add ( orderService . getOrderType ( 2 ) ) ; org . openmrs . parameter . OrderSearchCriteria orderSearchCriteria = new org . openmrs . parameter . OrderSearchCriteriaBuilder ( ) . setCareSetting ( outPatient ) . setOrderTypes ( orderTypes ) . build ( ) ; java . util . List < org . openmrs . Order > orders = orderService . getOrders ( orderSearchCriteria ) ; "<AssertPlaceHolder>" ; } size ( ) { return getMemberships ( ) . stream ( ) . filter ( ( m ) -> ! ( m . getVoided ( ) ) ) . collect ( java . util . stream . Collectors . toList ( ) ) . size ( ) ; }
|
org . junit . Assert . assertEquals ( 3 , orders . size ( ) )
|
checkProcessInstanceDataValue ( ) { final java . lang . String dataName = "var1" ; final org . bonitasoft . engine . bpm . process . DesignProcessDefinition processDef = new org . bonitasoft . engine . bpm . process . impl . ProcessDefinitionBuilder ( ) . createNewInstance ( org . bonitasoft . engine . process . PROCESS_NAME , org . bonitasoft . engine . process . PROCESS_VERSION ) . addActor ( org . bonitasoft . engine . process . ACTOR_NAME ) . addIntegerData ( dataName , new org . bonitasoft . engine . expression . ExpressionBuilder ( ) . createConstantIntegerExpression ( 1 ) ) . addUserTask ( "step1" , org . bonitasoft . engine . process . ACTOR_NAME ) . addAutomaticTask ( "step2" ) . addTransition ( "step1" , "step2" ) . getProcess ( ) ; final org . bonitasoft . engine . bpm . process . ProcessDefinition processDefinition = deployAndEnableProcessWithActor ( processDef , org . bonitasoft . engine . process . ACTOR_NAME , user ) ; final org . bonitasoft . engine . operation . Operation integerOperation = org . bonitasoft . engine . test . BuildTestUtil . buildIntegerOperation ( dataName , 2 ) ; final java . util . Map < java . lang . String , java . io . Serializable > context = new java . util . HashMap ( ) ; context . put ( "page" , "1" ) ; final long processDefinitionId = processDefinition . getId ( ) ; final org . bonitasoft . engine . bpm . process . ProcessInstance processInstance = getProcessAPI ( ) . startProcess ( processDefinitionId , java . util . Arrays . asList ( integerOperation ) , context ) ; final org . bonitasoft . engine . bpm . data . DataInstance dataInstance = getProcessAPI ( ) . getProcessDataInstance ( dataName , processInstance . getId ( ) ) ; "<AssertPlaceHolder>" ; disableAndDeleteProcess ( processDefinition ) ; } getValue ( ) { return value ; }
|
org . junit . Assert . assertEquals ( 2 , dataInstance . getValue ( ) )
|
getDefault ( ) { org . gstreamer . Registry registry = org . gstreamer . Registry . getDefault ( ) ; "<AssertPlaceHolder>" ; } getDefault ( ) { org . gstreamer . Registry registry = org . gstreamer . Registry . getDefault ( ) ; org . junit . Assert . assertNotNull ( "Registry.getDefault()<sp>returned<sp>null" , registry ) ; }
|
org . junit . Assert . assertNotNull ( "Registry.getDefault()<sp>returned<sp>null" , registry )
|
getReceiversForAbortAsyncSubscription_OwnerAdmin ( ) { org . oscm . domobjects . Organization techProvider = givenOrganization ( "TP" ) ; org . oscm . domobjects . Organization customer = givenOrganization ( "CUSTOMER" ) ; org . oscm . domobjects . PlatformUser owner = customer . getOrganizationAdmins ( ) . get ( 0 ) ; org . oscm . domobjects . Subscription sub = givenSubscription ( techProvider , customer , owner ) ; doReturn ( givenUsers ) . when ( orgDao ) . getOrganizationAdmins ( anyLong ( ) ) ; java . util . List < org . oscm . domobjects . PlatformUser > users = org . oscm . subscriptionservice . bean . SubscriptionServiceBeanEmailReceiversTest . subBean . terminateBean . getCustomerAndTechnicalProductAdminForSubscription ( sub ) ; "<AssertPlaceHolder>" ; verifyOnlyAdmin ( users ) ; } size ( ) { return categoriesForMarketplace . size ( ) ; }
|
org . junit . Assert . assertEquals ( 2 , users . size ( ) )
|
testGetNonExisting ( ) { org . hawkular . apm . server . api . services . Property property = propertyCache . get ( null , "id" ) ; "<AssertPlaceHolder>" ; } get ( java . lang . String , java . lang . String ) { org . hawkular . apm . server . api . services . Property < ? > property = propertyCache . get ( id ) ; if ( property == null ) { property = getFromSystemOrEnvVariables ( id ) ; if ( property == null ) { return null ; } try { store ( tenantId , property ) ; } catch ( org . hawkular . apm . server . api . services . CacheException e ) { org . hawkular . apm . server . infinispan . InfinispanPropertyCache . log . severe ( java . lang . String . format ( "Could<sp>not<sp>store<sp>environmental<sp>property:<sp>%s<sp>to<sp>cache" , property ) ) ; } } if ( org . hawkular . apm . server . infinispan . InfinispanPropertyCache . log . isLoggable ( Level . FINEST ) ) { org . hawkular . apm . server . infinispan . InfinispanPropertyCache . log . finest ( ( ( ( "Get<sp>property<sp>[id=" + id ) + "]<sp>=<sp>" ) + property ) ) ; } return property ; }
|
org . junit . Assert . assertNull ( property )
|
testProtect ( ) { org . openqa . selenium . WebDriver actual = new org . openqa . selenium . support . ThreadGuardTest . PermissiveStubDriver ( ) ; final org . openqa . selenium . WebDriver protect = org . openqa . selenium . support . ThreadGuard . protect ( actual ) ; final java . util . concurrent . atomic . AtomicInteger successes = new java . util . concurrent . atomic . AtomicInteger ( ) ; java . lang . Thread foo = new java . lang . Thread ( new java . lang . Runnable ( ) { public void run ( ) { protect . findElement ( org . openqa . selenium . By . id ( "foo" ) ) ; successes . incrementAndGet ( ) ; } } ) ; foo . start ( ) ; foo . join ( ) ; "<AssertPlaceHolder>" ; } get ( ) { throw new java . lang . UnsupportedOperationException ( "Cowardly<sp>refusing<sp>to<sp>create<sp>a<sp>new<sp>WebDriver" ) ; }
|
org . junit . Assert . assertEquals ( 0 , successes . get ( ) )
|
formatNoLinkValue ( ) { final java . lang . String obsValue = "Some<sp>text<sp>here" ; when ( sensor . getDataType ( ) ) . thenReturn ( DataType . TEXT ) ; when ( observation . getValue ( ) ) . thenReturn ( obsValue ) ; final java . lang . String formattedValue = valueFormatter . formatValue ( sensor , observation ) ; "<AssertPlaceHolder>" ; } formatValue ( org . sentilo . web . catalog . domain . Sensor , org . sentilo . platform . client . core . domain . Observation ) { java . lang . String formattedValue = observation . getValue ( ) ; if ( ( org . springframework . util . StringUtils . hasText ( observation . getValue ( ) ) ) && ( isLinkDataType ( sensor . getDataType ( ) ) ) ) { formattedValue = formatLink ( observation . getValue ( ) ) ; } return formattedValue ; }
|
org . junit . Assert . assertEquals ( obsValue , formattedValue )
|
testPublicMethodTargetFromSubPackage ( ) { org . evosuite . Properties . CLASS_PREFIX = "com.examples.with.different.packagename" ; org . evosuite . Properties . TARGET_CLASS = "com.examples.with.different.packagename.Foo" ; java . lang . reflect . Method f = getMethod ( com . examples . with . different . packagename . subpackage . AccessExamplesSubclass . class , "publicMethod" ) ; boolean result = org . evosuite . setup . TestUsageChecker . canUse ( f , com . examples . with . different . packagename . subpackage . AccessExamplesSubclass . class ) ; "<AssertPlaceHolder>" ; } canUse ( java . lang . reflect . Field , java . lang . Class ) { if ( f . getDeclaringClass ( ) . equals ( java . lang . Object . class ) ) return false ; if ( f . getDeclaringClass ( ) . equals ( java . lang . Thread . class ) ) return false ; if ( ( ! ( org . evosuite . Properties . USE_DEPRECATED ) ) && ( f . isAnnotationPresent ( org . evosuite . setup . Deprecated . class ) ) ) { final java . lang . Class < ? > targetClass = org . evosuite . Properties . getTargetClassAndDontInitialise ( ) ; if ( ( org . evosuite . Properties . hasTargetClassBeenLoaded ( ) ) && ( ! ( f . getDeclaringClass ( ) . equals ( targetClass ) ) ) ) { org . evosuite . setup . TestUsageChecker . logger . debug ( ( "Skipping<sp>deprecated<sp>field<sp>" + ( f . getName ( ) ) ) ) ; return false ; } } if ( f . isSynthetic ( ) ) { org . evosuite . setup . TestUsageChecker . logger . debug ( ( "Skipping<sp>synthetic<sp>field<sp>" + ( f . getName ( ) ) ) ) ; return false ; } if ( f . getName ( ) . startsWith ( "ajc$" ) ) { org . evosuite . setup . TestUsageChecker . logger . debug ( ( "Skipping<sp>AspectJ<sp>field<sp>" + ( f . getName ( ) ) ) ) ; return false ; } if ( ( ! ( f . getType ( ) . equals ( java . lang . String . class ) ) ) && ( ! ( org . evosuite . setup . TestUsageChecker . canUse ( f . getType ( ) ) ) ) ) { return false ; } if ( f . getDeclaringClass ( ) . equals ( java . io . FileDescriptor . class ) ) { return false ; } if ( f . getName ( ) . equals ( "serialVersionUID" ) ) { return false ; } if ( java . lang . reflect . Modifier . isPublic ( f . getModifiers ( ) ) ) { org . evosuite . setup . TestClusterUtils . makeAccessible ( f ) ; return true ; } if ( ! ( java . lang . reflect . Modifier . isPrivate ( f . getModifiers ( ) ) ) ) { java . lang . String packageName = org . apache . commons . lang3 . ClassUtils . getPackageName ( ownerClass ) ; java . lang . String declaredPackageName = org . apache . commons . lang3 . ClassUtils . getPackageName ( f . getDeclaringClass ( ) ) ; if ( ( packageName . equals ( Properties . CLASS_PREFIX ) ) && ( packageName . equals ( declaredPackageName ) ) ) { org . evosuite . setup . TestClusterUtils . makeAccessible ( f ) ; return true ; } } return false ; }
|
org . junit . Assert . assertTrue ( result )
|
testGetName_For_Button ( ) { mmarquee . automation . controls . AutomationElement element = org . mockito . Mockito . mock ( mmarquee . automation . controls . AutomationElement . class ) ; mmarquee . automation . uiautomation . IUIAutomation mocked_automation = org . mockito . Mockito . mock ( mmarquee . automation . uiautomation . IUIAutomation . class ) ; mmarquee . automation . controls . UIAutomation instance = new mmarquee . automation . controls . UIAutomation ( mocked_automation ) ; mmarquee . automation . pattern . Invoke pattern = org . mockito . Mockito . mock ( mmarquee . automation . pattern . Invoke . class ) ; when ( element . getName ( ) ) . thenReturn ( "NAME" ) ; mmarquee . automation . controls . AutomationButton button = new mmarquee . automation . controls . AutomationButton ( new mmarquee . automation . controls . ElementBuilder ( element ) . addPattern ( pattern ) . automation ( instance ) ) ; java . lang . String name = button . getName ( ) ; "<AssertPlaceHolder>" ; } getName ( ) { return this . name ; }
|
org . junit . Assert . assertTrue ( name . equals ( "NAME" ) )
|
testAssociateNatPolicySet ( ) { boolean response = com . cloud . network . cisco . CiscoVnmcConnectionTest . connection . associateNatPolicySet ( com . cloud . network . cisco . CiscoVnmcConnectionTest . tenantName ) ; "<AssertPlaceHolder>" ; } associateNatPolicySet ( java . lang . String ) { java . lang . String xml = com . cloud . network . cisco . CiscoVnmcConnectionImpl . VnmcXml . RESOLVE_NAT_POLICY_SET . getXml ( ) ; java . lang . String service = com . cloud . network . cisco . CiscoVnmcConnectionImpl . VnmcXml . RESOLVE_NAT_POLICY_SET . getService ( ) ; xml = replaceXmlValue ( xml , "cookie" , _cookie ) ; xml = replaceXmlValue ( xml , "descr" , ( "Edge<sp>Security<sp>Profile<sp>for<sp>Tenant<sp>VDC<sp>" + tenantName ) ) ; xml = replaceXmlValue ( xml , "name" , getNameForEdgeDeviceSecurityProfile ( tenantName ) ) ; xml = replaceXmlValue ( xml , "espdn" , getDnForTenantVDCEdgeSecurityProfile ( tenantName ) ) ; xml = replaceXmlValue ( xml , "natpolicysetname" , getNameForNatPolicySet ( tenantName ) ) ; java . lang . String response = sendRequest ( service , xml ) ; return verifySuccess ( response ) ; }
|
org . junit . Assert . assertTrue ( response )
|
testSendCustomMessage ( ) { com . belerweb . social . weixin . bean . Message message = new com . belerweb . social . weixin . bean . Message ( com . belerweb . social . weixin . bean . MsgType . TEXT ) ; message . setToUser ( java . lang . System . getProperty ( "weixin.openid" ) ) ; message . setContent ( new java . util . Date ( ) . toString ( ) ) ; com . belerweb . social . bean . Result < java . lang . Boolean > result = weixin . sendCustomMessage ( message ) ; "<AssertPlaceHolder>" ; } success ( ) { return ( error ) == null ; }
|
org . junit . Assert . assertTrue ( result . success ( ) )
|
testValidateSoftlinkId_emptyResourceGroupId ( ) { java . lang . String softlinkref = "softlinkRef" ; ch . puzzle . itc . mobiliar . business . resourcegroup . entity . ResourceTypeEntity cpiType = new ch . puzzle . itc . mobiliar . builders . ResourceTypeEntityBuilder ( ) . buildResourceTypeEntity ( ResourceLocator . WS_CPI_TYPE , null , false ) ; entityManager . persist ( cpiType ) ; ch . puzzle . itc . mobiliar . business . resourcegroup . entity . ResourceTypeEntity ppiType = new ch . puzzle . itc . mobiliar . builders . ResourceTypeEntityBuilder ( ) . buildResourceTypeEntity ( ResourceLocator . WS_PPI_TYPE , null , false ) ; entityManager . persist ( ppiType ) ; ch . puzzle . itc . mobiliar . business . resourcegroup . entity . ResourceEntity cpi = new ch . puzzle . itc . mobiliar . builders . ResourceEntityBuilder ( ) . withType ( cpiType ) . withName ( "cpi" ) . build ( ) ; entityManager . persist ( cpi ) ; ch . puzzle . itc . mobiliar . business . resourcegroup . entity . ResourceEntity ppi = new ch . puzzle . itc . mobiliar . builders . ResourceEntityBuilder ( ) . withType ( cpiType ) . withName ( "ppi" ) . withSoftlinkId ( softlinkref ) . build ( ) ; entityManager . persist ( ppi ) ; ch . puzzle . itc . mobiliar . business . softlinkRelation . entity . SoftlinkRelationEntity softlinkRel = new ch . puzzle . itc . mobiliar . builders . SoftlinkRelationEntityBuilder ( ) . withSoftlinkRef ( "softlinkref" ) . withCpiResource ( cpi ) . build ( ) ; entityManager . persist ( softlinkRel ) ; "<AssertPlaceHolder>" ; service . validateSoftlinkId ( softlinkref , null ) ; } getId ( ) { return id ; }
|
org . junit . Assert . assertNotNull ( entityManager . find ( ch . puzzle . itc . mobiliar . business . softlinkRelation . entity . SoftlinkRelationEntity . class , softlinkRel . getId ( ) ) )
|
testAddSiteNavigationMenuItemWithOrder ( ) { int siteNavigationMenuItemPosition = 1 ; com . liferay . site . navigation . model . SiteNavigationMenuItem originalSiteNavigationMenuItem = com . liferay . site . navigation . util . SiteNavigationMenuTestUtil . addSiteNavigationMenuItem ( siteNavigationMenuItemPosition , _siteNavigationMenu ) ; com . liferay . site . navigation . model . SiteNavigationMenuItem actualSiteNavigationMenuItem = com . liferay . site . navigation . service . SiteNavigationMenuItemLocalServiceUtil . getSiteNavigationMenuItem ( originalSiteNavigationMenuItem . getSiteNavigationMenuItemId ( ) ) ; "<AssertPlaceHolder>" ; } getSiteNavigationMenuItemId ( ) { return _siteNavigationMenuItemId ; }
|
org . junit . Assert . assertEquals ( originalSiteNavigationMenuItem , actualSiteNavigationMenuItem )
|
testBlock ( ) { ru . org . linux . user . User user = userDao . getUser ( ru . org . linux . user . UserDaoIntegrationTest . TEST_ID ) ; userDao . block ( user , user , "" ) ; ru . org . linux . user . User userAfter = userDao . getUser ( ru . org . linux . user . UserDaoIntegrationTest . TEST_ID ) ; "<AssertPlaceHolder>" ; } isBlocked ( ) { return blocked ; }
|
org . junit . Assert . assertTrue ( userAfter . isBlocked ( ) )
|
invalidIntegerEqualConstraintShouldCreateViolations ( ) { java . util . Set < javax . validation . ConstraintViolation < org . alien4cloud . tosca . model . definitions . PropertyDefinition > > violations = validator . validate ( createEqualDefinition ( ToscaTypes . INTEGER . toString ( ) , "not<sp>an<sp>integer" ) , alien4cloud . tosca . container . validation . ToscaSequence . class ) ; "<AssertPlaceHolder>" ; } toString ( ) { return ( ( ( "name:<sp>[" + ( name ) ) + "],<sp>value:<sp>[" ) + ( value ) ) + "]" ; }
|
org . junit . Assert . assertEquals ( 2 , violations . size ( ) )
|
testFlooredNaturalTime ( ) { int time = ( ( int ) ( ( java . lang . System . currentTimeMillis ( ) ) / 1000 ) ) ; int windowFlooredNaturalTime = com . srotya . sidewinder . core . utils . TimeUtils . getWindowFlooredNaturalTime ( time , 3600 ) ; "<AssertPlaceHolder>" ; } getWindowFlooredNaturalTime ( int , int ) { return ( timeInSeconds / bucketInSeconds ) * bucketInSeconds ; }
|
org . junit . Assert . assertEquals ( ( ( time / 3600 ) * 3600 ) , windowFlooredNaturalTime )
|
testSkipWithMoreThanRemainingBytes ( ) { au . gov . ga . worldwind . common . util . io . FloatReader classUnderTest = new au . gov . ga . worldwind . common . util . io . FloatReader ( is ) ; classUnderTest . skip ( 440 ) ; float [ ] value = new float [ 1 ] ; classUnderTest . readNextValues ( value ) ; "<AssertPlaceHolder>" ; } isNaN ( float [ ] ) { for ( float f : values ) { if ( java . lang . Float . isNaN ( f ) ) { return true ; } } return false ; }
|
org . junit . Assert . assertTrue ( java . lang . Float . isNaN ( value [ 0 ] ) )
|
test_extract_multiple_target_vars_no_braces ( ) { java . lang . String cmd = "SELECT<sp>*<sp>WHERE<sp>{<sp>VALUES<sp>?p<sp>?props<sp>?o<sp>?objs<sp>?s<sp>?p<sp>?o<sp>}" ; java . lang . String valueName = "objs" ; java . lang . String [ ] res = org . apache . jena . query . ParameterizedSparqlString . extractTargetVars ( cmd , valueName ) ; java . lang . String [ ] exp = new java . lang . String [ ] { } ; "<AssertPlaceHolder>" ; } extractTargetVars ( java . lang . String , java . lang . String ) { java . lang . String [ ] targetVars = new java . lang . String [ ] { } ; int valueIndex = command . indexOf ( valueName ) ; if ( valueIndex > ( - 1 ) ) { java . lang . String subCmd = command . substring ( 0 , valueIndex ) . toLowerCase ( ) ; int valuesIndex = subCmd . lastIndexOf ( org . apache . jena . query . ParameterizedSparqlString . VALUES_KEYWORD ) ; int openBracesIndex = subCmd . lastIndexOf ( "{" ) ; int closeBracesIndex = subCmd . lastIndexOf ( "}" ) ; if ( ( ( valuesIndex > ( - 1 ) ) && ( valuesIndex < openBracesIndex ) ) && ( closeBracesIndex < valuesIndex ) ) { java . lang . String vars = command . substring ( ( valuesIndex + ( org . apache . jena . query . ParameterizedSparqlString . VALUES_KEYWORD . length ( ) ) ) , openBracesIndex ) ; targetVars = vars . replaceAll ( "[(?$)]" , "" ) . trim ( ) . split ( "<sp>" ) ; } } return targetVars ; }
|
org . junit . Assert . assertArrayEquals ( exp , res )
|
testMapFeatureConversion ( ) { java . io . ByteArrayOutputStream out = new java . io . ByteArrayOutputStream ( ) ; new uk . ac . rdg . resc . edal . covjson . CoverageJsonConverterImpl ( ) . convertFeatureToJson ( out , mapFeature ) ; "<AssertPlaceHolder>" ; } size ( ) { return points . size ( ) ; }
|
org . junit . Assert . assertTrue ( ( ( out . size ( ) ) > 0 ) )
|
testGetStoreID ( ) { try ( com . franz . agraph . repository . AGRepositoryConnection c = ( ( com . franz . agraph . repository . AGRepositoryConnection ) ( testRepository . getConnection ( ) ) ) ) { long id1 = c . getStoreID ( ) ; long id2 = c . getStoreID ( ) ; "<AssertPlaceHolder>" ; } } getStoreID ( ) { if ( ( cachedStoreID ) == ( - 1 ) ) { cachedStoreID = prepareHttpRepoClient ( ) . getStoreID ( ) ; } return cachedStoreID ; }
|
org . junit . Assert . assertEquals ( id1 , id2 )
|
manageModificationVDiskDeletion_VSERVER_UPDATED_NotStopped ( ) { org . oscm . app . iaas . data . FlowState flowState = org . oscm . app . iaas . data . FlowState . VSERVER_UPDATED ; org . oscm . app . iaas . data . FlowState newState = null ; doReturn ( VServerStatus . STARTING ) . when ( vServerProcessor . vserverComm ) . getVServerStatus ( paramHandler ) ; newState = vServerProcessor . manageModificationVDiskDeletion ( "controllerId" , "instanceId" , paramHandler , flowState , newState ) ; "<AssertPlaceHolder>" ; } manageModificationVDiskDeletion ( java . lang . String , java . lang . String , org . oscm . app . iaas . PropertyHandler , org . oscm . app . iaas . data . FlowState , org . oscm . app . iaas . data . FlowState ) { org . oscm . app . iaas . data . FlowState newState = newStateParam ; boolean vSysInNormalState = VSystemStatus . NORMAL . equals ( paramHandler . getIaasContext ( ) . getVSystemStatus ( ) ) ; switch ( flowState ) { case VSERVER_MODIFICATION_REQUESTED : if ( ( paramHandler . getControllerWaitTime ( ) ) != 0 ) { paramHandler . suspendProcessInstanceFor ( paramHandler . getControllerWaitTime ( ) ) ; newState = org . oscm . app . iaas . data . FlowState . WAITING_BEFORE_STOP ; break ; } case WAITING_BEFORE_STOP : if ( checkNextStatus ( controllerId , instanceId , FlowState . VSERVER_STOPPED_FOR_MODIFICATION , paramHandler ) ) { java . lang . String status = vserverComm . getVServerStatus ( paramHandler ) ; if ( VServerStatus . RUNNING . equals ( status ) ) { vserverComm . stopVServer ( paramHandler ) ; } else if ( VServerStatus . STOPPED . equals ( status ) ) { newState = org . oscm . app . iaas . data . FlowState . VSERVER_STOPPED_FOR_MODIFICATION ; } } break ; case VSERVER_STOPPED_FOR_MODIFICATION : if ( vSysInNormalState && ( checkNextStatus ( controllerId , instanceId , FlowState . VSERVER_UPDATING , paramHandler ) ) ) { vserverComm . modifyVServerAttributes ( paramHandler ) ; newState = org . oscm . app . iaas . data . FlowState . VSERVER_UPDATING ; if ( vdiskInfo . isAttachedVDisksFound ( paramHandler ) ) { newState = org . oscm . app . iaas . data . FlowState . VSDISK_DELETION_REQUESTED ; } } break ; case VSDISK_DELETION_REQUESTED : if ( vSysInNormalState && ( checkNextStatus ( controllerId , instanceId , FlowState . VSDISK_DETACHING , paramHandler ) ) ) { vdiskInfo . detachVDisks ( paramHandler ) ; newState = org . oscm . app . iaas . data . FlowState . VSDISK_DETACHING ; } break ; case VSDISK_DETACHING : if ( checkNextStatus ( controllerId , instanceId , FlowState . VSDISK_DETACHED , paramHandler ) ) { if ( vdiskInfo . areVDisksDetached ( paramHandler ) ) { newState = org . oscm . app . iaas . data . FlowState . VSDISK_DETACHED ; } } break ; case VSDISK_DETACHED : if ( vSysInNormalState && ( checkNextStatus ( controllerId , instanceId , FlowState . VSDISK_DELETING , paramHandler ) ) ) { vdiskInfo . destroyVDisks ( paramHandler ) ; newState = org . oscm . app . iaas . data . FlowState . VSDISK_DELETING ; } break ; case VSDISK_DELETING : if ( checkNextStatus ( controllerId , instanceId , FlowState . VSDISK_DESTROYED , paramHandler ) ) { if ( vdiskInfo . areVDisksDestroyed ( paramHandler ) ) { newState = org . oscm . app . iaas . data . FlowState . VSERVER_UPDATING ; } } break ; case VSERVER_UPDATING : if ( checkNextStatus ( controllerId , instanceId , FlowState . VSERVER_UPDATED , paramHandler ) ) { if ( VServerStatus . STOPPED . equals ( vserverComm . getVServerStatus ( paramHandler ) ) ) { newState = org . oscm . app . iaas . data . FlowState . VSERVER_UPDATED ; } } break ; case VSERVER_UPDATED : if ( checkNextStatus ( controllerId , instanceId , FlowState . VSERVER_STARTING , paramHandler ) ) { if ( vserverComm . startVServer ( paramHandler ) ) { newState = org . oscm . app . iaas . data . FlowState . VSERVER_STARTING ; } } break ; case VSERVER_STARTING : if ( checkNextStatus ( controllerId , instanceId , FlowState . VSERVER_STARTED , paramHandler ) ) { if ( VServerStatus . RUNNING . equals ( vserverComm . getVServerStatus ( paramHandler ) ) ) { newState = org . oscm . app . iaas . data . FlowState . VSERVER_STARTED ; } } break ; case VSERVER_STARTED : if ( VServerStatus . RUNNING . equals ( vserverComm . getVServerStatus ( paramHandler ) ) ) { if ( ( paramHandler . getMailForCompletion ( ) ) != null ) { if ( checkNextStatus ( controllerId , instanceId , FlowState . VSERVER_RETRIEVEGUEST , paramHandler ) ) { newState = org . oscm . app . iaas . data . FlowState . VSERVER_RETRIEVEGUEST ; } } else { newState = org . oscm . app . iaas . data . FlowState . FINISHED ; } } break ; case VSERVER_RETRIEVEGUEST : java . lang . String mail = paramHandler . getMailForCompletion ( ) ; if ( mail != null ) { newState = dispatchVServerManualOperation ( controllerId , instanceId , paramHandler , mail ) ; } else { newState = org . oscm . app . iaas . data . FlowState . FINISHED ; } break ; default : } return newState ; }
|
org . junit . Assert . assertNull ( newState )
|
replaceAction ( ) { hudson . model . CauseAction a1 = new hudson . model . CauseAction ( ) ; hudson . model . ParametersAction a2 = new hudson . model . ParametersAction ( ) ; thing . addAction ( a1 ) ; thing . addAction ( a2 ) ; hudson . model . CauseAction a3 = new hudson . model . CauseAction ( ) ; thing . replaceAction ( a3 ) ; "<AssertPlaceHolder>" ; } getActions ( ) { java . util . List < hudson . model . Action > r = new java . util . ArrayList < hudson . model . Action > ( ) ; for ( jenkins . model . FingerprintFacet ff : getFacets ( ) ) ff . createActions ( r ) ; return java . util . Collections . unmodifiableList ( r ) ; }
|
org . junit . Assert . assertEquals ( java . util . Arrays . asList ( a2 , a3 ) , thing . getActions ( ) )
|
plControleBijhoudingsPartijGelijkNok ( ) { final nl . bzk . migratiebrp . conversie . model . brp . BrpPersoonslijst dbPersoonslijst = new nl . bzk . migratiebrp . conversie . model . brp . BrpPersoonslijstBuilder ( ) . build ( ) ; setup ( java . util . Collections . singletonList ( dbPersoonslijst ) , java . util . Collections . singletonList ( dbPersoonslijst ) , true , true , true , false , true , true , true , true , true , true , true ) ; "<AssertPlaceHolder>" ; } setup ( java . util . List , java . util . List , java . util . List , boolean , boolean , boolean , boolean , boolean , boolean , boolean , boolean , boolean , boolean ) { org . mockito . Mockito . when ( plZoekerObvActueelVorigAnummer . zoek ( org . mockito . Matchers . any ( nl . bzk . migratiebrp . synchronisatie . runtime . service . synchronisatie . verwerker . context . VerwerkingsContext . class ) ) ) . thenReturn ( resultPlZoekerObvActueelVorigAnummer ) ; org . mockito . Mockito . when ( plZoekerObvActueelAnummer . zoek ( org . mockito . Matchers . any ( nl . bzk . migratiebrp . synchronisatie . runtime . service . synchronisatie . verwerker . context . VerwerkingsContext . class ) ) ) . thenReturn ( resultPlZoekerObvActueelAnummer ) ; org . mockito . Mockito . when ( plZoekerObvActueelBsn . zoek ( org . mockito . Matchers . any ( nl . bzk . migratiebrp . synchronisatie . runtime . service . synchronisatie . verwerker . context . VerwerkingsContext . class ) ) ) . thenReturn ( resultPlZoekerObvActueelBsn ) ; org . mockito . Mockito . when ( lijstControleEen . controleer ( org . mockito . Matchers . anyListOf ( nl . bzk . migratiebrp . conversie . model . brp . BrpPersoonslijst . class ) ) ) . thenReturn ( resultLijstControleEen ) ; org . mockito . Mockito . when ( lijstControleGeen . controleer ( org . mockito . Matchers . anyListOf ( nl . bzk . migratiebrp . conversie . model . brp . BrpPersoonslijst . class ) ) ) . thenReturn ( resultLijstControleGeen ) ; org . mockito . Mockito . when ( plControleBijhoudingsPartijGelijkVerzendendeGemeente . controleer ( org . mockito . Matchers . any ( nl . bzk . migratiebrp . synchronisatie . runtime . service . synchronisatie . verwerker . context . VerwerkingsContext . class ) , org . mockito . Matchers . any ( nl . bzk . migratiebrp . conversie . model . brp . BrpPersoonslijst . class ) ) ) . thenReturn ( resultControleVerzendendeGemeente ) ; org . mockito . Mockito . when ( plControleGevondenBlokkeringssituatieIsJuist . controleer ( org . mockito . Matchers . any ( nl . bzk . migratiebrp . synchronisatie . runtime . service . synchronisatie . verwerker . context . VerwerkingsContext . class ) , org . mockito . Matchers . any ( nl . bzk . migratiebrp . conversie . model . brp . BrpPersoonslijst . class ) ) ) . thenReturn ( resultControleBijhoudingssituatie ) ; org . mockito . Mockito . when ( plControleBijhoudingsPartijGelijk . controleer ( org . mockito . Matchers . any ( nl . bzk . migratiebrp . synchronisatie . runtime . service . synchronisatie . verwerker . context . VerwerkingsContext . class ) , org . mockito . Matchers . any ( nl . bzk . migratiebrp . conversie . model . brp . BrpPersoonslijst . class ) ) ) . thenReturn ( resultPlControleBijhoudingsPartijGelijk ) ; org . mockito . Mockito . when ( plControleDezelfdePersoon . controleer ( org . mockito . Matchers . any ( nl . bzk . migratiebrp . synchronisatie . runtime . service . synchronisatie . verwerker . context . VerwerkingsContext . class ) , org . mockito . Matchers . any ( nl . bzk . migratiebrp . conversie . model . brp . BrpPersoonslijst . class ) ) ) . thenReturn ( resultPlControleDezelfdePersoon ) ; org . mockito . Mockito . when ( plControleActueelBsnGelijk . controleer ( org . mockito . Matchers . any ( nl . bzk . migratiebrp . synchronisatie . runtime . service . synchronisatie . verwerker . context . VerwerkingsContext . class ) , org . mockito . Matchers . any ( nl . bzk . migratiebrp . conversie . model . brp . BrpPersoonslijst . class ) ) ) . thenReturn ( resultPlControleActueelBsnGelijk ) ; org . mockito . Mockito . when ( lijstControleGeenBsn . controleer ( org . mockito . Matchers . anyListOf ( nl . bzk . migratiebrp . conversie . model . brp . BrpPersoonslijst . class ) ) ) . thenReturn ( resultLijstControleGeenBsn ) ; org . mockito . Mockito . when ( plControleGevondenVersienummerKleiner . controleer ( org . mockito . Matchers . any ( nl . bzk . migratiebrp . synchronisatie . runtime . service . synchronisatie . verwerker . context . VerwerkingsContext . class ) , org . mockito . Matchers . any ( nl . bzk . migratiebrp . conversie . model . brp . BrpPersoonslijst . class ) ) ) . thenReturn ( resultPlControleGevondenVersienummerKleiner ) ; org . mockito . Mockito . when ( plControleGevondenDatumtijdstempelOuder . controleer ( org . mockito . Matchers . any ( nl . bzk . migratiebrp . synchronisatie . runtime . service . synchronisatie . verwerker . context . VerwerkingsContext . class ) , org . mockito . Matchers . any ( nl . bzk . migratiebrp . conversie . model . brp . BrpPersoonslijst . class ) ) ) . thenReturn ( resultPlControleGevondenDatumtijdstempelOuder ) ; }
|
org . junit . Assert . assertFalse ( subject . controleer ( new nl . bzk . migratiebrp . synchronisatie . runtime . service . synchronisatie . verwerker . context . VerwerkingsContext ( null , null , null , null ) ) )
|
testReflect3 ( ) { com . ibm . wala . ipa . callgraph . AnalysisScope scope = com . ibm . wala . core . tests . callGraph . ReflectionTest . findOrCreateAnalysisScope ( ) ; com . ibm . wala . ipa . cha . IClassHierarchy cha = com . ibm . wala . core . tests . callGraph . ReflectionTest . findOrCreateCHA ( scope ) ; java . lang . Iterable < com . ibm . wala . ipa . callgraph . Entrypoint > entrypoints = com . ibm . wala . ipa . callgraph . impl . Util . makeMainEntrypoints ( scope , cha , TestConstants . REFLECT3_MAIN ) ; com . ibm . wala . ipa . callgraph . AnalysisOptions options = com . ibm . wala . core . tests . callGraph . CallGraphTestUtil . makeAnalysisOptions ( scope , entrypoints ) ; com . ibm . wala . ipa . callgraph . CallGraph cg = com . ibm . wala . core . tests . callGraph . CallGraphTestUtil . buildZeroOneCFA ( options , new com . ibm . wala . ipa . callgraph . AnalysisCacheImpl ( ) , cha , scope , false ) ; com . ibm . wala . types . TypeReference tr = com . ibm . wala . types . TypeReference . findOrCreate ( ClassLoaderReference . Application , "Ljava/lang/Class" ) ; com . ibm . wala . types . MethodReference mr = com . ibm . wala . types . MethodReference . findOrCreate ( tr , "newInstance" , "()Ljava/lang/Object;" ) ; java . util . Set < com . ibm . wala . ipa . callgraph . CGNode > newInstanceNodes = cg . getNodes ( mr ) ; java . util . Set < com . ibm . wala . ipa . callgraph . CGNode > succNodes = com . ibm . wala . util . collections . HashSetFactory . make ( ) ; for ( com . ibm . wala . ipa . callgraph . CGNode newInstanceNode : newInstanceNodes ) { java . util . Iterator < ? extends com . ibm . wala . ipa . callgraph . CGNode > succNodesIter = cg . getSuccNodes ( newInstanceNode ) ; while ( succNodesIter . hasNext ( ) ) { succNodes . add ( succNodesIter . next ( ) ) ; } } com . ibm . wala . types . TypeReference extraneousTR = com . ibm . wala . types . TypeReference . findOrCreate ( ClassLoaderReference . Application , "Lreflection/Reflect3$Hash" ) ; com . ibm . wala . classLoader . IClass hashClass = cha . lookupClass ( extraneousTR ) ; assert hashClass != null ; com . ibm . wala . types . MethodReference extraneousMR = com . ibm . wala . types . MethodReference . findOrCreate ( extraneousTR , "<init>" , "()V" ) ; java . util . Set < com . ibm . wala . ipa . callgraph . CGNode > extraneousNodes = cg . getNodes ( extraneousMR ) ; succNodes . retainAll ( extraneousNodes ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return ( top ) == ( - 1 ) ; }
|
org . junit . Assert . assertTrue ( succNodes . isEmpty ( ) )
|
testOneTrueFilter ( ) { com . northconcepts . eventbus . EventFilter filter = new com . northconcepts . eventbus . filter . NotFilter ( TRUE_FILTER ) ; "<AssertPlaceHolder>" ; } allow ( com . northconcepts . eventbus . Event , java . lang . Object ) { return true ; }
|
org . junit . Assert . assertFalse ( filter . allow ( event , listener ) )
|
testNationaliteitenLeeg ( ) { final nl . bzk . brp . model . bericht . kern . PersoonBericht persoon = bouwNieuweSituatie ( null ) ; persoon . setNationaliteiten ( new java . util . ArrayList < nl . bzk . brp . model . bericht . kern . PersoonNationaliteitBericht > ( ) ) ; final java . util . List < nl . bzk . brp . model . basis . BerichtEntiteit > overtreders = brby0158 . voerRegelUit ( null , persoon , null , null ) ; "<AssertPlaceHolder>" ; } size ( ) { return elementen . size ( ) ; }
|
org . junit . Assert . assertEquals ( 0 , overtreders . size ( ) )
|
testGitDirsLinked ( ) { createWorkspace ( SimpleMetaStore . DEFAULT_WORKSPACE_NAME ) ; org . json . JSONObject project = createProjectOrLink ( workspaceLocation , getMethodName ( ) . concat ( "Project" ) , gitDir . toURI ( ) . toString ( ) ) ; java . lang . String location = project . getString ( ProtocolConstants . KEY_CONTENT_LOCATION ) ; java . net . URI uri = java . net . URI . create ( location ) ; org . eclipse . core . runtime . IPath projectPath = new org . eclipse . core . runtime . Path ( uri . getPath ( ) ) ; java . util . Map < org . eclipse . core . runtime . IPath , java . io . File > gitDirs = org . eclipse . orion . server . git . servlets . GitUtils . getGitDirs ( projectPath , Traverse . GO_DOWN ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return stack . isEmpty ( ) ; }
|
org . junit . Assert . assertFalse ( gitDirs . isEmpty ( ) )
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.