input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testUpdateAndThenResetTheDistributionIs0 ( ) { statistics . update ( org . openehealth . ipf . commons . test . performance . PerformanceMeasurementTestUtils . createMeasurementHistory ( ) ) ; statistics . reset ( ) ; java . util . List < org . openehealth . ipf . commons . test . performance . throughput . Throughput ...
org . junit . Assert . assertEquals ( 0 , t . getCount ( ) )
cannotGet2App2 ( ) { final org . openqa . grid . internal . GridRegistry registry = org . openqa . grid . internal . DefaultGridRegistry . newInstance ( new org . openqa . grid . web . Hub ( new org . openqa . grid . internal . utils . configuration . GridHubConfiguration ( ) ) ) ; org . openqa . grid . internal . Remo...
org . junit . Assert . assertFalse ( processed )
testSerialization ( ) { org . jfree . chart . title . ShortTextTitle t1 = new org . jfree . chart . title . ShortTextTitle ( "ABC" ) ; org . jfree . chart . title . ShortTextTitle t2 = ( ( org . jfree . chart . title . ShortTextTitle ) ( org . jfree . chart . TestUtilities . serialised ( t1 ) ) ) ; "<AssertPlaceHolder>...
org . junit . Assert . assertEquals ( t1 , t2 )
convert_Boolean_to_primitive ( ) { java . util . List < java . lang . Boolean > booleans = com . google . common . collect . Lists . newArrayList ( Boolean . TRUE , Boolean . FALSE , Boolean . TRUE , Boolean . FALSE ) ; boolean [ ] primitiveArray = com . google . common . primitives . Booleans . toArray ( booleans ) ; ...
org . junit . Assert . assertEquals ( 4 , primitiveArray . length )
testWebHdfsAppend ( ) { org . apache . hadoop . hdfs . MiniDFSCluster cluster = null ; final org . apache . hadoop . conf . Configuration conf = org . apache . hadoop . hdfs . web . WebHdfsTestUtil . createConf ( ) ; final int dnNumber = 3 ; try { cluster = new org . apache . hadoop . hdfs . MiniDFSCluster . Builder ( ...
org . junit . Assert . assertTrue ( resultContent . equals ( content ) )
one_$parent_elem_match_returns_false_when_no_values_in_array_match ( ) { com . redhat . lightblue . query . QueryExpression expr = com . redhat . lightblue . eval . EvalTestContext . queryExpressionFromJson ( "{'array':'field6.$parent.field7','elemMatch':{'field':'elemf3','op':'>','rvalue':10}}" ) ; com . redhat . ligh...
org . junit . Assert . assertFalse ( context . getResult ( ) )
testGetValueReturnsInvalidIfReadFails ( ) { new mockit . NonStrictExpectations ( ) { { spiDevice . write ( anyShort , anyShort , anyShort ) ; result = new java . io . IOException ( "Some<sp>fake<sp>error" ) ; } } ; double result ; try { result = mcpP3008Provider . getImmediateValue ( inputPin ) ; } catch ( java . lang ...
org . junit . Assert . assertTrue ( ( result < 0 ) )
testGetDiffAsStringOfEqualFiles ( ) { java . lang . String result = testGetDiffAsString ( "file1.txt" , "file1.txt" ) ; "<AssertPlaceHolder>" ; } testGetDiffAsString ( java . lang . String , java . lang . String ) { java . io . File file1 = new java . io . File ( hudson . plugins . jobConfigHistory . JobConfigHistoryBa...
org . junit . Assert . assertEquals ( "\n" , result )
testFetchByPrimaryKeysWithNoPrimaryKeys ( ) { java . util . Set < java . io . Serializable > primaryKeys = new java . util . HashSet < java . io . Serializable > ( ) ; java . util . Map < java . io . Serializable , com . liferay . portal . kernel . model . Group > groups = _persistence . fetchByPrimaryKeys ( primaryKey...
org . junit . Assert . assertTrue ( groups . isEmpty ( ) )
traceMdcMarkerThrowableMessageArgs ( ) { uk . org . lidalia . slf4jtest . LoggingEvent event = uk . org . lidalia . slf4jtest . LoggingEvent . trace ( mdc , marker , throwable , message , arg1 , arg2 ) ; uk . org . lidalia . slf4jtest . LoggingEvent expected = new uk . org . lidalia . slf4jtest . LoggingEvent ( TRACE ,...
org . junit . Assert . assertThat ( event , org . hamcrest . core . Is . is ( expected ) )
testDownloadBadEncoding ( ) { java . lang . String blobValue = "Hello<sp>World<sp>Café" ; java . lang . String encoding = "no-such-charset" ; org . nuxeo . ecm . core . api . Blob blob = org . nuxeo . ecm . core . api . Blobs . createBlob ( blobValue . getBytes ( ) , "text/plain" , encoding ) ; blob . setFilename ( "my...
org . junit . Assert . assertEquals ( blobValue , out . toString ( ) )
testLeeg ( ) { final nl . bzk . brp . util . hisvolledig . kern . PersoonHisVolledigImplBuilder builder = new nl . bzk . brp . util . hisvolledig . kern . PersoonHisVolledigImplBuilder ( nl . bzk . brp . model . algemeen . stamgegeven . kern . SoortPersoon . INGESCHREVENE ) ; final nl . bzk . brp . model . hisvolledig ...
org . junit . Assert . assertNull ( brpInhoud )
testToCropWithFull ( ) { instance = new edu . illinois . library . cantaloupe . resource . iiif . v1 . Region ( ) ; instance . setFull ( true ) ; edu . illinois . library . cantaloupe . operation . Crop actual = instance . toCrop ( ) ; edu . illinois . library . cantaloupe . operation . Crop expected = new edu . illino...
org . junit . Assert . assertEquals ( expected , actual )
testLinearCombination2 ( ) { org . apache . commons . math3 . random . Well1024a random = new org . apache . commons . math3 . random . Well1024a ( 553267312521321234L ) ; for ( int i = 0 ; i < 10000 ; ++ i ) { final double ux = 1.0E17 * ( random . nextDouble ( ) ) ; final double uy = 1.0E17 * ( random . nextDouble ( )...
org . junit . Assert . assertEquals ( sInline , sArray , 0 )
testSetValidationMessage_illegalGroupId ( ) { enableUi ( ) ; getArtifactIdField ( ) . setText ( "some-artifact-id" ) ; getGroupIdField ( ) . setText ( "<:#=<sp>Illegal<sp>ID<sp>=#:>" ) ; "<AssertPlaceHolder>" ; verify ( dialogPage ) . setErrorMessage ( "Illegal<sp>Maven<sp>Group<sp>ID:<sp><:#=<sp>Illegal<sp>ID<sp>=#:>"...
org . junit . Assert . assertFalse ( ui . setValidationMessage ( dialogPage ) )
divideTest ( ) { tec . uom . se . quantity . ShortQuantity < javax . measure . quantity . ElectricResistance > quantity1 = new tec . uom . se . quantity . ShortQuantity ( java . lang . Short . valueOf ( "3" ) . shortValue ( ) , tec . uom . se . unit . Units . OHM ) ; tec . uom . se . quantity . ShortQuantity < javax . ...
org . junit . Assert . assertEquals ( java . lang . Integer . valueOf ( "1" ) , result . getValue ( ) )
serializeMinLong ( ) { com . orientechnologies . orient . core . serialization . serializer . record . binary . BytesContainer bytes = new com . orientechnologies . orient . core . serialization . serializer . record . binary . BytesContainer ( ) ; bytes . offset = com . orientechnologies . orient . core . serializatio...
org . junit . Assert . assertEquals ( com . orientechnologies . orient . core . serialization . serializer . record . binary . OVarIntSerializer . readAsLong ( bytes ) , Long . MIN_VALUE )
testGetTemplateParameterSubstitutionNotPrimitiveTypeButJavaType ( ) { org . eclipse . uml2 . uml . Classifier clazzifier = prepareMocks ( ) ; when ( dataTypeUtils . isPrimitiveType ( org . mockito . Mockito . anyString ( ) ) ) . thenReturn ( false ) ; when ( dataTypeUtils . isJavaType ( org . mockito . Mockito . anyStr...
org . junit . Assert . assertEquals ( "Data::datatype::String" , results . get ( 0 ) )
read ( ) { org . syncope . client . to . VirtualSchemaTO VirtualSchemaTO = restTemplate . getForObject ( ( ( BASE_URL ) + "virtualSchema/membership/read/mvirtualdata.json" ) , org . syncope . client . to . VirtualSchemaTO . class ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( VirtualSchemaTO )
build_response_with_confirm_slot_directive ( ) { com . amazon . ask . model . Slot slot1 = com . amazon . ask . model . Slot . builder ( ) . withConfirmationStatus ( SlotConfirmationStatus . NONE ) . withName ( "slot1" ) . withValue ( "value1" ) . build ( ) ; com . amazon . ask . model . Intent updatedIntent = com . am...
org . junit . Assert . assertEquals ( responseWithBuilder . get ( ) , response )
test_intersection_same ( ) { org . threeten . extra . Interval test = org . threeten . extra . Interval . of ( org . threeten . extra . TestInterval . NOW2 , org . threeten . extra . TestInterval . NOW4 ) ; "<AssertPlaceHolder>" ; } intersection ( org . threeten . extra . LocalDateRange ) { java . util . Objects . requ...
org . junit . Assert . assertEquals ( test , test . intersection ( test ) )
shouldDeleteGivenCriteriaQuery ( ) { java . lang . String documentId = randomNumeric ( 5 ) ; org . springframework . data . elasticsearch . entities . SampleEntity sampleEntity = org . springframework . data . elasticsearch . entities . SampleEntity . builder ( ) . id ( documentId ) . message ( "test<sp>message" ) . ve...
org . junit . Assert . assertThat ( sampleEntities . size ( ) , is ( 0 ) )
buildEmojiFromJSON_without_unicode_returns_null ( ) { org . json . JSONObject json = new org . json . JSONObject ( ( "{" + ( ( "\"aliases\":<sp>[\"smile\"]," + "\"tags\":<sp>[\"happy\",<sp>\"joy\",<sp>\"pleased\"]" ) + "}" ) ) ) ; com . vdurmont . emoji . Emoji emoji = com . vdurmont . emoji . EmojiLoader . buildEmojiF...
org . junit . Assert . assertNull ( emoji )
testNoSegments ( ) { org . apache . commons . math3 . geometry . euclidean . twod . SubLine empty = new org . apache . commons . math3 . geometry . euclidean . twod . SubLine ( new org . apache . commons . math3 . geometry . euclidean . twod . Line ( new org . apache . commons . math3 . geometry . euclidean . twod . Ve...
org . junit . Assert . assertEquals ( 0 , segments . size ( ) )
testRetrievingDeadlineScope ( ) { org . quartz . JobDataMap testJobDataMap = toJobData ( serializer , testDeadlineMessage , testDeadlineScope ) ; org . axonframework . messaging . ScopeDescriptor result = deadlineScope ( serializer , testJobDataMap ) ; "<AssertPlaceHolder>" ; verify ( serializer ) . deserialize ( ( ( o...
org . junit . Assert . assertEquals ( testDeadlineScope , result )
testExecuteInvalidPerms ( ) { boolean result = sut . execute ( org . eurekastreams . server . persistence . mappers . db . GetTabPermissionByPersonAndTabTest . TEST_PERSON_ACCOUNTID2 , org . eurekastreams . server . persistence . mappers . db . GetTabPermissionByPersonAndTabTest . TEST_TAB_ID2 ) ; "<AssertPlaceHolder>"...
org . junit . Assert . assertFalse ( result )
testGetSchemas2 ( ) { java . sql . DatabaseMetaData dbmd = sharedConnection . getMetaData ( ) ; java . sql . ResultSet rs = dbmd . getCatalogs ( ) ; boolean foundTestUnitsJdbc = false ; while ( rs . next ( ) ) { if ( rs . getString ( 1 ) . equals ( "testj" ) ) { foundTestUnitsJdbc = true ; } } "<AssertPlaceHolder>" ; }...
org . junit . Assert . assertEquals ( true , foundTestUnitsJdbc )
testSortLimit0 ( ) { final org . apache . calcite . tools . RelBuilder builder = org . apache . calcite . tools . RelBuilder . create ( org . apache . calcite . test . RelBuilderTest . config ( ) . build ( ) ) ; final org . apache . calcite . rel . RelNode root = builder . scan ( "EMP" ) . sortLimit ( ( - 1 ) , 0 , bui...
org . junit . Assert . assertThat ( root , org . apache . calcite . test . Matchers . hasTree ( expected ) )
editTrueToFalse ( ) { when ( access . isEditable ( ) ) . thenReturn ( true ) ; final org . uberfire . ext . wires . core . grids . client . model . GridCell < java . lang . Boolean > cell = new org . uberfire . ext . wires . core . grids . client . model . impl . BaseGridCell ( new org . uberfire . ext . wires . core ....
org . junit . Assert . assertFalse ( callbackArgument . getValue ( ) )
test ( ) { connect ( ) ; org . zkoss . zktest . zats . ztl . JQuery logScrollTop = jq ( ".z-button:contains(logScrollTop)" ) ; click ( jq ( ".z-button:contains(scroll)" ) ) ; waitResponse ( ) ; click ( logScrollTop ) ; waitResponse ( ) ; java . lang . String scrollTop = getZKLog ( ) ; closeZKLog ( ) ; waitResponse ( ) ...
org . junit . Assert . assertEquals ( scrollTop , getZKLog ( ) )
testImportWithoutTestContainerLoaded ( ) { org . powermock . api . mockito . PowerMockito . mockStatic ( org . talend . core . GlobalServiceRegister . class ) ; org . talend . core . GlobalServiceRegister globalServiceRegister = org . powermock . api . mockito . PowerMockito . mock ( org . talend . core . GlobalService...
org . junit . Assert . assertTrue ( importItemRecords . contains ( importItem ) )
test48IsServiceAdminUserTrue ( ) { java . lang . String configName = "service.admin.users" ; boolean result = false ; org . apache . ranger . plugin . model . RangerService rService = rangerService ( ) ; org . apache . ranger . biz . XXServiceConfigMapDao xxServiceConfigMapDao = org . mockito . Mockito . mock ( org . a...
org . junit . Assert . assertTrue ( result )
invalidateTokenShouldTryToGetAlternativeToken ( ) { com . soundcloud . api . CloudAPI . TokenListener listener = mock ( CloudAPI . TokenListener . class ) ; final com . soundcloud . api . Token cachedToken = new com . soundcloud . api . Token ( "new" , "fresh" ) ; api . setTokenListener ( listener ) ; when ( listener ....
org . junit . Assert . assertThat ( api . invalidateToken ( ) , org . hamcrest . CoreMatchers . equalTo ( cachedToken ) )
testGetXML ( ) { when ( field . getPentahoFieldName ( ) ) . thenReturn ( "SampleName" ) ; meta . setInputFields ( java . util . Arrays . asList ( field ) ) ; "<AssertPlaceHolder>" ; verify ( meta ) . getDataLocation ( ) ; verify ( meta ) . getSchemaLocation ( ) ; verify ( field ) . getAvroFieldName ( ) ; verify ( field...
org . junit . Assert . assertNotNull ( meta . getXML ( ) )
verify_local_repo_detection ( ) { java . io . File path = org . gridkit . nanocloud . test . maven . MavenClasspathManager . getLocalMavenRepoPath ( ) ; System . out . println ( ( "verify_local_repo_detection:<sp>" + path ) ) ; "<AssertPlaceHolder>" ; } getLocalMavenRepoPath ( ) { org . gridkit . nanocloud . test . mav...
org . junit . Assert . assertTrue ( ( path != null ) )
should_update_information_status_and_last_touched_by ( ) { org . mamute . model . User artur = user ( "" , "" ) ; org . mamute . model . User leo = user ( "" , "" ) ; artur . setId ( 1L ) ; leo . setId ( 2L ) ; org . mamute . model . Question comoFaz = question . withTitle ( "titulo" ) . withDescription ( "descricao" )...
org . junit . Assert . assertEquals ( comoFaz . getLastTouchedBy ( ) . getId ( ) , leo . getId ( ) )
testCoherenceToCsvLoader ( ) { com . seovic . loader . CoherenceLoaderTest . prepareCache ( ) ; com . seovic . loader . Source source = new com . seovic . loader . source . CoherenceCacheSource ( com . seovic . loader . CoherenceLoaderTest . countries ) ; java . io . Writer writer = new java . io . StringWriter ( ) ; c...
org . junit . Assert . assertEquals ( 4 , count )
consulResponseShouldHaveResponseAndDefaultValuesIfNoHeader ( ) { java . lang . String responseMessage = "success" ; com . orbitz . consul . model . ConsulResponse < java . lang . String > expectedConsulResponse = new com . orbitz . consul . model . ConsulResponse ( responseMessage , 0 , false , java . math . BigInteger...
org . junit . Assert . assertEquals ( expectedConsulResponse , consulResponse )
service19PutWithHeaderApplicationOctetStreamContentTypeAndStringBodyWithEmptyBody ( ) { final com . azure . common . entities . HttpBinJSON result = createService ( com . azure . common . implementation . RestProxyTests . Service19 . class ) . putWithHeaderApplicationOctetStreamContentTypeAndStringBody ( "" ) ; "<Asser...
org . junit . Assert . assertEquals ( "" , result . data )
testTTLMetadata ( ) { com . thinkaurelius . titan . diskstorage . keycolumnvalue . WriteBuffer wb = new com . thinkaurelius . titan . diskstorage . util . WriteByteBuffer ( 128 ) ; wb . putInt ( 1 ) . putInt ( 2 ) . putInt ( 3 ) . putInt ( 4 ) ; int valuePos = wb . getPosition ( ) ; wb . putInt ( 5 ) . putInt ( 6 ) ; c...
org . junit . Assert . assertEquals ( 42 , entry . getMetaData ( ) . get ( EntryMetaData . TTL ) )
checkCreation ( ) { info . smart_tools . smartactors . scope . iscope . IScope scope = new info . smart_tools . smartactors . scope . recursive_scope . Scope ( null ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( scope )
doubleAddNotNullConstraint ( ) { org . apache . hadoop . hive . metastore . api . Table table = testTables [ 0 ] ; org . apache . hadoop . hive . metastore . api . NotNullConstraintsRequest rqst = new org . apache . hadoop . hive . metastore . api . NotNullConstraintsRequest ( table . getCatName ( ) , table . getDbName...
org . junit . Assert . assertTrue ( fetched . isEmpty ( ) )
getOrEmptyWithNullProperty ( ) { org . spincast . core . json . JsonObject jsonObj = getJsonManager ( ) . create ( ) ; jsonObj . set ( "key1" , null ) ; java . lang . String result = jsonObj . getJsonObjectOrEmpty ( "key1" ) . getJsonArrayOrEmpty ( "nope" ) . getJsonArrayOrEmpty ( 0 ) . getJsonObjectOrEmpty ( 5 ) . get...
org . junit . Assert . assertNull ( result )
testDifference ( ) { org . openscience . cdk . interfaces . IAtom carbon = mock ( org . openscience . cdk . interfaces . IAtom . class ) ; org . openscience . cdk . interfaces . IAtom oxygen = mock ( org . openscience . cdk . interfaces . IAtom . class ) ; when ( carbon . getSymbol ( ) ) . thenReturn ( "C" ) ; when ( o...
org . junit . Assert . assertNotNull ( result )
testEq ( ) { java . lang . String expectedJavascript = "$('div').eq(1);" ; java . lang . String generatedJavascript = new org . odlabs . wiquery . core . javascript . JsStatement ( ) . $ ( null , "div" ) . chain ( org . odlabs . wiquery . core . javascript . helper . TraversingHelper . eq ( 1 ) ) . render ( ) . toStrin...
org . junit . Assert . assertEquals ( generatedJavascript , expectedJavascript )
getAccessUrl_DIRECT ( ) { org . oscm . internal . landingpage . POLandingpageEntry entry = newEntry ( "s1" ) ; entry . setServiceAccessType ( ServiceAccessType . DIRECT ) ; java . lang . String accessUrl = ctrl . getAccessUrl ( entry ) ; "<AssertPlaceHolder>" ; } getAccessUrl ( org . oscm . internal . landingpage . POL...
org . junit . Assert . assertNull ( accessUrl )
shouldValidateAndReturnTrueWhenAggregationIsDisabled ( ) { final uk . gov . gchq . gaffer . store . schema . SchemaElementDefinition elementDef = mock ( uk . gov . gchq . gaffer . store . schema . SchemaElementDefinition . class ) ; final uk . gov . gchq . gaffer . store . schema . SchemaElementDefinitionValidator vali...
org . junit . Assert . assertTrue ( result . isValid ( ) )
testBuild ( ) { org . jinstagram . auth . InstagramAuthService fixture = new org . jinstagram . auth . InstagramAuthService ( ) ; fixture . apiSecret ( "" ) ; fixture . callback ( "" ) ; fixture . scope ( "" ) ; fixture . proxy ( new java . net . Proxy ( java . net . Proxy . Type . DIRECT , new java . net . InetSocketA...
org . junit . Assert . assertNotNull ( result )
testOnlyCode ( ) { com . ieven . ext . response . DefaultResponse response = new com . ieven . ext . response . DefaultResponse ( 0 ) ; System . out . println ( response ) ; "<AssertPlaceHolder>" ; } getMsg ( ) { return msg ; }
org . junit . Assert . assertEquals ( "" , response . getMsg ( ) )
testAutoMapOfSqlDateToUtilDate ( ) { "<AssertPlaceHolder>" ; } autoMap ( java . sql . ResultSet , java . lang . Class ) { try { if ( cls . isInterface ( ) ) { return com . github . davidmoten . rx . jdbc . Util . autoMapInterface ( rs , cls ) ; } else { int n = rs . getMetaData ( ) . getColumnCount ( ) ; for ( java . l...
org . junit . Assert . assertEquals ( new java . util . Date ( 1 ) , com . github . davidmoten . rx . jdbc . Util . autoMap ( new java . sql . Date ( 1 ) , java . util . Date . class ) )
testForeignCollectionEager ( ) { co . touchlab . squeaky . dao . Dao < co . touchlab . squeaky . field . ForeignCollectionTest . ParentEager > parentDao = helper . getDao ( co . touchlab . squeaky . field . ForeignCollectionTest . ParentEager . class ) ; co . touchlab . squeaky . field . ForeignCollectionTest . ParentE...
org . junit . Assert . assertTrue ( parentDb . children . equals ( children ) )
shouldReturnFalseWhenDistinctCalledWithCollectionOfNonUniqueValues ( ) { final java . util . Collection collection = com . google . common . collect . Lists . newArrayList ( 1 , 2 , 3 , 1 , 2 ) ; final boolean result = uk . gov . gchq . gaffer . commonutil . CollectionUtil . distinct ( collection ) ; "<AssertPlaceHolde...
org . junit . Assert . assertFalse ( result )
cnTest ( ) { pl . setPattern ( "%cn" ) ; lc . setName ( "aValue" ) ; pl . start ( ) ; java . lang . String val = pl . doLayout ( getEventObject ( ) ) ; "<AssertPlaceHolder>" ; } getEventObject ( ) { return makeLoggingEvent ( "Some<sp>message" , null ) ; }
org . junit . Assert . assertEquals ( "aValue" , val )
apvidvrdi ( ) { lv . semti . morphology . Testi . Word w = lv . semti . morphology . Testi . MorphologyTest . loctjs . analyze ( "stis" ) ; "<AssertPlaceHolder>" ; } isRecognized ( ) { return ! ( wordforms . isEmpty ( ) ) ; }
org . junit . Assert . assertFalse ( w . isRecognized ( ) )
testGetPropertyNoTargetType ( ) { org . finra . herd . model . dto . ConfigurationValue configurationValue = org . finra . herd . model . dto . ConfigurationValue . HERD_ENVIRONMENT ; org . springframework . mock . env . MockEnvironment environment = new org . springframework . mock . env . MockEnvironment ( ) ; java ....
org . junit . Assert . assertEquals ( "value" , configurationValue . getDefaultValue ( ) , value )
kapuaNotifyPayloadConstructor ( ) { org . eclipse . kapua . service . device . management . message . notification . KapuaNotifyPayload kapuaNotifyPayload = new org . eclipse . kapua . service . device . management . commons . message . notification . KapuaNotifyPayloadImpl ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( kapuaNotifyPayload )
testDeleteForum ( ) { com . stratelia . webactiv . forums . models . ForumPK forumPK = new com . stratelia . webactiv . forums . models . ForumPK ( "forums130" , "8" ) ; com . stratelia . webactiv . forums . service . ForumsDAO . deleteForum ( con , forumPK ) ; com . stratelia . webactiv . forums . models . Forum forum...
org . junit . Assert . assertNull ( forum )
testGetParametersWithDisabledDefaults ( ) { unit . setActive ( false ) ; unit . setSecurity ( false ) ; java . lang . String name = "Extract<sp>Me<sp>All" ; java . lang . String abbrName = "EML" ; org . lnu . is . domain . street . type . StreetType entity = new org . lnu . is . domain . street . type . StreetType ( ) ...
org . junit . Assert . assertEquals ( expected , actual )
testValidatorForGetList ( ) { java . util . Set < com . validator . enumuse . ValidationStrategy > strategies = new java . util . LinkedHashSet < com . validator . enumuse . ValidationStrategy > ( ) ; strategies . add ( UserValidationStrategy . DATE_OF_BIRTH ) ; strategies . add ( UserValidationStrategy . CITY ) ; stra...
org . junit . Assert . assertArrayEquals ( arrResultExpected , arrResultActual )
testRecipientDisabledFor2ResourcesMessage ( ) { java . lang . String recipient = "recipient-1@localhost" ; tigase . xmpp . JID recp1 = tigase . xmpp . JID . jidInstanceNS ( ( recipient + "/res1" ) ) ; tigase . xmpp . JID recp2 = tigase . xmpp . JID . jidInstanceNS ( ( recipient + "/res2" ) ) ; tigase . xmpp . JID connI...
org . junit . Assert . assertArrayEquals ( expected , processed )
test9999Next ( ) { org . jfree . data . time . Year current = new org . jfree . data . time . Year ( 9999 ) ; org . jfree . data . time . Year next = ( ( org . jfree . data . time . Year ) ( current . next ( ) ) ) ; "<AssertPlaceHolder>" ; } next ( ) { org . jfree . data . time . Month result ; if ( ( this . month ) !=...
org . junit . Assert . assertNull ( next )
testVStackDifferentOrders ( ) { org . nd4j . linalg . api . ndarray . INDArray expected = org . nd4j . linalg . factory . Nd4j . linspace ( 1 , 9 , 9 ) . reshape ( 'c' , 3 , 3 ) ; for ( char order : new char [ ] { 'c' , 'f' } ) { System . out . println ( order ) ; org . nd4j . linalg . factory . Nd4j . factory ( ) . se...
org . junit . Assert . assertEquals ( expected , merged )
two_$this_nary_nin_string_array_returns_false_when_field_value_does_not_match_expression ( ) { com . redhat . lightblue . query . QueryExpression q = com . redhat . lightblue . eval . EvalTestContext . queryExpressionFromJson ( "{'field':'field6.$this.$this.nf1','op':'$in','values':['blah','yada','nothere']}" ) ; com ....
org . junit . Assert . assertFalse ( ctx . getResult ( ) )
testGetOtherSeparator ( ) { com . amazonaws . secretsmanager . caching . SecretCache secretCache = org . mockito . Mockito . mock ( com . amazonaws . secretsmanager . caching . SecretCache . class ) ; com . streamsets . datacollector . credential . aws . secrets . manager . AWSSecretsManagerCredentialStore secretManage...
org . junit . Assert . assertEquals ( credValue , credentialValue . get ( ) )
name ( ) { colorTheme . setName ( "name" ) ; "<AssertPlaceHolder>" ; } getName ( ) { return name ; }
org . junit . Assert . assertThat ( colorTheme . getName ( ) , org . hamcrest . CoreMatchers . is ( "name" ) )
testSourceCounterReadFail ( ) { init ( "true" ) ; org . apache . flume . channel . ChannelProcessor cp = org . mockito . Mockito . mock ( org . apache . flume . channel . ChannelProcessor . class ) ; doThrow ( new java . lang . RuntimeException ( "dummy" ) ) . when ( cp ) . processEvent ( any ( org . apache . flume . E...
org . junit . Assert . assertEquals ( 1 , source . getSourceCounter ( ) . getEventReadFail ( ) )
testSerialization ( ) { org . jfree . chart . renderer . xy . StandardXYItemRenderer r1 = new org . jfree . chart . renderer . xy . StandardXYItemRenderer ( ) ; java . io . ByteArrayOutputStream buffer = new java . io . ByteArrayOutputStream ( ) ; java . io . ObjectOutput out = new java . io . ObjectOutputStream ( buff...
org . junit . Assert . assertEquals ( r1 , r2 )
manuallyStartCaseExecutionDisabledTenantCheck ( ) { identityService . setAuthentication ( "user" , null , null ) ; processEngineConfiguration . setTenantCheckEnabled ( false ) ; caseService . manuallyStartCaseExecution ( caseExecutionId ) ; identityService . clearAuthentication ( ) ; org . camunda . bpm . engine . runt...
org . junit . Assert . assertThat ( caseExecution . isActive ( ) , org . hamcrest . CoreMatchers . is ( true ) )
testQueryDateFilter ( ) { insertRandom ( 10 , "employee" ) ; final java . util . Calendar today = java . util . Calendar . getInstance ( ) ; today . set ( Calendar . HOUR_OF_DAY , 0 ) ; today . set ( Calendar . MINUTE , 0 ) ; today . set ( Calendar . SECOND , 0 ) ; today . set ( Calendar . MILLISECOND , 0 ) ; final com...
org . junit . Assert . assertEquals ( 10 , entities . size ( ) )
testFireNavigationEvent ( ) { org . eclipse . rap . rwt . client . service . BrowserNavigationListener listener = mock ( org . eclipse . rap . rwt . client . service . BrowserNavigationListener . class ) ; navigation . addBrowserNavigationListener ( listener ) ; org . eclipse . rap . json . JsonObject parameters = new ...
org . junit . Assert . assertEquals ( "foo" , event . getState ( ) )
getSplitsWithBoundsIntersectFirstSplit ( ) { org . mrgeo . utils . tms . Bounds bounds = new org . mrgeo . utils . tms . Bounds ( ( - 180 ) , ( - 90 ) , 180 , 0 ) ; org . apache . hadoop . mapreduce . TaskAttemptContext mockContext = createDefaultTaskAttemptContext ( bounds ) ; java . util . List < org . apache . hadoo...
org . junit . Assert . assertEquals ( 1 , result . size ( ) )
testInvalidGroupOutOfRange ( ) { try { com . google . re2j . ApiTestUtils . testInvalidGroup ( "abc" , "abc" , 1 ) ; org . junit . Assert . fail ( ) ; } catch ( java . lang . IndexOutOfBoundsException e ) { "<AssertPlaceHolder>" ; } } fail ( ) { return new com . google . re2j . Compiler . Frag ( ) ; }
org . junit . Assert . assertTrue ( true )
testParseZeroX ( ) { java . lang . String source = ( ( ( "{0" + ( getDecimalCharacter ( ) ) ) + "0;<sp>-1" ) + ( getDecimalCharacter ( ) ) ) + "4343}" ; org . hipparchus . geometry . euclidean . twod . Vector2D expected = new org . hipparchus . geometry . euclidean . twod . Vector2D ( 0.0 , ( - 1.4343 ) ) ; org . hippa...
org . junit . Assert . assertEquals ( expected , actual )
testSetExpressionValue ( ) { final java . lang . String expectedValue = "expression" ; view . setExpressionValue ( expectedValue ) ; final java . lang . String actualValue = expression . value ; "<AssertPlaceHolder>" ; } setExpressionValue ( java . lang . String ) { expression . value = value ; }
org . junit . Assert . assertEquals ( expectedValue , actualValue )
manageModificationVDiskDeletion_VSDISK_DETACHING_VDisksNotDetached ( ) { org . oscm . app . iaas . data . FlowState flowState = org . oscm . app . iaas . data . FlowState . VSDISK_DETACHING ; org . oscm . app . iaas . data . FlowState newState = null ; doReturn ( Boolean . FALSE ) . when ( vServerProcessor . vdiskInfo ...
org . junit . Assert . assertNull ( newState )
testGenerationFromOtherItemDocument ( ) { org . wikidata . wdtk . datamodel . helpers . ItemDocument item = org . wikidata . wdtk . datamodel . helpers . Datamodel . makeItemDocument ( org . wikidata . wdtk . datamodel . helpers . Datamodel . makeWikidataItemIdValue ( "Q42" ) , java . util . Collections . singletonList...
org . junit . Assert . assertEquals ( item , converter . copy ( item ) )
testType ( ) { wd . open ( org . finra . jtaf . ewd . widget . element . InteractiveElementTest . url ) ; org . finra . jtaf . ewd . widget . IInteractiveElement field = new org . finra . jtaf . ewd . widget . element . InteractiveElement ( "//input[@id='inputFieldTest']" ) ; field . waitForElementPresent ( ) ; field ....
org . junit . Assert . assertEquals ( "hello" , element . getText ( ) )
testAddMappedColum ( ) { org . pentaho . hbase . shim . api . Mapping aMapping = new org . pentaho . hbase . shim . api . Mapping ( "TestTable" , "TestMapping" , "MyKey" , Mapping . KeyType . INTEGER ) ; org . pentaho . hbase . shim . api . HBaseValueMeta vm = new org . pentaho . hbase . shim . api . HBaseValueMeta ( (...
org . junit . Assert . assertTrue ( aMapping . getMappedColumns ( ) . containsKey ( "Col1" ) )
testToString ( ) { final com . allanbank . mongodb . client . metrics . basic . BasicOperationMetricsListener metrics = new com . allanbank . mongodb . client . metrics . basic . BasicOperationMetricsListener ( ) ; "<AssertPlaceHolder>" ; metrics . close ( ) ; } toString ( ) { return "Metrics<sp>not<sp>being<sp>collect...
org . junit . Assert . assertThat ( metrics . toString ( ) , org . hamcrest . Matchers . is ( "" ) )
testGetClientSideScriptNotExists ( ) { expect ( ( ( java . lang . Class ) ( descriptor . getImplementationClass ( ) ) ) ) . andReturn ( javax . faces . validator . RegexValidator . class ) ; expect ( scriptService . getScript ( environment . getFacesContext ( ) , javax . faces . validator . RegexValidator . class ) ) ....
org . junit . Assert . assertTrue ( clientSideValidatorScript . isEmpty ( ) )
testSplitIntoBundles ( ) { "<AssertPlaceHolder>" ; } splitIntoBundles ( long , org . talend . components . api . container . RuntimeContainer ) { return java . util . Arrays . asList ( this ) ; }
org . junit . Assert . assertEquals ( java . util . Collections . singletonList ( source ) , source . splitIntoBundles ( 0 , null ) )
testDeregister ( ) { tested . init ( canvasHandler ) ; tested . register ( element ) ; tested . deregister ( element ) ; verify ( selectionControl , times ( 1 ) ) . deregister ( eq ( element ) ) ; verify ( shapeViewHandlers , times ( 1 ) ) . removeHandler ( any ( org . kie . workbench . common . stunner . core . client...
org . junit . Assert . assertTrue ( tested . getHandlers ( ) . isEmpty ( ) )
testAddDefaultTag ( ) { org . apache . servicecomb . swagger . generator . core . SwaggerGenerator swaggerGenerator = new org . apache . servicecomb . swagger . generator . core . SwaggerGenerator ( new org . apache . servicecomb . swagger . generator . pojo . PojoSwaggerGeneratorContext ( ) , null ) ; swaggerGenerator...
org . junit . Assert . assertThat ( swaggerGenerator . getDefaultTags ( ) , org . hamcrest . Matchers . contains ( "test1" , "test2" ) )
shouldGetRequestParameterWithSpecifiedName ( ) { java . lang . String expectedParameterName = "foo" ; java . lang . String expectedParameterValue = "bar" ; when ( mockHttpRequest . getParameterNames ( ) ) . thenReturn ( makeParameterNamesEnumeration ( expectedParameterName ) ) ; when ( mockHttpRequest . getParameterVal...
org . junit . Assert . assertThat ( context . getRequestParameter ( expectedParameterName ) , org . hamcrest . core . Is . is ( expectedParameterValue ) )
isOrStringLikeWithLowerCase ( ) { if ( isBatoo ( ) ) { return ; } final java . lang . String query = "select<sp>r<sp>from<sp>RegularEntityTwo<sp>r<sp>" + "<sp>where<sp>r.id<sp>in<sp>(select<sp>sub.id<sp>from<sp>RegularEntityOne<sp>sub<sp>where<sp>((lower(sub.stringAttribute)<sp>like<sp>'%string<sp>02%')<sp>or<sp>(lower...
org . junit . Assert . assertTrue ( ( ( resultFromJPQL . size ( ) ) > 0 ) )
stringSpansSegments ( ) { okio . Buffer buffer = new okio . Buffer ( ) ; java . lang . String a = okio . TestUtil . repeat ( 'a' , ( ( Segment . SIZE ) - 1 ) ) ; java . lang . String b = "bb" ; java . lang . String c = okio . TestUtil . repeat ( 'c' , ( ( Segment . SIZE ) - 1 ) ) ; buffer . writeUtf8 ( a ) ; buffer . w...
org . junit . Assert . assertEquals ( ( ( a + b ) + c ) , buffer . readUtf8 ( ) )
testThatWhenExpiredQualityIsDecreasedNormally ( ) { int initialQuality = 10 ; int initialSellIn = - 1 ; Item dexerity = new Item ( "+5<sp>Dexterity<sp>Vest" , initialSellIn , initialQuality ) ; GildedRose sut = new GildedRose ( dexerity ) ; sut . updateQuality ( ) ; "<AssertPlaceHolder>" ; } getQuality ( ) { return qua...
org . junit . Assert . assertThat ( dexerity . getQuality ( ) , org . hamcrest . core . Is . is ( ( initialQuality - 1 ) ) )
listUserAccountFail ( ) { wireMockRule . stubFor ( get ( urlPathMatching ( "/user?.*" ) ) . willReturn ( aResponse ( ) . withHeader ( "Content-Type" , "application/json" ) . withBody ( "" ) ) ) ; final org . apache . cloudstack . cloudian . client . CloudianUser user = client . listUser ( "abc" , "xyz" ) ; "<AssertPlac...
org . junit . Assert . assertNull ( user )
testStringsToString ( ) { final org . eclipse . birt . report . engine . api . IScalarParameterDefn def = org . mockito . Mockito . mock ( org . eclipse . birt . report . engine . api . IScalarParameterDefn . class ) ; org . mockito . Mockito . when ( def . getDataType ( ) ) . thenReturn ( IParameterDefn . TYPE_STRING ...
org . junit . Assert . assertEquals ( "Blablabla" , result )
testSerialization ( ) { org . jfree . chart . axis . PeriodAxisLabelInfo info1 = new org . jfree . chart . axis . PeriodAxisLabelInfo ( org . jfree . data . time . Day . class , new java . text . SimpleDateFormat ( "d" ) ) ; java . io . ByteArrayOutputStream buffer = new java . io . ByteArrayOutputStream ( ) ; java . i...
org . junit . Assert . assertEquals ( info1 , info2 )
subInput1PositiveZeroOutput0 ( ) { final java . util . List < java . lang . Integer > list = new java . util . ArrayList ( ) ; list . add ( null ) ; final int start = 1 ; final int end = 0 ; final java . util . List < java . lang . Integer > retval = cn . hutool . core . collection . CollUtil . sub ( list , start , end...
org . junit . Assert . assertEquals ( arrayList , retval )
testGetIsotopes_IMolecularFormula_IElement ( ) { org . openscience . cdk . interfaces . IMolecularFormula formula = new org . openscience . cdk . formula . MolecularFormula ( ) ; org . openscience . cdk . interfaces . IIsotope carb = org . openscience . cdk . tools . manipulator . MolecularFormulaManipulatorTest . buil...
org . junit . Assert . assertEquals ( 2 , isotopes . size ( ) )
testCartesianCollection_Tables ( ) { org . apache . crunch . PTable < java . lang . String , java . lang . Integer > leftTable = org . apache . crunch . impl . mem . MemPipeline . typedTableOf ( org . apache . crunch . types . writable . Writables . tableOf ( org . apache . crunch . types . writable . Writables . strin...
org . junit . Assert . assertEquals ( expectedResults , actualResults )
testEqualsSelf ( ) { org . jfree . data . time . SimpleTimePeriod p = new org . jfree . data . time . SimpleTimePeriod ( new java . util . Date ( 1000L ) , new java . util . Date ( 1001L ) ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( obj == ( this ) ) { return true ; } if ( ! ( obj instanceof or...
org . junit . Assert . assertTrue ( p . equals ( p ) )
testParse_NothingRegex ( ) { "<AssertPlaceHolder>" ; }
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( false ) )
testAvgMemoryHigherThan75 ( ) { count . set ( 0 ) ; com . stratio . decision . unit . siddhi . query . SandboxQueriesValidationTest . LOGGER . debug ( "[AVG]<sp>Raising<sp>alarm<sp>if<sp>AVG(MEMORY)<sp>><sp>75%<sp>" ) ; com . stratio . decision . unit . siddhi . query . SandboxQueriesValidationTest . LOGGER . debug ( "...
org . junit . Assert . assertEquals ( 1 , count . get ( ) )
testResolvedItems_withoutPreloadedItemsSet ( ) { table = new org . eclipse . swt . widgets . Table ( shell , org . eclipse . swt . SWT . VIRTUAL ) ; table . setSize ( 100 , 100 ) ; table . setItemCount ( 200 ) ; table . setTopIndex ( 100 ) ; org . eclipse . swt . widgets . Table_Test . redrawTable ( table ) ; "<AssertP...
org . junit . Assert . assertEquals ( 4 , org . eclipse . swt . widgets . Table_Test . countResolvedItems ( table ) )
canFindElement ( ) { page . setWebPage ( pages . clicksPage ) ; page . clickGet ( ) ; java . lang . String wdcByTagName = page . findElement ( "tagName" , "h1" ) ; java . lang . String wdcByXPath = page . findElement ( "xpath" , "//h1" ) ; "<AssertPlaceHolder>" ; } findElement ( org . openqa . selenium . WebDriver , ja...
org . junit . Assert . assertEquals ( wdcByTagName , wdcByXPath )
testGetBusinessObjectFormats ( ) { org . finra . herd . model . api . xml . BusinessObjectDefinitionKey businessObjectDefinitionKey = new org . finra . herd . model . api . xml . BusinessObjectDefinitionKey ( NAMESPACE , BDEF_NAME ) ; org . finra . herd . model . api . xml . BusinessObjectFormatKeys businessObjectForma...
org . junit . Assert . assertEquals ( businessObjectFormatKeys , resultKeys )
testIsNull1 ( ) { org . infinispan . query . dsl . QueryFactory qf = org . infinispan . all . embeddedquery . QueryDslConditionsTest . getQueryFactory ( ) ; org . infinispan . query . dsl . Query q = qf . from ( org . infinispan . all . embeddedquery . QueryDslConditionsTest . getModelFactory ( ) . getUserImplClass ( )...
org . junit . Assert . assertEquals ( 0 , list . size ( ) )