input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
noNewEntryTest ( ) { final com . sun . syndication . feed . synd . SyndFeed feed = new com . sun . syndication . feed . synd . SyndFeedImpl ( ) ; feed . setEntries ( java . util . Arrays . asList ( createEntry ( "third" , "ccc" ) , createEntry ( "second" , "bbb" ) , createEntry ( "first" , "aaa" ) ) ) ; final java . ut...
org . junit . Assert . assertTrue ( entries . isEmpty ( ) )
testGetVolumeId ( ) { java . lang . Long vId = ssc . getVolumeId ( ) ; java . lang . Long expected = 103L ; "<AssertPlaceHolder>" ; } getVolumeId ( ) { return volumeId ; }
org . junit . Assert . assertEquals ( expected , vId )
testCorrectedReceivedAgeIsAgeHeaderIfLarger ( ) { final org . apache . hc . core5 . http . Header [ ] headers = new org . apache . hc . core5 . http . Header [ ] { new org . apache . hc . core5 . http . message . BasicHeader ( "Age" , "10" ) } ; final org . apache . hc . client5 . http . cache . HttpCacheEntry entry = ...
org . junit . Assert . assertEquals ( 10 , impl . getCorrectedReceivedAgeSecs ( entry ) )
testQueryListAccessAll ( ) { authRule . createGrantAuthorization ( Resources . BATCH , "*" , "user" , Permissions . READ ) ; authRule . enableAuthorization ( "user" ) ; java . util . List < org . camunda . bpm . engine . batch . Batch > batches = engineRule . getManagementService ( ) . createBatchQuery ( ) . list ( ) ;...
org . junit . Assert . assertEquals ( 2 , batches . size ( ) )
testTranscriptDuplicationOma1 ( ) { final java . lang . String outPath = runJannovarOnVCFLine ( "/sv_header.vcf" , "1\t58929878\t.\tN\t<DUP>\t.\t.\tSVTYPE=DUP;END=59028960" ) ; final java . lang . String expected = "1\t58929878\t.\tN\t<DUP>\t.\t.\tEND=59028960;" + ( "SVANN=transcript_amplification&structural_variant&co...
org . junit . Assert . assertEquals ( expected , actual )
testTransactionDDLCommitNonCommitInsert ( ) { tableDAO . drop ( com . splicemachine . derby . test . TransactionIT . CLASS_NAME , com . splicemachine . derby . test . TransactionIT . TABLE_NAME_6 ) ; methodWatcher . setAutoCommit ( false ) ; java . sql . Statement s = methodWatcher . getStatement ( ) ; s . execute ( fo...
org . junit . Assert . assertEquals ( 7 , i )
testEscapeChar ( ) { java . io . StringWriter sw = new java . io . StringWriter ( ) ; org . apache . felix . utils . json . JSONWriter js = new org . apache . felix . utils . json . JSONWriter ( sw ) ; js . object ( ) . key ( "foo" ) . value ( "/bar" ) . endObject ( ) . flush ( ) ; org . apache . felix . utils . json ....
org . junit . Assert . assertEquals ( "/bar" , jp . getParsed ( ) . get ( "foo" ) )
testRmEpsilon ( ) { System . out . println ( "Testing<sp>RmEpsilon..." ) ; edu . cmu . sphinx . fst . Fst fst = edu . cmu . sphinx . fst . openfst . Convert . importFst ( "src/test/edu/cmu/sphinx/fst/data/tests/algorithms/rmepsilon/A" , new edu . cmu . sphinx . fst . semiring . ProbabilitySemiring ( ) ) ; edu . cmu . s...
org . junit . Assert . assertTrue ( fstRmEps . equals ( rmEpsilon ) )
testFindByNameAndNoPublicNamespace ( ) { com . ctrip . framework . apollo . common . entity . AppNamespace appNamespace = repository . findByNameAndIsPublicTrue ( "application" ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNull ( appNamespace )
testIsValidFileNotReadable ( ) { java . io . File file = new java . io . File ( "file" ) { @ net . holmes . core . common . Override public boolean isFile ( ) { return true ; } @ net . holmes . core . common . Override public boolean canRead ( ) { return false ; } } ; "<AssertPlaceHolder>" ; } isValidFile ( java . io ....
org . junit . Assert . assertFalse ( isValidFile ( file ) )
testParseNegativeZ ( ) { java . lang . String source = ( ( ( ( ( "{1" + ( getDecimalCharacter ( ) ) ) + "2323;<sp>1" ) + ( getDecimalCharacter ( ) ) ) + "4343;<sp>-1" ) + ( getDecimalCharacter ( ) ) ) + "6333}" ; org . apache . commons . math3 . linear . ArrayRealVector expected = new org . apache . commons . math3 . l...
org . junit . Assert . assertEquals ( expected , actual )
listJobsWithJobFilter ( ) { final java . util . Map < com . spotify . helios . common . descriptors . JobId , com . spotify . helios . common . descriptors . Job > jobs = com . spotify . helios . client . HeliosClientTest . fakeJobs ( com . spotify . helios . common . descriptors . JobId . parse ( "foobar:v1" ) ) ; moc...
org . junit . Assert . assertThat ( client . jobs ( "foo" ) . get ( ) , org . hamcrest . Matchers . is ( jobs ) )
testFollowRedirects ( ) { final java . net . URL redirect = getUrl ( "redirect" ) ; com . google . appengine . api . urlfetch . FetchOptions options = buildFetchOptions ( ) ; options . followRedirects ( ) ; testOptions ( redirect , options , new com . google . appengine . tck . urlfetch . ResponseHandler ( ) { public v...
org . junit . Assert . assertEquals ( getUrl ( "" ) , finalURL )
testGetParameters ( ) { java . lang . Long enrolmentSubjectId = 1L ; org . lnu . is . domain . enrolment . subject . EnrolmentSubject enrolmentSubject = new org . lnu . is . domain . enrolment . subject . EnrolmentSubject ( ) ; enrolmentSubject . setId ( enrolmentSubjectId ) ; java . lang . Long enrolmentId = 2L ; org ...
org . junit . Assert . assertEquals ( expected , actual )
testINDArrayIndexingLessThanRankFourDimension ( ) { org . nd4j . linalg . api . ndarray . INDArray x = org . nd4j . linalg . factory . Nd4j . linspace ( 1 , 16 , 16 , DataType . DOUBLE ) . reshape ( 'c' , 2 , 2 , 2 , 2 ) . castTo ( DataType . DOUBLE ) ; org . nd4j . linalg . api . ndarray . INDArray indexes = org . nd4...
org . junit . Assert . assertEquals ( assertion , getTest )
simple ( ) { org . jboss . hal . dmr . ResourceAddress input = new org . jboss . hal . dmr . ResourceAddress ( ) . add ( "foo" , "bar" ) ; org . jboss . hal . dmr . ResourceAddress expected = new org . jboss . hal . dmr . ResourceAddress ( ) . add ( "foo" , "bar" ) ; org . jboss . hal . dmr . ResourceAddress result = p...
org . junit . Assert . assertEquals ( expected , result )
testGetAll ( ) { productList . add ( new org . esa . beam . dataio . TestProduct ( ) ) ; final java . util . List < org . esa . beam . dataio . TestProduct > testProducts = productList . getAll ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return size ; }
org . junit . Assert . assertEquals ( 1 , testProducts . size ( ) )
toString_heatMapTurboThresholdIsSet_plotOptionsSerializedWithTurboThreshold ( ) { com . vaadin . addon . charts . model . PlotOptionsHeatmap plotOptions = new com . vaadin . addon . charts . model . PlotOptionsHeatmap ( ) ; plotOptions . setTurboThreshold ( 0 ) ; java . lang . String json = toJSON ( plotOptions ) ; jav...
org . junit . Assert . assertEquals ( expected , json )
testPutGetRangeBuilder ( ) { java . lang . String indexName = "put-index" ; java . lang . String docId = "testPutDocs" ; com . google . appengine . api . search . Index index = createIndex ( indexName , docId ) ; com . google . appengine . api . search . GetIndexesRequest request = com . google . appengine . api . sear...
org . junit . Assert . assertEquals ( docs . getResults ( ) . size ( ) , 2 )
testIsComplete_isTimely_assertComplete ( ) { org . nhindirect . monitor . condition . TxCompletionCondition timelyCond = mock ( org . nhindirect . monitor . condition . TxCompletionCondition . class ) ; when ( timelyCond . isComplete ( ( ( java . util . Collection < org . nhindirect . common . tx . model . Tx > ) ( any...
org . junit . Assert . assertTrue ( spy . isComplete ( null ) )
testParseAclChangeSetId ( ) { java . lang . Long expectedAclChangeSetId = 94032903249L ; java . lang . String aclChangeSetDocumentId = org . alfresco . solr . AlfrescoSolrDataModel . getAclChangeSetDocumentId ( expectedAclChangeSetId ) ; java . lang . Long actualAclChangeSetId = org . alfresco . solr . AlfrescoSolrData...
org . junit . Assert . assertEquals ( expectedAclChangeSetId , actualAclChangeSetId )
whenIsStrictRequested_thenReturnIsStrict ( ) { when ( runtimeOptions . isStrict ( ) ) . thenReturn ( true ) ; jiraRuntimeOptions = new rest . RestRuntimeOptions ( runtimeOptions ) ; "<AssertPlaceHolder>" ; } isStrict ( ) { return runtimeOptions . isStrict ( ) ; }
org . junit . Assert . assertTrue ( jiraRuntimeOptions . isStrict ( ) )
getUserMembershipsOfRole ( ) { final org . bonitasoft . engine . identity . model . SUserMembership userMembership = mock ( org . bonitasoft . engine . identity . model . SUserMembership . class ) ; when ( persistenceService . selectList ( org . bonitasoft . engine . identity . recorder . SelectDescriptorBuilder . getU...
org . junit . Assert . assertEquals ( userMembership , userMemberships . get ( 0 ) )
testInsertEvictUpdate ( ) { insertDummyEntities ( 1 ) ; org . hibernate . Session session = sf . openSession ( ) ; org . hibernate . Transaction tx = session . beginTransaction ( ) ; com . hazelcast . hibernate . entity . DummyEntity ent = session . get ( com . hazelcast . hibernate . entity . DummyEntity . class , 0L ...
org . junit . Assert . assertEquals ( "updatedName" , list . get ( 0 ) . getName ( ) )
handleIllegalStateExceptionThrowableShouldReturnIt ( ) { java . lang . Throwable e = new java . lang . IllegalStateException ( ) ; "<AssertPlaceHolder>" ; } handle ( java . lang . Throwable ) { if ( e instanceof org . codegist . crest . CRestException ) { return org . codegist . crest . CRestException . handle ( ( ( or...
org . junit . Assert . assertSame ( e , org . codegist . crest . CRestException . handle ( e ) )
testAtomType_IElement ( ) { org . openscience . cdk . interfaces . IElement element = new org . openscience . cdk . silent . Element ( "C" ) ; org . openscience . cdk . interfaces . IAtomType at = element . getBuilder ( ) . newInstance ( org . openscience . cdk . interfaces . IAtomType . class , element ) ; "<AssertPla...
org . junit . Assert . assertEquals ( "C" , at . getSymbol ( ) )
testSdkVersion ( ) { soot . jimple . infoflow . android . manifest . ProcessManifest manifest = null ; try { manifest = new soot . jimple . infoflow . android . manifest . ProcessManifest ( "testAPKs/enriched1.apk" ) ; } catch ( java . io . IOException | org . xmlpull . v1 . XmlPullParserException e ) { e . printStackT...
org . junit . Assert . assertFalse ( throwsException )
findFunctionsByNameInNamespaceForSubResourceTypeWithFunctionsWithSameNameOnResourceOneShouldReturnOtherResource ( ) { ch . puzzle . itc . mobiliar . business . resourcegroup . entity . ResourceTypeEntity rootResourceType = createRootResourceType ( ) ; ch . puzzle . itc . mobiliar . business . resourcegroup . entity . R...
org . junit . Assert . assertTrue ( functionsWithName . contains ( OTHER_FUNCTION_A ) )
should_report_correct_category ( ) { au . edu . wehi . idsv . ReferenceCoverageLookup lookup = init ( new java . util . ArrayList < htsjdk . samtools . SAMRecord > ( ) , 1 ) ; "<AssertPlaceHolder>" ; } getCategory ( ) { return category ; }
org . junit . Assert . assertEquals ( 5 , lookup . getCategory ( ) )
testR ( ) { org . apache . activemq . artemis . api . core . SimpleString s1 = new org . apache . activemq . artemis . api . core . SimpleString ( "a.b.c.d" ) ; org . apache . activemq . artemis . api . core . SimpleString s3 = new org . apache . activemq . artemis . api . core . SimpleString ( "#*a.b.c" ) ; org . apac...
org . junit . Assert . assertFalse ( a1 . matches ( w ) )
testAddTypeBeforeFormatJavaTypeGeneratesCorrectFQNs ( ) { final java . lang . String baseType = "myType" ; final java . lang . String fullyQualifiedType = "org.myPackage." + baseType ; importUtils . addType ( fullyQualifiedType ) ; "<AssertPlaceHolder>" ; } formatJavaType ( java . lang . String ) { if ( typeName != nul...
org . junit . Assert . assertEquals ( baseType , importUtils . formatJavaType ( fullyQualifiedType ) )
getMaxCopyAttempts ( ) { copierOptions . put ( S3S3CopierOptions . Keys . MAX_COPY_ATTEMPTS . keyName ( ) , 3 ) ; com . hotels . bdp . circustrain . s3s3copier . S3S3CopierOptions options = new com . hotels . bdp . circustrain . s3s3copier . S3S3CopierOptions ( copierOptions ) ; "<AssertPlaceHolder>" ; } getMaxCopyAtte...
org . junit . Assert . assertThat ( options . getMaxCopyAttempts ( ) , org . hamcrest . CoreMatchers . is ( 3 ) )
MDC ( ) { org . slf4j . MDC . put ( "key" , "testValue" ) ; ch . qos . logback . classic . spi . ILoggingEvent event = createLoggingEvent ( ) ; ch . qos . logback . classic . spi . ILoggingEvent remoteEvent = writeAndRead ( event ) ; checkForEquality ( event , remoteEvent ) ; java . util . Map < java . lang . String , ...
org . junit . Assert . assertEquals ( "testValue" , MDCPropertyMap . get ( "key" ) )
settingsShouldSupportUnsignedShort ( ) { char key = ( ( char ) ( ( Short . MAX_VALUE ) + 1 ) ) ; settings . put ( key , ( ( java . lang . Long ) ( 123L ) ) ) ; "<AssertPlaceHolder>" ; } get ( java . lang . CharSequence ) { return get0 ( name ) ; }
org . junit . Assert . assertEquals ( 123L , ( ( long ) ( settings . get ( key ) ) ) )
testEvalException ( ) { com . streamsets . datacollector . runner . FilterRecordBatch . Predicate predicate = new com . streamsets . datacollector . runner . PreconditionsPredicate ( createContext ( ) , java . util . Collections . singletonList ( "${str:truncate(\"abcd\",<sp>-4)<sp>!=<sp>\"abcd\"}" ) ) ; com . streamse...
org . junit . Assert . assertNotNull ( predicate . getRejectedMessage ( ) )
testUnderscoreField ( ) { db . command ( new com . orientechnologies . orient . core . sql . OCommandSQL ( "create<sp>class<sp>Test<sp>extends<sp>V" ) ) . execute ( ) ; db . command ( new com . orientechnologies . orient . core . sql . OCommandSQL ( "create<sp>property<sp>V._attr1<sp>string" ) ) . execute ( ) ; db . co...
org . junit . Assert . assertEquals ( results . size ( ) , 1 )
copyFile_FileValid ( ) { java . io . File fileSrc = new java . io . File ( com . archimatetool . editor . TestSupport . getTestDataFolder ( ) , "filetest/readme.txt" ) ; java . io . File fileTgt = com . archimatetool . tests . TestUtils . createTempFile ( ".txt" ) ; com . archimatetool . editor . utils . FileUtils . co...
org . junit . Assert . assertTrue ( true )
testUnmarshal22 ( ) { slash . navigation . kml . Reader reader = new slash . navigation . kml . FileReader ( ( ( TEST_PATH ) + "from22.kml" ) ) ; slash . navigation . kml . binding22 . KmlType kml = unmarshal22 ( reader ) ; "<AssertPlaceHolder>" ; } unmarshal22 ( java . io . Reader ) { slash . navigation . kml . bindin...
org . junit . Assert . assertNotNull ( kml )
testEmpty ( ) { soot . SootClass scJLO = getSootClass ( "java.lang.Object" ) ; soot . SootClass scEmpty = getSootClass ( "org.robovm.compiler.a.Empty" ) ; org . robovm . compiler . VTable . Cache cache = new org . robovm . compiler . VTable . Cache ( ) ; org . robovm . compiler . VTable vtableJLO = cache . get ( scJLO ...
org . junit . Assert . assertArrayEquals ( vtableJLO . getEntries ( ) , vtableEmpty . getEntries ( ) )
find_max_value_from_list_of_integers_guava ( ) { java . util . List < java . lang . Integer > top10CentersNumbers = com . google . common . collect . Lists . newArrayList ( 63 , 52 , 62 , 0 , 66 , 0 , 57 , 51 , 60 ) ; java . lang . Integer maxJerseyNumber = com . google . common . collect . Ordering . natural ( ) . max...
org . junit . Assert . assertEquals ( new java . lang . Integer ( 66 ) , maxJerseyNumber )
testScan ( ) { int recordcount = 10 ; java . util . Set < java . lang . String > fields = com . yahoo . ycsb . db . ElasticsearchClientTest . MOCK_DATA . keySet ( ) ; java . util . Vector < java . util . HashMap < java . lang . String , com . yahoo . ycsb . ByteIterator > > resultParam = new java . util . Vector ( 10 )...
org . junit . Assert . assertEquals ( Status . OK , result )
testGet_InZK ( ) { org . apache . accumulo . core . conf . Property p = org . apache . accumulo . core . conf . Property . INSTANCE_SECRET ; expect ( zc . get ( ( ( ( ( ( ( ( org . apache . accumulo . fate . zookeeper . ZooUtil . getRoot ( iid ) ) + ( org . apache . accumulo . core . Constants . ZNAMESPACES ) ) + "/" )...
org . junit . Assert . assertEquals ( "sekrit" , c . get ( Property . INSTANCE_SECRET ) )
testWriteValueSubPortsNull ( ) { "<AssertPlaceHolder>" ; }
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( true ) )
testMacroInvocationWithoutAllArguments ( ) { com . mitchellbosecke . pebble . PebbleEngine pebble = new com . mitchellbosecke . pebble . PebbleEngine . Builder ( ) . loader ( new com . mitchellbosecke . pebble . loader . StringLoader ( ) ) . strictVariables ( false ) . build ( ) ; com . mitchellbosecke . pebble . templ...
org . junit . Assert . assertEquals ( "1" , writer . toString ( ) )
getName ( ) { "<AssertPlaceHolder>" ; } getName ( ) { return cache . getName ( ) ; }
org . junit . Assert . assertEquals ( name , cache . getName ( ) )
testEvalListener ( ) { javax . el . ELProcessor elp = new javax . el . ELProcessor ( ) ; javax . el . ELManager elm = elp . getELManager ( ) ; final java . util . ArrayList < java . lang . String > msgs = new java . util . ArrayList < java . lang . String > ( ) ; elm . addEvaluationListener ( new javax . el . Evaluatio...
org . junit . Assert . assertEquals ( expected [ i ] , msgs . get ( i ) )
testFindEmptySet ( ) { com . rapleaf . jack . test_project . database_1 . iface . IUserPersistence users = dbs . getDatabase1 ( ) . users ( ) ; java . util . List < com . rapleaf . jack . test_project . database_1 . models . User > foundValues = users . find ( new java . util . HashSet ( ) ) ; "<AssertPlaceHolder>" ; }...
org . junit . Assert . assertEquals ( 0 , foundValues . size ( ) )
testFullyQualifiedDeclarativeTypeName ( ) { java . lang . String declaration = "package<sp>org.drools.compiler;\n" + "public<sp>class<sp>Bean<sp>{}" ; java . lang . String drl = "declare<sp>org.drools.compiler.Bean\n" + ( "<sp>@role(event)\n" + "end" ) ; org . kie . api . KieServices ks = KieServices . Factory . get ( ...
org . junit . Assert . assertTrue ( typeMetaInfo . isEvent ( ) )
shouldAllPattern ( ) { java . lang . String regex = "[a-z]{2}-[0-9]{2}-[abc123]{2}-\\w{2}-\\d{2}@\\s{1}-\\S{1}\\.?-." ; for ( int i = 0 ; i < 100 ; i ++ ) { java . lang . String text = com . github . jsonzou . jmockdata . util . RandomUtils . nextStringFromRegex ( regex ) ; System . out . println ( text ) ; "<AssertPla...
org . junit . Assert . assertTrue ( text . matches ( regex ) )
testSetCellToolTipText ( ) { org . eclipse . swt . internal . widgets . ICellToolTipAdapter adapter = table . getAdapter ( org . eclipse . swt . internal . widgets . ICellToolTipAdapter . class ) ; adapter . setCellToolTipText ( "foo" ) ; "<AssertPlaceHolder>" ; } getCellToolTipText ( ) { return toolTipText ; }
org . junit . Assert . assertEquals ( "foo" , adapter . getCellToolTipText ( ) )
testColorIsCached ( ) { org . eclipse . swt . graphics . Color color1 = com . archimatetool . editor . ui . ColorFactory . get ( 11 , 22 , 33 ) ; org . eclipse . swt . graphics . Color color2 = com . archimatetool . editor . ui . ColorFactory . get ( 11 , 22 , 33 ) ; "<AssertPlaceHolder>" ; } get ( int , int , int ) { ...
org . junit . Assert . assertSame ( color1 , color2 )
testSamlConditionsNotBeforeIsNull ( ) { final gov . hhs . fha . nhinc . callback . opensaml . CallbackProperties callbackProps = mock ( gov . hhs . fha . nhinc . callback . opensaml . CallbackProperties . class ) ; final gov . hhs . fha . nhinc . callback . opensaml . HOKSAMLAssertionBuilder builder = new gov . hhs . f...
org . junit . Assert . assertNull ( conditions )
appendJsonAttributeGoodCaseNameNull ( ) { java . lang . StringBuilder stringBuilder = new java . lang . StringBuilder ( ) ; stringBuilder . append ( "prefix_" ) ; java . lang . String expResult = "prefix_\"\":value," ; com . microsoft . azure . sdk . iot . deps . util . Tools . appendJsonAttribute ( stringBuilder , nul...
org . junit . Assert . assertEquals ( expResult , stringBuilder . toString ( ) )
testFetchByPrimaryKeysWithNoPrimaryKeys ( ) { java . util . Set < java . io . Serializable > primaryKeys = new java . util . HashSet < java . io . Serializable > ( ) ; java . util . Map < java . io . Serializable , com . liferay . social . kernel . model . SocialActivity > socialActivities = _persistence . fetchByPrima...
org . junit . Assert . assertTrue ( socialActivities . isEmpty ( ) )
testGetMessageSupplierReturnsNullIfSupplierNull ( ) { final java . lang . Object actual = org . apache . logging . log4j . util . LambdaUtil . get ( ( ( org . apache . logging . log4j . util . MessageSupplier ) ( null ) ) ) ; "<AssertPlaceHolder>" ; } get ( org . apache . logging . log4j . util . Supplier ) { if ( supp...
org . junit . Assert . assertNull ( actual )
whenUpdateUserInStorageByIdThenUpdateInStorage ( ) { ru . szhernovoy . storage . User userFirst = new ru . szhernovoy . storage . User ( "Sergey" ) ; ru . szhernovoy . storage . User userSecond = new ru . szhernovoy . storage . User ( "Julia" ) ; java . lang . String key = userFirst . getId ( ) ; ru . szhernovoy . stor...
org . junit . Assert . assertThat ( "Julia" , org . hamcrest . core . Is . is ( myStorage . read ( key ) . getName ( ) ) )
testAcceptInValidParameter2 ( ) { final org . openspotlight . graph . query . console . ConsoleState state = new org . openspotlight . graph . query . console . ConsoleState ( null ) ; state . setInput ( "savex<sp>property" ) ; "<AssertPlaceHolder>" ; } accept ( org . openspotlight . graph . query . console . ConsoleSt...
org . junit . Assert . assertThat ( command . accept ( state ) , org . hamcrest . core . Is . is ( false ) )
testClientGetTimeout ( ) { org . apache . hadoop . conf . Configuration config = new org . apache . hadoop . conf . Configuration ( ) ; "<AssertPlaceHolder>" ; } getTimeout ( org . apache . hadoop . conf . Configuration ) { int timeout = org . apache . hadoop . ipc . Client . getRpcTimeout ( conf ) ; if ( timeout > 0 )...
org . junit . Assert . assertEquals ( org . apache . hadoop . ipc . Client . getTimeout ( config ) , ( - 1 ) )
testEnhanceParamsWithNull ( ) { "<AssertPlaceHolder>" ; } generateQuery ( org . apache . solr . client . solrj . SolrQuery , java . util . Map ) { if ( originalParams == null ) { return null ; } org . apache . solr . client . solrj . SolrQuery result = new org . apache . solr . client . solrj . SolrQuery ( ) ; result ....
org . junit . Assert . assertNull ( org . phenotips . vocabulary . internal . solr . SolrQueryUtils . generateQuery ( null , null ) )
testToTerm_2 ( ) { final org . erlide . core . builder . CompilerOption . BooleanOption option = org . erlide . core . builder . CompilerOptions . WARN_EXPORT_ALL ; final com . ericsson . otp . erlang . OtpErlangObject actual = option . toTerm ( false ) ; final java . lang . String expected = "nowarn_export_all" ; "<As...
org . junit . Assert . assertEquals ( expected , actual . toString ( ) )
testThatNoVariableCanBeExtractedFromEmptyDDS ( ) { org . esa . snap . opendap . datamodel . OpendapLeaf leaf = new org . esa . snap . opendap . datamodel . OpendapLeaf ( "empty" , new thredds . catalog . InvDataset ( null , "" ) { } ) ; final org . esa . snap . opendap . datamodel . DAPVariable [ ] dapVariables = new o...
org . junit . Assert . assertEquals ( 0 , dapVariables . length )
testGetPropertyAccessorApplicationScope ( ) { ognl . PropertyAccessor objectPropertyAccessor = createMock ( ognl . PropertyAccessor . class ) ; ognl . PropertyAccessor applicationContextPropertyAccessor = createMock ( ognl . PropertyAccessor . class ) ; ognl . PropertyAccessor requestScopePropertyAccessor = createMock ...
org . junit . Assert . assertEquals ( requestScopePropertyAccessor , factory . getPropertyAccessor ( "attribute" , request ) )
testCodec ( ) { boolean testPassed = false ; try { final int packetSize = 480 ; java . io . File outputFile = java . io . File . createTempFile ( "opustest" , ".tmp" ) ; java . net . URL inputFileUrl = this . getClass ( ) . getResource ( "/test_sound_mono_48.pcm" ) ; org . restcomm . media . core . codec . opus . Encod...
org . junit . Assert . assertTrue ( testPassed )
test_getManifest_nonExisted ( ) { java . util . jar . Manifest manifest = org . talend . commons . utils . resource . BundleFileUtil . getManifest ( new java . io . File ( "abc.txt" ) ) ; "<AssertPlaceHolder>" ; } getManifest ( java . io . File ) { if ( ( ( ( f == null ) || ( ! ( f . exists ( ) ) ) ) || ( ! ( f . isFil...
org . junit . Assert . assertNull ( manifest )
testStatisticsConsiderAllMeasurements ( ) { org . openehealth . ipf . commons . test . performance . MeasurementHistory measurementHistory = org . openehealth . ipf . commons . test . performance . PerformanceMeasurementTestUtils . createMeasurementHistory ( ) ; statistics . update ( measurementHistory ) ; long element...
org . junit . Assert . assertEquals ( 1 , elementsInTheFrequencies )
loadWithExceptionReturnsNull ( ) { when ( this . patient . getXDocument ( ) ) . thenThrow ( new java . lang . RuntimeException ( ) ) ; "<AssertPlaceHolder>" ; } load ( org . xwiki . bridge . DocumentModelBridge ) { try { return getEntityConstructor ( ) . newInstance ( document ) ; } catch ( java . lang . IllegalArgumen...
org . junit . Assert . assertNull ( this . component . load ( this . patient ) )
testChangeIndicationUnsetEndpoint ( ) { d_wizard . getIndicationModel ( ) . setValue ( org . drugis . addis . ExampleData . buildIndicationDepression ( ) ) ; d_wizard . getOutcomeMeasureModel ( ) . setValue ( org . drugis . addis . ExampleData . buildEndpointHamd ( ) ) ; java . beans . PropertyChangeListener l = org . ...
org . junit . Assert . assertNull ( d_wizard . getOutcomeMeasureModel ( ) . getValue ( ) )
calendarUtils_getEndOfDayFromDate_calendarAsEndOfDayReturned ( ) { java . util . Calendar testInput = java . util . Calendar . getInstance ( ) ; testInput . set ( 2014 , Calendar . MARCH , 10 ) ; java . util . Calendar expResult = ( ( java . util . Calendar ) ( testInput . clone ( ) ) ) ; expResult . set ( Calendar . H...
org . junit . Assert . assertEquals ( expResult , result )
writeTo ( ) { com . baidu . unbiz . common . io . ByteArray ba ; ba = new com . baidu . unbiz . common . io . ByteArray ( data ) ; java . io . ByteArrayOutputStream baos = new java . io . ByteArrayOutputStream ( ) ; ba . writeTo ( baos ) ; "<AssertPlaceHolder>" ; } toByteArray ( ) { shared = true ; return new com . bai...
org . junit . Assert . assertArrayEquals ( data , baos . toByteArray ( ) )
testInvalidParameterValueHTTTPStatusErrorCode ( ) { exceptionReport = new org . n52 . wps . server . ExceptionReport ( "Test<sp>error" , org . n52 . wps . server . ExceptionReport . INVALID_PARAMETER_VALUE ) ; "<AssertPlaceHolder>" ; } getHTTPStatusCode ( ) { switch ( errorKey ) { case org . n52 . wps . server . Except...
org . junit . Assert . assertTrue ( ( ( exceptionReport . getHTTPStatusCode ( ) ) == ( javax . servlet . http . HttpServletResponse . SC_BAD_REQUEST ) ) )
staticFactoryMethodShouldReturnSameAsConstructor ( ) { io . cereebro . core . Component b = io . cereebro . core . TestHelper . componentB ( ) ; io . cereebro . core . Dependency expected = new io . cereebro . core . Dependency ( b ) ; io . cereebro . core . Dependency actual = io . cereebro . core . Dependency . on ( ...
org . junit . Assert . assertEquals ( expected , actual )
convertToSyntaxObjectWhenNull ( ) { org . xwiki . rendering . syntax . Syntax syntax = ( ( org . xwiki . rendering . syntax . Syntax ) ( this . mocker . getComponentUnderTest ( ) . convert ( org . xwiki . rendering . syntax . Syntax . class , null ) ) ) ; "<AssertPlaceHolder>" ; } convert ( java . lang . reflect . Type...
org . junit . Assert . assertNull ( syntax )
testString ( ) { java . lang . String l2 = ( ( java . lang . String ) ( org . mapdb . elsa . ElsaSerializerBaseTest . clone ( "Abcd" ) ) ) ; "<AssertPlaceHolder>" ; } clone ( E ) { return org . mapdb . elsa . ElsaSerializerBaseTest . clonePojo ( value ) ; }
org . junit . Assert . assertEquals ( l2 , "Abcd" )
test ( ) { org . psjava . ds . geometry . Point2D < java . lang . Integer > p1 = org . psjava . formula . geometry . PointByDirectionComparatorTest . toPoint ( 10 , 0 ) ; org . psjava . ds . geometry . Point2D < java . lang . Integer > p2 = org . psjava . formula . geometry . PointByDirectionComparatorTest . toPoint ( ...
org . junit . Assert . assertEquals ( org . psjava . TestUtil . toArrayList ( p1 , p3 , p2 , p4 ) , list )
testGetAttributeValueGroupAdmin ( ) { System . out . println ( "testGetAttributeValue()<sp>-<sp>isGroupAdmin" ) ; attribute . setValue ( true ) ; cz . metacentrum . perun . core . api . Attribute testAttr = cz . metacentrum . perun . core . impl . modules . attributes . urn_perun_member_group_attribute_def_virt_isGroup...
org . junit . Assert . assertEquals ( testAttr , attribute )
testGetInstance_withCache ( ) { com . hazelcast . simulator . worker . loadsupport . Streamer streamer = com . hazelcast . simulator . worker . loadsupport . StreamerFactory . getInstance ( cache ) ; "<AssertPlaceHolder>" ; } getInstance ( com . hazelcast . core . IMap ) { return com . hazelcast . simulator . worker . ...
org . junit . Assert . assertNotNull ( streamer )
detect_A$String_null ( ) { java . lang . String sourceCodeString = "foobar" ; org . junithelper . core . meta . CurrentLineBreak actual = org . junithelper . core . extractor . CurrentLineBreakDetector . detect ( sourceCodeString ) ; org . junithelper . core . meta . CurrentLineBreak expected = null ; "<AssertPlaceHold...
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( expected ) ) )
testSingleValue ( ) { com . liferay . dynamic . data . mapping . form . evaluator . internal . function . DefaultDDMExpressionFieldAccessor ddmExpressionFieldAccessor = new com . liferay . dynamic . data . mapping . form . evaluator . internal . function . DefaultDDMExpressionFieldAccessor ( ) ; com . liferay . dynamic...
org . junit . Assert . assertEquals ( new java . math . BigDecimal ( 10 ) , result )
testGetItemAfterRemoveReturnsNull ( ) { com . eclipsesource . tabris . widgets . swipe . SwipeItem item = mock ( com . eclipsesource . tabris . widgets . swipe . SwipeItem . class ) ; swipeItemHolder . addItem ( 0 , item ) ; swipeItemHolder . removeItem ( 0 ) ; com . eclipsesource . tabris . widgets . swipe . SwipeItem...
org . junit . Assert . assertNull ( actualItem )
testPlaceHolderWithFullShape ( ) { lombok . val sd = org . nd4j . autodiff . samediff . SameDiff . create ( ) ; lombok . val placeholder = sd . placeHolder ( "somevar" , DataType . FLOAT , 2 , 2 ) ; "<AssertPlaceHolder>" ; sd . resolveVariablesWith ( org . nd4j . autodiff . samediff . Collections . singletonMap ( place...
org . junit . Assert . assertTrue ( sd . isPlaceHolder ( placeholder . getVarName ( ) ) )
testConvertToRuleActionOut ( ) { org . hawkular . apm . api . model . config . instrumentation . jvm . InstrumentConsumer im = new org . hawkular . apm . api . model . config . instrumentation . jvm . InstrumentConsumer ( ) ; im . setEndpointTypeExpression ( "\"MyEndpoint\"" ) ; im . setUriExpression ( "\"MyUri\"" ) ; ...
org . junit . Assert . assertEquals ( expected , transformed )
shouldFindAllMethodsWithMyAnnotation ( ) { final java . util . List < java . lang . reflect . Method > result = de . akquinet . jbosscc . needle . reflection . ReflectionUtil . getAllMethodsWithAnnotation ( de . akquinet . jbosscc . needle . reflection . DerivedClass . class , de . akquinet . jbosscc . needle . reflect...
org . junit . Assert . assertThat ( result . size ( ) , org . hamcrest . CoreMatchers . is ( 2 ) )
testGetSeriesKey ( ) { double [ ] values = new double [ ] { 1.0 , 2.0 , 3.0 , 4.0 , 6.0 , 12.0 , 5.0 , 6.3 , 4.5 } ; org . jfree . data . statistics . HistogramDataset d1 = new org . jfree . data . statistics . HistogramDataset ( ) ; d1 . addSeries ( "Series<sp>1" , values , 5 ) ; "<AssertPlaceHolder>" ; } getSeriesKey...
org . junit . Assert . assertEquals ( "Series<sp>1" , d1 . getSeriesKey ( 0 ) )
testOutputPrefix_Specified ( ) { org . sejda . model . parameter . RotateParameters parameters = defaultCommandLine ( ) . with ( "-p" , "fooPrefix" ) . invokeSejdaConsole ( ) ; "<AssertPlaceHolder>" ; } getOutputPrefix ( ) { return outputPrefix ; }
org . junit . Assert . assertEquals ( "fooPrefix" , parameters . getOutputPrefix ( ) )
testGetStreamNamesWithNoItems ( ) { when ( mockResult . getStreams ( ) ) . thenReturn ( new java . util . ArrayList < com . amazonaws . services . dynamodbv2 . model . Stream > ( ) ) ; java . util . List < java . lang . String > actual = adapter . getStreamNames ( ) ; "<AssertPlaceHolder>" ; } getStreamNames ( ) { java...
org . junit . Assert . assertTrue ( actual . isEmpty ( ) )
testMongo ( ) { java . lang . Long id = 1L ; System . out . println ( "testMongo<sp>start" ) ; userService . saveToMongo ( id , "ttt" , 34 ) ; com . ubankers . userservice . business . domain . UserMongo userMongo = userService . findOneFromMongo ( 1L ) ; System . out . println ( ( userMongo == null ) ) ; "<AssertPlace...
org . junit . Assert . assertNotNull ( userMongo )
testGetPreviousVisibleColumn_WithColumnOrder ( ) { org . eclipse . nebula . widgets . grid . GridColumn [ ] columns = org . eclipse . nebula . widgets . grid . GridTestUtil . createGridColumns ( grid , 5 , SWT . NONE ) ; grid . setColumnOrder ( new int [ ] { 4 , 0 , 2 , 1 , 3 } ) ; "<AssertPlaceHolder>" ; } getPrevious...
org . junit . Assert . assertSame ( columns [ 0 ] , grid . getPreviousVisibleColumn ( columns [ 2 ] ) )
test7getServiceDefs ( ) { javax . servlet . http . HttpServletRequest request = org . mockito . Mockito . mock ( javax . servlet . http . HttpServletRequest . class ) ; org . apache . ranger . plugin . util . SearchFilter filter = new org . apache . ranger . plugin . util . SearchFilter ( ) ; filter . setParam ( Search...
org . junit . Assert . assertNotNull ( dbRangerServiceDef )
reindexCase ( ) { rootBuilder . child ( "oak:index" ) . child ( "fooIndex" ) ; builder . setProperty ( IndexConstants . DISABLE_INDEXES_ON_NEXT_CYCLE , true ) ; builder . setProperty ( IndexConstants . SUPERSEDED_INDEX_PATHS , asList ( "/oak:index/fooIndex" , "/oak:index/barIndex" ) , Type . STRINGS ) ; java . util . L...
org . junit . Assert . assertTrue ( disabledIndexes . isEmpty ( ) )
testDeleteChannelSuccessful ( ) { org . mockito . Mockito . when ( longPollingDelegateMock . deleteChannel ( "channel-123" ) ) . thenReturn ( true ) ; "<AssertPlaceHolder>" ; } deleteChannel ( java . lang . String ) { try { io . joynr . messaging . service . ChannelServiceRestAdapter . log . info ( "DELETE<sp>channel<s...
org . junit . Assert . assertTrue ( channelService . deleteChannel ( "channel-123" ) )
testLines ( ) { java . io . File f = new java . io . File ( "src/test/resources/test.txt" ) ; org . walkmod . javalang . ast . CompilationUnit cu = org . walkmod . javalang . ASTManager . parse ( f ) ; "<AssertPlaceHolder>" ; System . out . println ( cu . toString ( ) ) ; } parse ( java . io . File ) { return org . wal...
org . junit . Assert . assertNotNull ( cu )
deveObterItensComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe310 . classes . nota . NFNotaInfo notaInfo = new com . fincatto . documentofiscal . nfe310 . classes . nota . NFNotaInfo ( ) ; final java . util . List < com . fincatto . documentofiscal . nfe310 . classes . nota . NFNotaInfoItem > itens = ja...
org . junit . Assert . assertEquals ( itens , notaInfo . getItens ( ) )
shouldThrowExceptionIfAddingNullValue ( ) { try { uk . gov . gchq . gaffer . cache . impl . JcsCacheTest . cache . put ( "test" , null ) ; org . junit . Assert . fail ( "Expected<sp>an<sp>exception" ) ; } catch ( final uk . gov . gchq . gaffer . cache . exception . CacheOperationException e ) { "<AssertPlaceHolder>" ; ...
org . junit . Assert . assertNotNull ( e . getMessage ( ) )
testHeartbeat_nullClient ( ) { net . roboconf . agent . internal . Agent agent = new net . roboconf . agent . internal . Agent ( ) ; "<AssertPlaceHolder>" ; net . roboconf . agent . internal . misc . HeartbeatTask task = new net . roboconf . agent . internal . misc . HeartbeatTask ( agent ) ; task . run ( ) ; } getMess...
org . junit . Assert . assertNull ( agent . getMessagingClient ( ) )
getProbeEmptyTest ( ) { probeConfig = null ; probe = probeHandler . getProbe ( probeConfig ) ; "<AssertPlaceHolder>" ; } getProbe ( io . fabric8 . maven . core . config . ProbeConfig ) { if ( probeConfig == null ) { return null ; } io . fabric8 . kubernetes . api . model . Probe probe = new io . fabric8 . kubernetes . ...
org . junit . Assert . assertNull ( probe )
givenMorningTime_ifMorningMessage_thenSuccess ( ) { java . lang . String expected = "Hello<sp>World,<sp>Good<sp>Morning" ; com . baeldung . greeter . library . Greeter greeter = new com . baeldung . greeter . library . Greeter ( com . baeldung . greeter . GreeterIntegrationTest . greetingConfig ) ; java . lang . String...
org . junit . Assert . assertEquals ( expected , actual )
testBadSimpleAppend ( ) { org . apache . flume . sink . hdfs . TestHDFSEventSink . LOG . debug ( "." 5 ) ; final java . lang . String fileName = "." 0 ; final long rollCount = 5 ; final long batchSize = 2 ; final int numBatches = 4 ; java . lang . String newPath = ( testPath ) + "/singleBucket" ; int totalEvents = 0 ; ...
org . junit . Assert . assertEquals ( 1 , sc . getEventWriteFail ( ) )
detectResultType_for_multiple_selected_attributes_should_return_LIST_OF_LIST_OF_OBJECT ( ) { org . springframework . data . simpledb . query . SimpleDbQueryMethod repositoryMethod = prepareQueryMethodToTest ( "selectFields" , org . springframework . data . simpledb . query . SampleEntity . class ) ; org . springframewo...
org . junit . Assert . assertEquals ( MultipleResultExecution . MultipleResultType . LIST_OF_LIST_OF_OBJECT , multipleResultExecution . detectResultType ( repositoryMethod ) )
testNotMatchesEither ( ) { when ( left . matches ( typeDescription , classLoader , module , net . bytebuddy . agent . builder . AgentBuilderRawMatcherDisjunctionTest . Foo . class , protectionDomain ) ) . thenReturn ( false ) ; when ( right . matches ( typeDescription , classLoader , module , net . bytebuddy . agent . ...
org . junit . Assert . assertThat ( rawMatcher . matches ( typeDescription , classLoader , module , net . bytebuddy . agent . builder . AgentBuilderRawMatcherDisjunctionTest . Foo . class , protectionDomain ) , org . hamcrest . CoreMatchers . is ( false ) )
Prioritynull3 ( ) { org . odata4j . core . OProperty < ? > expected = org . odata4j . core . OProperties . int32 ( SentMessage . P_PRIORITY . getName ( ) , 3 ) ; org . odata4j . core . OProperty < ? > result = this . setDefaultValue ( SentMessage . P_PRIORITY . build ( ) , SentMessage . P_PRIORITY . getName ( ) , org ....
org . junit . Assert . assertEquals ( expected . getValue ( ) , result . getValue ( ) )