input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
justPath ( ) { org . apache . shindig . common . uri . UriBuilder builder = new org . apache . shindig . common . uri . UriBuilder ( ) . setPath ( "/shindig" ) ; "<AssertPlaceHolder>" ; } toString ( ) { return super . toString ( ) . toLowerCase ( ) ; }
org . junit . Assert . assertEquals ( "/shindig" , builder . toString ( ) )
testPullRebase ( ) { insertAndAdd ( remoteGeogig . geogig , lines3 ) ; org . locationtech . geogig . api . RevCommit commit = remoteGeogig . geogig . command ( org . locationtech . geogig . api . porcelain . CommitOp . class ) . call ( ) ; expectedMaster . addFirst ( commit ) ; org . locationtech . geogig . api . porce...
org . junit . Assert . assertEquals ( expectedMaster , logged )
logHelperTest_configLogLevel_mapToConfigLogSeverity ( ) { java . util . logging . Level level = java . util . logging . Level . CONFIG ; dk . i2m . converge . core . logging . LogSeverity severity = dk . i2m . converge . core . logging . LogHelper . toSeverity ( level ) ; "<AssertPlaceHolder>" ; } toString ( ) { java ....
org . junit . Assert . assertEquals ( LogSeverity . CONFIG . toString ( ) , severity . toString ( ) )
test_withCurrencyUnit_Currency_same ( ) { org . joda . money . Money test = org . joda . money . TestMoney . GBP_2_34 . withCurrencyUnit ( org . joda . money . TestMoney . GBP ) ; "<AssertPlaceHolder>" ; } withCurrencyUnit ( org . joda . money . CurrencyUnit ) { return withCurrencyUnit ( currency , RoundingMode . UNNEC...
org . junit . Assert . assertSame ( org . joda . money . TestMoney . GBP_2_34 , test )
testBatchSendMail ( ) { long start = ( java . lang . System . currentTimeMillis ( ) ) / 1000 ; java . util . List < com . aliyuncs . dm . simple . Email . Address > addressList = new java . util . ArrayList < com . aliyuncs . dm . simple . Email . Address > ( ) ; addressList . add ( new com . aliyuncs . dm . simple . E...
org . junit . Assert . assertEquals ( ( ( allResult . length ( ) ) / 7 ) , 10 )
testCacheEntryWithMultipleVaryHeadersHasVariants ( ) { final org . apache . hc . core5 . http . Header [ ] headers = new org . apache . hc . core5 . http . Header [ ] { new org . apache . hc . core5 . http . message . BasicHeader ( "Vary" , "User-Agent" ) , new org . apache . hc . core5 . http . message . BasicHeader (...
org . junit . Assert . assertTrue ( entry . hasVariants ( ) )
testUnpackDoubleNegativeZero ( ) { "<AssertPlaceHolder>" ; } unpackDouble ( char ) { if ( com . jogamp . opengl . math . Binary16 . isNaN ( k ) ) { return Double . NaN ; } if ( k == ( com . jogamp . opengl . math . Binary16 . POSITIVE_INFINITY ) ) { return Double . POSITIVE_INFINITY ; } if ( k == ( com . jogamp . openg...
org . junit . Assert . assertTrue ( ( ( - 0.0 ) == ( com . jogamp . opengl . math . Binary16 . unpackDouble ( Binary16 . NEGATIVE_ZERO ) ) ) )
testDownstreamOma1 ( ) { final java . lang . String outPath = runJannovarOnVCFLine ( "/sv_header.vcf" , "1\t58942733\t.\tN\t<INV>\t.\t.\tSVTYPE=INV;END=58946074" ) ; final java . lang . String expected = "1\t58942733\t.\tN\t<INV>\t.\t.\tEND=58946074;" + ( "SVANN=downstream_gene_variant&structural_variant&coding_transcr...
org . junit . Assert . assertEquals ( expected , actual )
testParseNegativeReal ( ) { java . lang . String source = ( ( ( "-1" + ( getDecimalCharacter ( ) ) ) + "2323<sp>+<sp>1" ) + ( getDecimalCharacter ( ) ) ) + "4343i" ; org . apache . commons . math . complex . Complex expected = new org . apache . commons . math . complex . Complex ( ( - 1.2323 ) , 1.4343 ) ; org . apach...
org . junit . Assert . assertEquals ( expected , actual )
broadcastedRemotingRequest ( ) { lunchService . addLunchRestaurant ( com . avanza . astrix . integration . tests . TestLunchRestaurantBuilder . lunchRestaurant ( ) . withName ( "Martins<sp>Green<sp>Room" ) . build ( ) ) ; com . avanza . astrix . integration . tests . domain . api . LunchRestaurant r = lunchService . su...
org . junit . Assert . assertEquals ( "Martins<sp>Green<sp>Room" , r . getName ( ) )
handlerInitWithoutUrl ( ) { handler = new org . openhab . binding . mqtt . handler . BrokerHandler ( thing ) ; "<AssertPlaceHolder>" ; } initializeHandlerWaitForTimeout ( ) { org . eclipse . smarthome . io . transport . mqtt . MqttBrokerConnection c = connection ; org . openhab . binding . mqtt . handler . MqttConnecti...
org . junit . Assert . assertThat ( initializeHandlerWaitForTimeout ( ) , org . hamcrest . CoreMatchers . is ( true ) )
checkCaseNormalized ( ) { org . orcid . jaxb . model . v3 . rc2 . record . ExternalID id1 = new org . orcid . jaxb . model . v3 . rc2 . record . ExternalID ( ) ; id1 . setRelationship ( Relationship . SELF ) ; id1 . setType ( "agr" ) ; id1 . setValue ( "UPPER" ) ; id1 . setNormalized ( new org . orcid . jaxb . model . ...
org . junit . Assert . assertEquals ( id1 , id2 )
testIsEmpty_oneSimpleKey ( ) { setOneSimpleKey ( ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return this . delegate . isEmpty ( ) ; }
org . junit . Assert . assertFalse ( tree . isEmpty ( ) )
testHasOthersTrue ( ) { com . sonyericsson . hudson . plugins . gerrit . trigger . hudsontrigger . data . TriggerContext context = new com . sonyericsson . hudson . plugins . gerrit . trigger . hudsontrigger . data . TriggerContext ( ) ; hudson . model . AbstractProject project = mockProject ( "myProject" ) ; context ....
org . junit . Assert . assertTrue ( context . hasOthers ( ) )
testCondMapping1 ( ) { org . nd4j . linalg . factory . Nd4j . create ( 1 ) ; lombok . val tg = org . nd4j . imports . graphmapper . tf . TFGraphMapper . getInstance ( ) . importGraph ( new org . nd4j . linalg . io . ClassPathResource ( "tf_graphs/examples/simpleif_0/frozen_model.pb" ) . getInputStream ( ) ) ; "<AssertP...
org . junit . Assert . assertNotNull ( tg )
testDatasetWithoutApp ( ) { deployApplication ( testSpace , io . cdap . cdap . test . app . DummyApp . class ) ; deployDatasetModule ( testSpace . datasetModule ( "my-kv" ) , AppsWithDataset . KeyValueTableDefinition . Module . class ) ; addDatasetInstance ( "myKeyValueTable" , testSpace . dataset ( "myTable" ) , Datas...
org . junit . Assert . assertEquals ( "hello" , dataSetManager . get ( ) . get ( "test" ) )
shouldBeAbleToStartAndShutdownMultipleTimesTheDBWithoutCommittingTransactions ( ) { org . neo4j . graphdb . factory . GraphDatabaseBuilder graphDatabaseBuilder = builder . setConfig ( GraphDatabaseSettings . check_point_interval_time , "300m" ) . setConfig ( GraphDatabaseSettings . check_point_interval_tx , "10000" ) ....
org . junit . Assert . assertEquals ( 2 , checkPoints . size ( ) )
testShouldBeAbleToTypeIntoTinyMCE ( ) { driver . get ( appServer . whereIs ( "tinymce.html" ) ) ; driver . switchTo ( ) . frame ( "mce_0_ifr" ) ; org . openqa . selenium . WebElement editable = driver . findElement ( org . openqa . selenium . By . id ( "tinymce" ) ) ; editable . clear ( ) ; editable . sendKeys ( "chees...
org . junit . Assert . assertThat ( editable . getText ( ) , org . hamcrest . Matchers . equalTo ( "cheese" ) )
testPostSiteDataRecordCollectionPermission ( ) { "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( true )
testSetReader ( ) { java . io . File aux = new java . io . File ( "src/test/resources/xml" ) ; aux . mkdirs ( ) ; java . io . File xml = new java . io . File ( aux , "walkmod.xml" ) ; org . walkmod . conf . providers . XMLConfigurationProvider prov = new org . walkmod . conf . providers . XMLConfigurationProvider ( xml...
org . junit . Assert . assertTrue ( output . contains ( "walkmod:commons:file-reader" ) )
shouldReturnFalseWhenViewValidateWithInvalidElement ( ) { final uk . gov . gchq . gaffer . data . elementdefinition . view . View view = mock ( uk . gov . gchq . gaffer . data . elementdefinition . view . View . class ) ; final java . lang . String group = uk . gov . gchq . gaffer . commonutil . TestGroups . EDGE ; fin...
org . junit . Assert . assertFalse ( isValid )
testFetchEntitledConsumerUuids ( ) { org . candlepin . model . Consumer c1 = createMockConsumer ( owner , false ) ; org . candlepin . model . Entitlement e1 = new org . candlepin . model . Entitlement ( pool , c1 , owner , 1 ) ; java . lang . String id1 = org . candlepin . util . Util . generateDbUUID ( ) ; e1 . setId ...
org . junit . Assert . assertEquals ( expected , actual )
idNullTest ( ) { org . marc . everest . datatypes . generic . SET < org . marc . everest . datatypes . II > ids = org . oscarehr . e2e . model . export . body . AlertsModelTest . nullAlertsModel . getIds ( ) ; "<AssertPlaceHolder>" ; } getIds ( ) { return ids ; }
org . junit . Assert . assertNotNull ( ids )
testDynamicQueryByProjectionMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . segments . model . SegmentsEntry . class , _dynamicQueryClassLoader ) ; dynamicQuery . setProjection ( co...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
testUpdateMapWillNotRemoveItemWhoseKeyIsNotPresentInSourceMapIfRemoveOrphansIsFalse ( ) { com . codiform . moo . MapPropertyUpdateTest . ValueDtoMap dtoMap = new com . codiform . moo . MapPropertyUpdateTest . ValueDtoMap ( ) ; dtoMap . put ( "iPhone<sp>4S" , new com . codiform . moo . MapPropertyUpdateTest . ValueDto (...
org . junit . Assert . assertEquals ( 3 , valueMap . size ( ) )
ShouldGetArray ( ) { org . atomhopper . postgres . query . PostgreSQLTextArray array = new org . atomhopper . postgres . query . PostgreSQLTextArray ( multiEntry ) ; java . lang . String [ ] s = ( ( java . lang . String [ ] ) ( array . getArray ( ) ) ) ; "<AssertPlaceHolder>" ; } getArray ( ) { return ( stringArray ) =...
org . junit . Assert . assertTrue ( java . util . Arrays . equals ( s , multiEntry ) )
getAlias ( ) { when ( view . getInsertedAlias ( ) ) . thenReturn ( "alias" ) ; java . lang . String aliasResult = addGlobalPopup . getAlias ( ) ; "<AssertPlaceHolder>" ; } getAlias ( ) { return view . getInsertedAlias ( ) ; }
org . junit . Assert . assertEquals ( "alias" , aliasResult )
shouldGetNullWhenSelectNull ( ) { cn . jimmyshi . beanquery . selectors . BeanSelector < java . lang . String > stringBeanSelector = new cn . jimmyshi . beanquery . selectors . BeanSelector < java . lang . String > ( java . lang . String . class ) ; java . lang . String result = stringBeanSelector . select ( ( ( java ....
org . junit . Assert . assertNull ( result )
testGetMenuCategories ( ) { System . out . println ( "getMenuCategorie" ) ; kg . apc . jmeter . vizualizers . MergeResultsGui instance = new kg . apc . jmeter . vizualizers . MergeResultsGui ( ) ; java . lang . String expResult = org . apache . jmeter . gui . util . MenuFactory . NON_TEST_ELEMENTS ; java . util . Colle...
org . junit . Assert . assertEquals ( expResult , it . next ( ) )
testCellLocalAccessToken ( ) { java . lang . String base = "https://localhost:8080/dc1-core/testcell1/__role/__/" ; java . util . List < com . fujitsu . dc . common . auth . token . Role > roleList = new java . util . ArrayList < com . fujitsu . dc . common . auth . token . Role > ( ) ; roleList . add ( new com . fujit...
org . junit . Assert . assertEquals ( tokenStr , token2 . toTokenString ( ) )
testReadGenerationChanged ( ) { com . google . cloud . storage . BlobId blobId = com . google . cloud . storage . BlobId . of ( com . google . cloud . storage . BlobReadChannelTest . BUCKET_NAME , com . google . cloud . storage . BlobReadChannelTest . BLOB_NAME ) ; reader = new com . google . cloud . storage . BlobRead...
org . junit . Assert . assertEquals ( messageBuilder . toString ( ) , ex . getMessage ( ) )
list_contains_any_java8_lambda ( ) { boolean vehiclesContainDodge = vehicles . stream ( ) . anyMatch ( ( p ) -> p . manufacturer . equals ( "Dodge" ) ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ( this ) == obj ) return true ; if ( obj == null ) return false ; if ( ( getClass ( ) ) != ( obj . ge...
org . junit . Assert . assertTrue ( vehiclesContainDodge )
shouldFindPenaltyCategoryEntityByType ( ) { org . mifos . accounts . penalties . business . PenaltyCategoryEntity found = penaltyDao . findPenaltyCategoryEntityByType ( categoryEntity . getPenaltyCategory ( ) ) ; "<AssertPlaceHolder>" ; } getId ( ) { return id ; }
org . junit . Assert . assertThat ( found . getId ( ) , org . hamcrest . CoreMatchers . is ( categoryEntity . getId ( ) ) )
testTransformGroupRatingsData ( ) { com . liferay . portlet . ratings . transformer . RatingsDataTransformerUtilTest . _atomicState . reset ( ) ; com . liferay . portal . kernel . util . UnicodeProperties oldUnicodeProperties = new com . liferay . portal . kernel . util . UnicodeProperties ( ) ; oldUnicodeProperties . ...
org . junit . Assert . assertTrue ( com . liferay . portlet . ratings . transformer . RatingsDataTransformerUtilTest . _atomicState . isSet ( ) )
testDotpScalar ( ) { hivemall . tools . vector . VectorDotUDF udf = new hivemall . tools . vector . VectorDotUDF ( ) ; udf . initialize ( new org . apache . hadoop . hive . serde2 . objectinspector . ObjectInspector [ ] { org . apache . hadoop . hive . serde2 . objectinspector . ObjectInspectorFactory . getStandardList...
org . junit . Assert . assertEquals ( expected , actual )
noImplicitFormForTextAreas ( ) { org . jsoup . nodes . Document doc = org . jsoup . Jsoup . parse ( "<textarea>One</textarea>" ) ; "<AssertPlaceHolder>" ; } body ( ) { prepareByteData ( ) ; java . lang . String body ; if ( ( charset ) == null ) body = java . nio . charset . Charset . forName ( DataUtil . defaultCharset...
org . junit . Assert . assertEquals ( "<textarea>One</textarea>" , doc . body ( ) . html ( ) )
testDescOrder ( ) { sqlText = "select<sp>b1,<sp>c1,<sp>d1<sp>from<sp>t1_desc<sp>--splice-properties<sp>index=idx_t1_desc\n<sp>where<sp>b1=2<sp>order<sp>by<sp>b1<sp>desc,c1<sp>desc,<sp>d1<sp>asc<sp>{limit<sp>10}" ; expected = "B1<sp>|C1<sp>|D1<sp>|\n" + ( ( ( "------------\n" + "<sp>2<sp>|<sp>3<sp>|30<sp>|\n" ) + "<sp>2...
org . junit . Assert . assertEquals ( expected , TestUtils . FormattedResult . ResultFactory . toStringUnsorted ( rs ) )
getBillingRunStartTimeInMs_default ( ) { long expectedStartTime = 0 ; long billingOffset = ( 4 * ( org . oscm . configurationservice . bean . BillingOffsetTest . DAY_IN_MS ) ) + expectedStartTime ; doReturn ( java . lang . Long . valueOf ( billingOffset ) ) . when ( configServiceBean ) . getLongConfigurationSetting ( C...
org . junit . Assert . assertEquals ( expectedStartTime , result )
testSubscriptionAuth ( ) { final org . eclipse . hono . adapter . mqtt . CommandSubscription subscription = org . eclipse . hono . adapter . mqtt . CommandSubscription . fromTopic ( "control/tenant/device/req/#" , device ) ; "<AssertPlaceHolder>" ; } fromTopic ( java . lang . String , org . eclipse . hono . auth . Devi...
org . junit . Assert . assertNotNull ( subscription )
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 )
level2Miss ( ) { final int i = 1 << ( ( com . zaxxer . sparsebits . SparseBitSet . SHIFT3 ) + ( com . zaxxer . sparsebits . SparseBitSet . SHIFT2 ) ) ; set . set ( i ) ; final int ret = set . previousClearBit ( i ) ; "<AssertPlaceHolder>" ; } previousClearBit ( int ) { if ( i < 0 ) { if ( i == ( - 1 ) ) return - 1 ; th...
org . junit . Assert . assertEquals ( ( i - 1 ) , ret )
testParseCubeWerx_RoadSeg ( ) { final java . lang . String [ ] properties = new java . lang . String [ ] { "lastUpdateDate" , "geometry" , "status" , "isAnchorSection" } ; final javax . xml . namespace . QName featureName = org . geotools . data . wfs . WFSTestData . CUBEWERX_ROADSEG . TYPENAME ; final java . net . URL...
org . junit . Assert . assertEquals ( ( - 1 ) , nof )
testAcceptValidParameter ( ) { final org . openspotlight . graph . query . console . ConsoleState state = new org . openspotlight . graph . query . console . ConsoleState ( null ) ; state . setInput ( "show<sp>query" ) ; "<AssertPlaceHolder>" ; } accept ( org . openspotlight . graph . query . console . ConsoleState ) {...
org . junit . Assert . assertThat ( command . accept ( state ) , org . hamcrest . core . Is . is ( true ) )
testSignatureKeyValue ( ) { org . apache . cxf . service . Service service = createService ( ) ; org . apache . wss4j . stax . ext . WSSSecurityProperties inProperties = new org . apache . wss4j . stax . ext . WSSSecurityProperties ( ) ; inProperties . setCallbackHandler ( new org . apache . cxf . ws . security . wss4j...
org . junit . Assert . assertEquals ( "test" , echo . echo ( "test" ) )
testRefreshUserToGroupsMappings ( ) { org . apache . hadoop . yarn . server . api . protocolrecords . RefreshUserToGroupsMappingsRequest request = recordFactory . newRecordInstance ( org . apache . hadoop . yarn . server . api . protocolrecords . RefreshUserToGroupsMappingsRequest . class ) ; org . apache . hadoop . ya...
org . junit . Assert . assertNotNull ( response )
testSerdeGivenMultipleTopicOffsets ( ) { java . util . Queue < com . github . fhuss . kafka . streams . cep . nfa . ComputationStage < java . lang . String , java . lang . String > > computationStages = new java . util . concurrent . LinkedBlockingQueue ( ) ; java . util . Map < java . lang . String , java . lang . Lon...
org . junit . Assert . assertEquals ( states , result )
givenUsingCommonsIoWithCopy_whenConvertingAnInputStreamToAString_thenCorrect ( ) { final java . lang . String originalString = org . apache . commons . lang3 . RandomStringUtils . randomAlphabetic ( org . baeldung . java . io . JavaInputStreamToXUnitTest . DEFAULT_SIZE ) ; final org . baeldung . java . io . InputStream...
org . junit . Assert . assertThat ( writer . toString ( ) , org . hamcrest . Matchers . equalTo ( originalString ) )
testLocaleObserver ( ) { localeService . addServiceListener ( new husacct . common . services . IServiceListener ( ) { @ husaccttest . control . Override public void update ( ) { "<AssertPlaceHolder>" ; } } ) ; localeService . notifyServiceListeners ( ) ; } update ( ) { initializeAllScreens ( ) ; reloadGUIText ( ) ; }
org . junit . Assert . assertEquals ( true , true )
testExonOverlapDuplicationOma1 ( ) { final java . lang . String outPath = runJannovarOnVCFLine ( "/sv_header.vcf" , "1\t58946844\t.\tN\t<CNV>\t.\t.\tSVTYPE=CNV;END=58946946" ) ; final java . lang . String expected = "1\t58946844\t.\tN\t<CNV>\t.\t.\tEND=58946946;" + ( "SVANN=copy_number_change&structural_variant&coding_...
org . junit . Assert . assertEquals ( expected , actual )
carbon_12 ( ) { org . openscience . cdk . interfaces . IAtom a = g2c . toCDKAtom ( uk . ac . ebi . beam . AtomBuilder . aliphatic ( Element . Carbon ) . hydrogens ( 4 ) . isotope ( 12 ) . build ( ) , 4 ) ; "<AssertPlaceHolder>" ; } getMassNumber ( ) { return java . lang . Integer . valueOf ( 1 ) ; }
org . junit . Assert . assertThat ( a . getMassNumber ( ) , org . hamcrest . CoreMatchers . is ( 12 ) )
testDuplicates ( ) { java . util . Set < org . redisson . TestObject > set = redisson . getSet ( "set" ) ; set . add ( new org . redisson . TestObject ( "1" , "2" ) ) ; set . add ( new org . redisson . TestObject ( "1" , "2" ) ) ; set . add ( new org . redisson . TestObject ( "2" , "3" ) ) ; set . add ( new org . redis...
org . junit . Assert . assertEquals ( 4 , set . size ( ) )
deleteRoles ( ) { final java . lang . String manager = "manager" ; final java . lang . String developer = "developer" ; final org . bonitasoft . engine . identity . Role role1 = getIdentityAPI ( ) . createRole ( manager ) ; final org . bonitasoft . engine . identity . Role role2 = getIdentityAPI ( ) . createRole ( deve...
org . junit . Assert . assertEquals ( 0 , numberOfRoles )
testTimeout ( ) { com . ibm . ws . microprofile . faulttolerance . spi . TimeoutPolicy timeout = com . ibm . ws . microprofile . faulttolerance . spi . FaultToleranceProvider . newTimeoutPolicy ( ) ; timeout . setTimeout ( java . time . Duration . ofMillis ( 500 ) ) ; com . ibm . ws . microprofile . faulttolerance . sp...
org . junit . Assert . assertEquals ( "NOT_RUN" , executions )
testTwoRulesAndMatchesSecond ( ) { com . tacitknowledge . flip . model . FeatureRule rule = new com . tacitknowledge . flip . model . FeatureRule ( ) ; rule . setState ( FeatureState . DISABLED ) ; com . tacitknowledge . flip . model . FeatureCondition condition = new com . tacitknowledge . flip . model . FeatureCondit...
org . junit . Assert . assertEquals ( FeatureState . ENABLED , state )
collectionOfAllNullsWillReturnEmptyList ( ) { java . util . List < java . lang . String > compacted = com . khartec . waltz . common . ListUtilities . compact ( com . khartec . waltz . common . ListUtilities . newArrayList ( null , null ) ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( compacted . isEmpty ( ) )
testFormatsExceptionNullArg ( ) { try { boolean result = classUnderTest . formatsException ( null ) ; "<AssertPlaceHolder>" ; } catch ( java . lang . Exception e ) { if ( ! ( e instanceof java . lang . IllegalArgumentException ) ) { org . junit . Assert . fail ( ( "Expected<sp>IllegalArgumentException.<sp>Instead<sp>en...
org . junit . Assert . assertFalse ( result )
testFetchByPrimaryKeyExisting ( ) { com . liferay . polls . model . PollsChoice newPollsChoice = addPollsChoice ( ) ; com . liferay . polls . model . PollsChoice existingPollsChoice = _persistence . fetchByPrimaryKey ( newPollsChoice . getPrimaryKey ( ) ) ; "<AssertPlaceHolder>" ; } getPrimaryKey ( ) { return _amImageE...
org . junit . Assert . assertEquals ( existingPollsChoice , newPollsChoice )
givenPhraseWithType_whenUseFuzziness_thenQueryMatches ( ) { final org . springframework . data . elasticsearch . core . query . SearchQuery searchQuery = new org . springframework . data . elasticsearch . core . query . NativeSearchQueryBuilder ( ) . withQuery ( matchQuery ( "title" , "spring<sp>date<sp>elasticserch" )...
org . junit . Assert . assertEquals ( 1 , articles . size ( ) )
insertFirstEmpty ( ) { lijst = new nl . hr . cmi . infdev226a . GelinkteLijst ( ) ; lijst . insertFirst ( 1 ) ; "<AssertPlaceHolder>" ; } getFirst ( ) { return first . data ; }
org . junit . Assert . assertEquals ( 1 , lijst . getFirst ( ) )
testGenerateName_withZeroLength ( ) { final com . valkryst . generator . CombinatorialGenerator nameGenerator = new com . valkryst . generator . CombinatorialGenerator ( beginnings , middles , endings ) ; final java . lang . String result = nameGenerator . generateName ( 0 ) ; "<AssertPlaceHolder>" ; } generateName ( i...
org . junit . Assert . assertTrue ( ( ( result . length ( ) ) >= 2 ) )
shouldNotFailWithNoProject ( ) { setupSortedProjects ( java . util . Collections . < org . apache . maven . project . MavenProject > emptyList ( ) ) ; rule . execute ( helper ) ; "<AssertPlaceHolder>" ; } execute ( org . apache . maven . enforcer . rule . api . EnforcerRuleHelper ) { org . apache . maven . plugin . log...
org . junit . Assert . assertTrue ( true )
testSyntheticObserverIgnored ( javax . enterprise . inject . spi . BeanManager ) { java . util . Set < javax . enterprise . inject . spi . ObserverMethod < ? super java . lang . String > > observerMethods = beanManager . resolveObserverMethods ( "foo" , Juicy . Literal . INSTANCE ) ; "<AssertPlaceHolder>" ; } size ( ) ...
org . junit . Assert . assertEquals ( 1 , observerMethods . size ( ) )
testWatcheeQuarantined ( ) { org . apache . flink . runtime . akka . QuarantineMonitorTest . TestingQuarantineHandler quarantineHandler = new org . apache . flink . runtime . akka . QuarantineMonitorTest . TestingQuarantineHandler ( ) ; akka . actor . ActorRef watchee = null ; akka . actor . ActorRef watcher = null ; a...
org . junit . Assert . assertEquals ( actorSystem1Address . toString ( ) , quarantineFuture . get ( ) )
detectWithIfNone ( ) { java . lang . Iterable < java . lang . Integer > iterable = new com . gs . collections . impl . utility . internal . IterableIterateTest . IterableAdapter ( this . getIntegerList ( ) ) ; "<AssertPlaceHolder>" ; } detectWithIfNone ( java . lang . Iterable , com . gs . collections . api . block . p...
org . junit . Assert . assertNull ( com . gs . collections . impl . utility . Iterate . detectWithIfNone ( iterable , Object :: equals , 6 , null ) )
testDecodeULE128LongOverflow2 ( ) { byte [ ] input = new byte [ ] { ( ( byte ) ( 255 ) ) , ( ( byte ) ( 255 ) ) , ( ( byte ) ( 255 ) ) , ( ( byte ) ( 255 ) ) , ( ( byte ) ( 255 ) ) , ( ( byte ) ( 255 ) ) , ( ( byte ) ( 255 ) ) , ( ( byte ) ( 255 ) ) , ( ( byte ) ( 127 ) ) } ; io . netty . buffer . ByteBuf in = io . net...
org . junit . Assert . assertEquals ( readerIndex , in . readerIndex ( ) )
testSimpleWithDecimalsTrunc ( ) { org . hipparchus . geometry . euclidean . threed . Vector3D c = new org . hipparchus . geometry . euclidean . threed . Vector3D ( 1.232323232323 , 1.434343434343 , 1.633333333333 ) ; java . lang . String expected = ( ( ( ( ( "{1" + ( getDecimalCharacter ( ) ) ) + "2323232323;<sp>1" ) +...
org . junit . Assert . assertEquals ( expected , actual )
testTriesNoMoreThanMaxTimes ( ) { final int maxAttempts = 10 ; com . google . appengine . tools . cloudstorage . RetryParams params = new com . google . appengine . tools . cloudstorage . RetryParams . Builder ( ) . initialRetryDelayMillis ( 0 ) . totalRetryPeriodMillis ( 60000 ) . retryMinAttempts ( 0 ) . retryMaxAtte...
org . junit . Assert . assertEquals ( maxAttempts , timesCalled . get ( ) )
testIterator ( ) { System . out . println ( "iterator" ) ; kg . apc . charting . AbstractGraphRow instance = new kg . apc . charting . AbstractGraphRowTest . AbstractGraphRowImpl ( ) ; java . util . Iterator result = instance . iterator ( ) ; "<AssertPlaceHolder>" ; } iterator ( ) { return graphRow . iterator ( ) ; }
org . junit . Assert . assertNotNull ( result )
emptyBySort ( ) { xxl . java . container . map . Multimap < org . smtlib . ISort , fr . inria . lille . commons . synthesis . expression . ObjectTemplate < ? > > bySort = fr . inria . lille . commons . synthesis . expression . ObjectTemplate . bySort ( ( ( java . util . List ) ( java . util . Arrays . asList ( ) ) ) ) ...
org . junit . Assert . assertTrue ( bySort . isEmpty ( ) )
methodMultipleRulesAreRun ( ) { org . junit . tests . experimental . rules . TestRuleTest . runCount = 0 ; org . junit . runner . JUnitCore . runClasses ( org . junit . tests . experimental . rules . TestRuleTest . MethodMultipleRuleTest . class ) ; "<AssertPlaceHolder>" ; } runClasses ( java . lang . Class [ ] ) { ret...
org . junit . Assert . assertEquals ( 2 , org . junit . tests . experimental . rules . TestRuleTest . runCount )
testPutStringKeysRandomOrder ( ) { edu . ucla . sspace . util . TrieMap < java . lang . String > m = new edu . ucla . sspace . util . TrieMap < java . lang . String > ( ) ; java . lang . String [ ] arr = new java . lang . String [ ] { "apple" , "banana" , "coconut" , "daffodol" , "edamame" , "fig" , "hummus" , "grapes"...
org . junit . Assert . assertEquals ( arr . length , m . size ( ) )
testGetRolesFromNullListids ( ) { getTransactionService ( ) . begin ( ) ; final long id1 = new java . util . Date ( ) . getTime ( ) ; final org . bonitasoft . engine . identity . model . SRole role1 = org . bonitasoft . engine . builder . BuilderFactory . get ( org . bonitasoft . engine . identity . model . builder . S...
org . junit . Assert . assertEquals ( 0 , retrievedUsers . size ( ) )
copiesComponentFromOtherUri ( java . lang . String , java . lang . String , java . lang . String ) { java . net . URI uri = javax . ws . rs . core . UriBuilder . fromUri ( source ) . uri ( otherUri ) . build ( ) ; "<AssertPlaceHolder>" ; } create ( javax . servlet . http . HttpServletRequest ) { final java . net . URL ...
org . junit . Assert . assertEquals ( java . net . URI . create ( expected ) , uri )
testEvaluate_DNSMessage_noParentMsgId_assertNullId ( ) { org . nhindirect . monitor . expression . MessageIdCorrelationExpression exp = new org . nhindirect . monitor . expression . MessageIdCorrelationExpression ( ) ; java . util . Map < java . lang . String , org . nhindirect . common . tx . model . TxDetail > detail...
org . junit . Assert . assertNull ( exp . evaluate ( exchange , java . lang . String . class ) )
convert_when_TextMessage_has_JMSType ( ) { java . lang . String jmsType = "TestJMSType" ; javax . jms . TextMessage message = new org . apache . activemq . command . ActiveMQTextMessage ( ) ; message . setJMSType ( jmsType ) ; javax . jms . TextMessage result = uut . convert ( message ) ; "<AssertPlaceHolder>" ; } getJ...
org . junit . Assert . assertEquals ( jmsType , result . getJMSType ( ) )
isMultipleJoinFetch2LevelsWorking ( ) { final com . uaihebert . model . EasyCriteria < com . uaihebert . model . test . Person > easyCriteria = com . uaihebert . uaicriteria . base . element . EasyCriteriaFactory . createQueryCriteria ( getEntityManager ( ) , com . uaihebert . model . test . Person . class ) ; easyCrit...
org . junit . Assert . assertTrue ( ( ( result . size ( ) ) > 0 ) )
returnsNoEventsWhenCalledOnEmptyStream ( ) { final java . lang . String stream = generateStreamName ( ) ; com . github . msemys . esjc . StreamEventsSlice slice = eventstore . readStreamEventsBackward ( stream , StreamPosition . END , 1 , false ) . join ( ) ; "<AssertPlaceHolder>" ; } generateStreamName ( ) { return ne...
org . junit . Assert . assertTrue ( slice . events . isEmpty ( ) )
sendHasCorrectHttpsMethod ( ) { final com . microsoft . azure . sdk . iot . device . transport . https . HttpsMethod expectedMethod = com . microsoft . azure . sdk . iot . device . transport . https . HttpsMethod . GET ; final byte [ ] body = new byte [ 0 ] ; new tests . unit . com . microsoft . azure . sdk . iot . dev...
org . junit . Assert . assertThat ( testMethod , org . hamcrest . CoreMatchers . is ( expectedMethod ) )
testIsSharedCache ( ) { "<AssertPlaceHolder>" ; } isSharedCache ( ) { return sharedCache ; }
org . junit . Assert . assertTrue ( config . isSharedCache ( ) )
setParameterValue_doubleSetButSecondWrongDatabase ( ) { liquibase . changelog . ChangeLogParameters changeLogParameters = new liquibase . changelog . ChangeLogParameters ( new liquibase . database . core . H2Database ( ) ) ; changeLogParameters . set ( "doubleSet" , "originalValue" , new liquibase . ContextExpression (...
org . junit . Assert . assertEquals ( "newValue" , changeLogParameters . getValue ( "doubleSet" , null ) )
testDeleteCalendarBookingWithoutAllRecurringInstances ( ) { com . liferay . portal . kernel . service . ServiceContext serviceContext = createServiceContext ( ) ; com . liferay . calendar . model . CalendarBooking calendarBooking = com . liferay . calendar . test . util . CalendarBookingTestUtil . addDailyRecurringCale...
org . junit . Assert . assertEquals ( titleMap , calendarBookingInstance . getTitleMap ( ) )
getCategorySelection ( ) { java . util . List < org . oscm . ui . model . CategoryRow > s = m . getCategorySelection ( ) ; "<AssertPlaceHolder>" ; } getCategorySelection ( ) { java . util . List < org . oscm . ui . model . CategoryRow > s = m . getCategorySelection ( ) ; org . junit . Assert . assertNull ( s ) ; }
org . junit . Assert . assertNull ( s )
testFile4 ( ) { eu . europa . esig . dss . DSSDocument dssDocument = new eu . europa . esig . dss . FileDocument ( "src/test/resources/validation/dss-916/test.txt.signed.qes.detached.p7s" ) ; eu . europa . esig . dss . validation . SignedDocumentValidator validator = eu . europa . esig . dss . validation . SignedDocume...
org . junit . Assert . assertTrue ( archiveTimestamp . isMessageImprintDataIntact ( ) )
testBuildClientResponseToBytes ( ) { java . lang . String expectedMesssage = "n,,auth=Bearer<sp>123.345.567nineteen=42" ; java . util . Map < java . lang . String , java . lang . String > extensions = new java . util . HashMap ( ) ; extensions . put ( "nineteen" , "42" ) ; org . apache . kafka . common . security ....
org . junit . Assert . assertEquals ( expectedMesssage , message )
testPlanarImageTranslatedChild ( ) { java . awt . image . SampleModel sm = new java . awt . image . ComponentSampleModel ( java . awt . image . DataBuffer . TYPE_BYTE , 128 , 128 , 1 , 128 , new int [ ] { 0 } ) ; javax . media . jai . TiledImage source = new javax . media . jai . TiledImage ( 0 , 0 , 512 , 512 , 0 , 0 ...
org . junit . Assert . assertEquals ( 16 , tiles . length )
removeInitialCode ( ) { java . lang . Long initialCode = 2L ; cache . removeInitialCode ( initialCode ) ; java . util . Set < java . lang . String > initialCodes = template . opsForSet ( ) . members ( InitialCodeCache . IN_USE_INITIAL_CODES ) ; "<AssertPlaceHolder>" ; } removeInitialCode ( java . lang . Long ) { templa...
org . junit . Assert . assertFalse ( initialCodes . contains ( initialCode ) )
test ( ) { System . out . println ( "AvgAggregatorTest" ) ; org . calrissian . flowmix . api . aggregator . AvgAggregator instance = new org . calrissian . flowmix . api . aggregator . AvgAggregator ( ) ; instance . add ( ( ( long ) ( 1 ) ) ) ; instance . add ( ( ( long ) ( 10 ) ) ) ; instance . add ( ( ( long ) ( - 5 ...
org . junit . Assert . assertEquals ( expectedResult , result )
itShouldProvidePropertyTree ( ) { hydrograph . ui . propertywindow . testdata . PropertyStore propertyStore = new hydrograph . ui . propertywindow . testdata . PropertyStore ( ) ; java . util . ArrayList < hydrograph . ui . propertywindow . property . Property > inputComponentProperties = propertyStore . getProperties ...
org . junit . Assert . assertEquals ( expectedTree , propertyTreeBuilder . getPropertyTree ( ) . toString ( ) )
testProduceAndConsumeFromDurableQueueAfterServerRestart ( ) { org . apache . activemq . artemis . api . core . SimpleString queue = org . apache . activemq . artemis . utils . RandomUtil . randomSimpleString ( ) ; org . apache . activemq . artemis . api . core . SimpleString address = org . apache . activemq . artemis ...
org . junit . Assert . assertNotNull ( message )
testFindByKeyAndValue ( ) { java . lang . String val1 = "100" ; java . lang . String val2 = "200" ; java . lang . String keyVal1 = "alpha" ; java . lang . String keyVal2 = "bravo" ; org . oscarehr . common . model . Prevention prevention1 = new org . oscarehr . common . model . Prevention ( ) ; org . oscarehr . common ...
org . junit . Assert . assertTrue ( true )
testNothing ( ) { java . lang . String data = "data-nothing" ; toTest . nothing ( data ) ; "<AssertPlaceHolder>" ; } get ( ) { return value ; }
org . junit . Assert . assertEquals ( data , toTest . get ( ) )
testCreateFunctionalStatusSectionBuilder ( ) { org . openhealthtools . mdht . uml . cda . builder . SectionBuilder < org . openhealthtools . mdht . uml . cda . hitsp . FunctionalStatusSection > sectionBuilder = org . openhealthtools . mdht . uml . cda . hitsp . builder . HITSPBuilderFactory . createFunctionalStatusSect...
org . junit . Assert . assertNotNull ( section )
xlarge ( ) { int count = 100000 ; for ( int i = 0 ; i < count ; i ++ ) { put ( 100 ) ; put ( 300 ) ; put ( 200 ) ; put ( 400 ) ; } com . asakusafw . utils . io . Source < org . apache . hadoop . io . IntWritable > results = sort ( ) ; for ( int value : new int [ ] { 100 , 200 , 300 , 400 } ) { for ( int i = 0 ; i < cou...
org . junit . Assert . assertThat ( results . next ( ) , is ( false ) )
testStandaardConstructor ( ) { nl . bzk . brp . web . AbstractAntwoordBericht antwoordBericht = new nl . bzk . brp . web . AbstractAntwoordBericht ( ) { } ; "<AssertPlaceHolder>" ; } getMeldingen ( ) { return meldingen ; }
org . junit . Assert . assertNull ( antwoordBericht . getMeldingen ( ) )
testMap ( ) { java . util . Map < java . lang . String , com . ctrip . xpipe . redis . core . meta . DcInfo > dcInfos = new java . util . HashMap ( ) ; dcInfos . put ( "jq" , new com . ctrip . xpipe . redis . core . meta . DcInfo ( "address1" ) ) ; dcInfos . put ( "oy" , new com . ctrip . xpipe . redis . core . meta . ...
org . junit . Assert . assertEquals ( dcInfos , decode )
shouldStoreAndReadBackfillWithDescription ( ) { final com . spotify . styx . model . Backfill backfill = com . spotify . styx . model . Backfill . newBuilder ( ) . id ( "backfill-2" ) . start ( java . time . Instant . parse ( "2017-01-01T00:00:00Z" ) ) . end ( java . time . Instant . parse ( "2017-01-02T00:00:00Z" ) ) ...
org . junit . Assert . assertThat ( storage . getBackfill ( backfill . id ( ) ) , org . hamcrest . Matchers . equalTo ( java . util . Optional . of ( backfill ) ) )
testExecute4 ( ) { org . support . project . common . bat . BatJob job = org . support . project . common . bat . BatJob . get ( ) ; job . setCurrentDirectory ( new java . io . File ( "src/test/resources/org/support/project/common/bat/" ) ) ; job . addCommand ( "./test.sh" ) ; job . setTimeOutMilliSecond ( 1000 ) ; org...
org . junit . Assert . assertEquals ( 0 , result . getResultCode ( ) )
testComponentArrays ( ) { com . comphenix . protocol . events . PacketContainer signChange = new com . comphenix . protocol . events . PacketContainer ( PacketType . Play . Server . TILE_ENTITY_DATA ) ; com . comphenix . protocol . events . WrappedChatComponent [ ] components = new com . comphenix . protocol . events ....
org . junit . Assert . assertArrayEquals ( components , back )
test_getUserComponentFolder_setPreference_notExisted ( ) { org . talend . updates . runtime . engine . component . LocalComponentsInstallComponent installComp = new org . talend . updates . runtime . engine . component . LocalComponentsInstallComponentTest . LocalComponentsInstallComponentTestClass ( ) ; org . eclipse ...
org . junit . Assert . assertEquals ( prodFolder , installingComponentFolder )
testCreateColorSpaceFromKnownProfileReturnsInternalCS_GRAY ( ) { java . awt . color . ICC_Profile profile = java . awt . color . ICC_Profile . getInstance ( ColorSpace . CS_GRAY ) ; java . awt . color . ICC_ColorSpace created = com . twelvemonkeys . imageio . color . ColorSpaces . createColorSpace ( profile ) ; "<Asser...
org . junit . Assert . assertSame ( java . awt . color . ColorSpace . getInstance ( ColorSpace . CS_GRAY ) , created )