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 ...
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 = ...
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 . A...
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" ) ; "<AssertPlac...
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 [...
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 . sl...
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 ( ) { ret...
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 . appendCreateTableSuff...
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 . u...
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 credent...
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...
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...
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 ( ( clas...
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 . OrganizationRefTo...
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 . Validator...
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 match...
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 . k...
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 ( ) ) ) ; } ...
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 ( ) ) . addEr...
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>...
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...
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 ...
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...
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:33...
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 (...
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 . chapte...
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 [ C...
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...
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 ( ObjectComplementO...
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 ) && ( ! ( int...
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 . ...
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 . Fo...
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...
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 . ...
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 = s...
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...
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 , ...
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 . EmptyExcep...
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 = ...
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" ...
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.lin...
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...
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>" ; ...
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.extensibili...
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 ....
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 . setBac...
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 ( "...
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...
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...
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 = ne...
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 ( "jav...
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 ...
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 . 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 ( ) . addDestina...
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 . execu...
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 o...
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 . Intege...
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 ...
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 )...
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<s...
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 . ...
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 . PROCES...
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" , registr...
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 . 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 (...
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 . AtomicI...
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 ) ; ...
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 ...
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 . ...
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 =...
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 . ...
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 . W...
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 , _...
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 ) ; "<AssertPlaceHolde...
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" ) , a...
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 ) { retu...
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 ) ; "<AssertPlaceHo...
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 ...
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 ( ( cach...
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 . vserverCom...
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 . replaceAc...
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 . Co...
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 ) ; jav...
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 . mo...
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 . KE...
org . junit . Assert . assertFalse ( gitDirs . isEmpty ( ) )