input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
add2 ( ) { org . diirt . util . array . CircularBufferDouble coll = new org . diirt . util . array . CircularBufferDouble ( 10 ) ; for ( int i = 0 ; i < 11 ; i ++ ) { coll . addDouble ( i ) ; } org . diirt . util . array . ListDouble reference = new org . diirt . util . array . ArrayDouble ( new double [ ] { 1 , 2 , 3 ...
org . junit . Assert . assertThat ( coll , equalTo ( reference ) )
whenCreateMock_thenCreated ( ) { final java . util . List < java . lang . String > mockedList = org . mockito . Mockito . mock ( java . util . ArrayList . class ) ; mockedList . add ( "one" ) ; org . mockito . Mockito . verify ( mockedList ) . add ( "one" ) ; "<AssertPlaceHolder>" ; } size ( ) { return elements . size ...
org . junit . Assert . assertEquals ( 0 , mockedList . size ( ) )
testGetLinked ( ) { arhangel . dim . container . BeanVertex [ ] linked = new arhangel . dim . container . BeanVertex [ ] { vertices . get ( 1 ) , vertices . get ( 2 ) } ; int counter = 0 ; for ( arhangel . dim . container . BeanVertex vertex : graph . getLinked ( vertices . get ( 0 ) ) ) { "<AssertPlaceHolder>" ; } } g...
org . junit . Assert . assertEquals ( linked [ ( counter ++ ) ] , vertex )
fold_04 ( ) { java . lang . String [ ] x = new java . lang . String [ ] { } ; java . lang . String z = org . apache . jena . atlas . iterator . Iter . foldRight ( org . apache . jena . atlas . iterator . Arrays . asList ( x ) , f1 , "X" ) ; "<AssertPlaceHolder>" ; } asList ( org . apache . jena . util . iterator . Exte...
org . junit . Assert . assertEquals ( "X" , z )
createPolicyWithConfigurationAndConfigurationData01 ( ) { try ( java . io . InputStream is = io . gravitee . gateway . policy . PolicyConfigurationFactoryTest . class . getResourceAsStream ( "policy-configuration-01.json" ) ) { java . lang . String configuration = org . apache . commons . io . IOUtils . toString ( is ,...
org . junit . Assert . assertNotNull ( policyConfiguration )
manageModificationVDiskDeletion_VSERVER_UPDATING_NotStopped ( ) { org . oscm . app . iaas . data . FlowState flowState = org . oscm . app . iaas . data . FlowState . VSERVER_UPDATING ; org . oscm . app . iaas . data . FlowState newState = null ; doReturn ( VServerStatus . STARTING ) . when ( vServerProcessor . vserverC...
org . junit . Assert . assertNull ( newState )
mergeTextDecorationFirstInputNoneTest ( ) { java . lang . String firstValue = "underline<sp>none" ; java . lang . String secondValue = "strikethrough" ; java . lang . String expected = "strikethrough" ; java . lang . String actual = com . itextpdf . styledxmlparser . css . resolve . CssPropertyMerger . mergeTextDecorat...
org . junit . Assert . assertEquals ( expected , actual )
testSelectChainedWithExceptAll ( ) { com . couchbase . client . java . query . dsl . path . SelectResultPath statement1 = new com . couchbase . client . java . query . dsl . path . DefaultSelectPath ( null ) . select ( com . couchbase . client . java . query . dsl . Expression . x ( "firstname" ) , com . couchbase . cl...
org . junit . Assert . assertEquals ( expected , statement1 . exceptAll ( statement2 ) . toString ( ) )
shouldAggregateElementUsingKorypheBinaryOperator ( ) { final java . lang . String reference = "reference1" ; final java . util . function . BinaryOperator < java . lang . Integer > function = new uk . gov . gchq . koryphe . binaryoperator . KorypheBinaryOperator < java . lang . Integer > ( ) { @ uk . gov . gchq . gaffe...
org . junit . Assert . assertEquals ( 3 , result . getProperty ( reference ) )
to_and_from_document ( ) { final com . vividsolutions . jts . geom . Geometry geo = org . apache . rya . indexing . geotemporal . mongo . EventDocumentConverterTest . GF . createPoint ( new com . vividsolutions . jts . geom . Coordinate ( 10 , 10 ) ) ; final org . apache . rya . indexing . TemporalInstant instant = new...
org . junit . Assert . assertEquals ( event , converted )
odatarelations_jsonFromTypenullnull ( ) { final java . lang . String entryName = "bar/90_contents/odatacol1/10_odatarelations.json" ; final java . lang . String filename = "/10_odatarelations_fromtype_null.json" ; java . net . URL fileUrl = java . lang . ClassLoader . getSystemResource ( ( ( com . fujitsu . dc . test ....
org . junit . Assert . assertNull ( res )
testPersoonMetBetrokkenhedenMetRelatieWelBetrokkenheden ( ) { final nl . bzk . brp . model . logisch . kern . Actie actie = maakActie ( 20120101 ) ; final nl . bzk . brp . model . bericht . kern . PersoonBericht persoon = new nl . bzk . brp . model . bericht . kern . PersoonBericht ( ) ; persoon . setBetrokkenheden ( n...
org . junit . Assert . assertTrue ( berichtEntiteits . isEmpty ( ) )
testVaderGevondenMaarNietOpgegeven ( ) { final nl . bzk . brp . model . bericht . kern . FamilierechtelijkeBetrekkingBericht relatie = maakFamilieRelatie ( null , maakOuderBetrokkenheid ( nl . bzk . brp . bijhouding . business . regels . impl . bijhouding . afstamming . acties . geboorte . BRBY0036Test . TECHNISCHE_SLE...
org . junit . Assert . assertEquals ( 1 , berichtEntiteiten . size ( ) )
testEqualsWitSameObject ( ) { com . twitter . graphjet . algorithms . RecommendationStats recommendationStats = new com . twitter . graphjet . algorithms . RecommendationStats ( ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( obj == null ) { return false ; } if ( obj == ( this ) ) { return true ; }...
org . junit . Assert . assertTrue ( recommendationStats . equals ( recommendationStats ) )
isSameCause_singleArtifact_noBaseVersion_false ( ) { org . jenkinsci . plugins . pipeline . maven . MavenArtifact firstArtifact = new org . jenkinsci . plugins . pipeline . maven . MavenArtifact ( "com.example:my-jar:jar:1.0-SNAPSHOT" ) ; org . jenkinsci . plugins . pipeline . maven . MavenArtifact secondArtifact = new...
org . junit . Assert . assertThat ( ( ! ( matchingArtifacts . isEmpty ( ) ) ) , org . hamcrest . Matchers . is ( false ) )
testEmptyIntersectionSingleElements ( ) { org . antlr . v4 . runtime . misc . IntervalSet s = org . antlr . v4 . runtime . misc . IntervalSet . of ( 'a' ) ; org . antlr . v4 . runtime . misc . IntervalSet s2 = org . antlr . v4 . runtime . misc . IntervalSet . of ( 'd' ) ; java . lang . String expecting = "{}" ; java . ...
org . junit . Assert . assertEquals ( expecting , result )
testJdbcDataSource ( ) { define ( org . unidal . dal . jdbc . test . TestDataSourceManager . class ) ; try { org . unidal . dal . jdbc . datasource . DataSourceManager manager = lookup ( org . unidal . dal . jdbc . datasource . DataSourceManager . class ) ; org . unidal . dal . jdbc . datasource . DataSource ds = manag...
org . junit . Assert . assertNotNull ( ds . getConnection ( ) )
testGetAll ( ) { java . util . List < org . yes . cart . domain . vo . VoCategory > categoryList = voCategoryService . getAll ( ) ; "<AssertPlaceHolder>" ; } getAll ( ) { return this . shopDao . findAll ( ) ; }
org . junit . Assert . assertNotNull ( categoryList )
testIfDerived_MavenPath ( ) { final org . eclipse . xtext . generator . OutputConfiguration output = new org . eclipse . xtext . generator . OutputConfiguration ( "TEST" ) ; output . setOutputDirectory ( "xtend_gen" ) ; final org . eclipse . xtext . generator . OutputConfiguration . SourceMapping sourceMapping = new or...
org . junit . Assert . assertTrue ( this . classNameValidator . isDerived ( file ) )
testLiveQuery ( ) { "<AssertPlaceHolder>" ; org . kie . api . runtime . KieSession kSession = kBase . newKieSession ( ) ; System . out . println ( "<sp>----<sp>Starting<sp>testLiveQuery()<sp>Test<sp>---" ) ; ca . uhn . fhir . model . dstu2 . resource . Patient patient = ( ( ca . uhn . fhir . model . dstu2 . resource . ...
org . junit . Assert . assertNotNull ( kBase )
test_load_sheet_skip_notFound ( ) { com . gh . mygreen . xlsmapper . XlsMapper mapper = new com . gh . mygreen . xlsmapper . XlsMapper ( ) ; mapper . getConiguration ( ) . setContinueTypeBindFailure ( true ) . setIgnoreSheetNotFound ( true ) ; try ( java . io . InputStream in = new java . io . FileInputStream ( inputFi...
org . junit . Assert . assertThat ( errors )
testServerWithoutTimeoutAndWithThreshold ( ) { boolean status = true ; org . apache . servicecomb . loadbalance . SessionStickinessRule ss = new org . apache . servicecomb . loadbalance . SessionStickinessRule ( ) ; org . apache . servicecomb . core . Invocation invocation = mock ( org . apache . servicecomb . core . I...
org . junit . Assert . assertTrue ( status )
bareJsonLiteralExpression ( ) { io . burt . jmespath . Expression < java . lang . Object > expected = JsonLiteral ( "{}" ) ; io . burt . jmespath . Expression < java . lang . Object > actual = compile ( "`{}`" ) ; "<AssertPlaceHolder>" ; } compile ( java . lang . String ) { return runtime . compile ( str ) ; }
org . junit . Assert . assertThat ( actual , org . hamcrest . Matchers . is ( expected ) )
allows_override_by_class ( ) { com . oneeyedmen . fakir . Factory factory = new com . oneeyedmen . fakir . DefaultFactory ( ) . withOverride ( com . oneeyedmen . fakir . DefaultFactoryTest . ClassToBeFaked . class , new com . oneeyedmen . fakir . Faker < com . oneeyedmen . fakir . DefaultFactoryTest . ClassToBeFaked > ...
org . junit . Assert . assertEquals ( "bob" , ( ( com . oneeyedmen . fakir . DefaultFactoryTest . ClassToBeFaked ) ( factory . createA ( ( ( java . lang . reflect . Type ) ( com . oneeyedmen . fakir . DefaultFactoryTest . ClassToBeFaked . class ) ) ) ) ) . thing ( ) )
testMainForOSName ( ) { java . io . PrintStream out = System . out ; try { java . io . ByteArrayOutputStream buf = new java . io . ByteArrayOutputStream ( ) ; java . io . PrintStream tmpOut = new java . io . PrintStream ( buf ) ; java . lang . System . setOut ( tmpOut ) ; org . sqlite . util . OSInfo . main ( new java ...
org . junit . Assert . assertEquals ( org . sqlite . util . OSInfo . getOSName ( ) , buf . toString ( ) )
collectChar ( ) { org . eclipse . collections . api . list . primitive . CharList expected = org . eclipse . collections . impl . collector . Collectors2AdditionalTest . SMALL_INTERVAL . collectChar ( ( each ) -> ( ( char ) ( each % Character . MAX_VALUE ) ) , CharLists . mutable . empty ( ) ) ; org . eclipse . collect...
org . junit . Assert . assertEquals ( expected , actual )
testGetBiServerContextPath_default ( ) { doReturn ( "http://localhost:8080/" ) . when ( spyAppConfigProperties ) . getBiServerBaseUrl ( ) ; java . lang . String biServerContextPath = spyAppConfigProperties . getBiServerContextPath ( ) ; "<AssertPlaceHolder>" ; } getBiServerContextPath ( ) { java . lang . String baseUrl...
org . junit . Assert . assertEquals ( AppConfigProperties . DEFAULT_BISERVER_CONTEXT_PATH , biServerContextPath )
testExplore4 ( ) { edu . cmu . tetrad . test . Graph graph = edu . cmu . tetrad . test . GraphConverter . convert ( "A-->B,A-->C,A-->D,B-->E,C-->E,D-->E" ) ; edu . cmu . tetrad . search . Fges fges = new edu . cmu . tetrad . search . Fges ( new edu . cmu . tetrad . test . GraphScore ( graph ) ) ; edu . cmu . tetrad . t...
org . junit . Assert . assertEquals ( edu . cmu . tetrad . test . SearchGraphUtils . patternForDag ( graph ) , pattern )
testAuditRetrieveBasedOnEventTypes ( ) { java . util . List < java . lang . String > eventTypes = new java . util . ArrayList ( java . util . Arrays . asList ( EVENT_TYPE ) ) ; gov . hhs . fha . nhinc . auditquerylog . nhinc . proxy . AuditQueryLogProxyJavaImpl auditImpl = new gov . hhs . fha . nhinc . auditquerylog . ...
org . junit . Assert . assertNotNull ( response )
findUsingGenericClientBySearch ( ) { final ca . uhn . fhir . jaxrs . server . example . Bundle results = ca . uhn . fhir . jaxrs . server . example . JaxRsPatientProviderDstu3Test . client . search ( ) . forResource ( ca . uhn . fhir . jaxrs . server . example . Patient . class ) . where ( Patient . NAME . matchesExact...
org . junit . Assert . assertEquals ( results . getEntry ( ) . size ( ) , 1 )
findFunctionsByNameInNamespaceForResourceWithSameNamedResourceFunctionShouldReturnOtherFunction ( ) { ch . puzzle . itc . mobiliar . business . resourcegroup . entity . ResourceTypeEntity rootResourceType = createRootResourceType ( ) ; ch . puzzle . itc . mobiliar . business . resourcegroup . entity . ResourceTypeEntit...
org . junit . Assert . assertTrue ( functionsWithName . contains ( OTHER_FUNCTION_A ) )
testTableExistsException ( ) { doThrow ( new com . bazaarvoice . emodb . sor . api . TableExistsException ( "table-name" ) ) . when ( _server ) . createTable ( eq ( "table-name" ) , any ( com . bazaarvoice . emodb . sor . api . TableOptions . class ) , any ( java . util . Map . class ) , any ( com . bazaarvoice . emodb...
org . junit . Assert . assertEquals ( e . getTable ( ) , "table-name" )
mergerPreservesBroadcastThatBeginsWhenTheAssertionEnds ( ) { org . atlasapi . query . content . merge . BroadcastMerger merger = org . atlasapi . query . content . merge . BroadcastMerger . parse ( "\"channelUri\"|\"2016-01-05T00:00:00Z\"|\"2016-01-06T00:00:00Z\"" ) ; org . atlasapi . media . entity . Broadcast broadca...
org . junit . Assert . assertThat ( merge . contains ( broadcast ) , org . hamcrest . core . Is . is ( true ) )
testCreateAndImmediateList ( ) { int appCount = 10 ; java . lang . String random = org . apache . commons . lang3 . RandomStringUtils . randomAlphabetic ( 10 ) ; java . lang . String orgName = clientSetup . getOrganizationName ( ) ; java . lang . String appName = "testCreateAndImmediateList_app_" + random ; org . apach...
org . junit . Assert . assertEquals ( appCount , count )
getCountOfPatients_shouldCountPatientsBySearchableAttribute_SignatureNo2 ( ) { globalPropertiesTestHelper . setGlobalProperty ( OpenmrsConstants . GLOBAL_PROPERTY_PERSON_ATTRIBUTE_SEARCH_MATCH_MODE , OpenmrsConstants . GLOBAL_PROPERTY_PERSON_ATTRIBUTE_SEARCH_MATCH_ANYWHERE ) ; long patientCount = dao . getCountOfPatien...
org . junit . Assert . assertEquals ( 1 , patientCount )
shouldGetDefaultScoreWithNoOperationScores ( ) { final uk . gov . gchq . gaffer . store . operation . resolver . IfScoreResolver resolver = new uk . gov . gchq . gaffer . store . operation . resolver . IfScoreResolver ( ) ; final uk . gov . gchq . gaffer . store . operation . resolver . DefaultScoreResolver defaultReso...
org . junit . Assert . assertEquals ( 2 , score )
testGetResource ( ) { this . pool = new org . springframework . data . redis . connection . jredis . JredisPool ( connectionSpec ) ; org . jredis . JRedis client = pool . getResource ( ) ; "<AssertPlaceHolder>" ; client . ping ( ) ; } getResource ( ) { try { return internalPool . borrowObject ( ) ; } catch ( java . lan...
org . junit . Assert . assertNotNull ( client )
testGetTableSchemaWithPtnColsSerDeReportedFields ( ) { java . util . Map < java . lang . String , java . lang . String > parameters = com . google . common . collect . Maps . newHashMap ( ) ; parameters . put ( serdeConstants . SERIALIZATION_CLASS , "org.apache.hadoop.hive.serde2.thrift.test.IntString" ) ; parameters ....
org . junit . Assert . assertEquals ( new org . apache . hive . hcatalog . data . schema . HCatSchema ( expectedHCatSchema ) , org . apache . hive . hcatalog . common . HCatUtil . getTableSchemaWithPtnCols ( table ) )
testAddCycle ( ) { org . grain . thread . CycleTest cycleTest = new org . grain . thread . CycleTest ( ) ; cycleTest . name = "testAddCycle" ; boolean result = org . grain . thread . AsyncThreadManager . addCycle ( cycleTest , 1 , 1 ) ; "<AssertPlaceHolder>" ; } addCycle ( org . grain . thread . ICycle , int , int ) { ...
org . junit . Assert . assertEquals ( true , result )
transBlobFile_1 ( ) { org . apache . jena . dboe . transaction . txn . journal . Journal journal = org . apache . jena . dboe . transaction . txn . journal . Journal . create ( org . apache . jena . dboe . base . file . Location . create ( org . apache . jena . dboe . trans . data . TestTransBlobPersistent . DIR ) ) ; ...
org . junit . Assert . assertEquals ( str , s )
testSortByData ( ) { java . util . List < edu . umass . cs . surveyman . survey . SurveyDatum > surveyDatumList = new java . util . ArrayList ( ) ; edu . umass . cs . surveyman . survey . StringDatum e = new edu . umass . cs . surveyman . survey . StringDatum ( "e" ) ; edu . umass . cs . surveyman . survey . StringDatu...
org . junit . Assert . assertArrayEquals ( surveyDatumList . toArray ( ) , new java . lang . Object [ ] { b , e , q , r , s , w } )
testGetUnitPercentage ( ) { java . lang . String serviceCode = "service001" ; java . lang . String referralDate = "2009-12-31" ; org . oscarehr . common . model . BillingService billingService1 = createBillingService ( serviceCode , "20080101" ) ; billingService1 . setPercentage ( "20" ) ; org . oscarehr . common . mod...
org . junit . Assert . assertEquals ( expectedResult , result )
shouldCreateFolderAndDocument ( ) { javax . jcr . Node root = getSession ( ) . getNode ( "jcr:data" 0 ) ; java . lang . String name = "test" + ( java . lang . System . currentTimeMillis ( ) ) ; javax . jcr . Node node = root . addNode ( name , "nt:folder" ) ; "<AssertPlaceHolder>" ; root = getSession ( ) . getNode ( ( ...
org . junit . Assert . assertTrue ( name . equals ( node . getName ( ) ) )
testDestroy ( ) { java . lang . String appName = "example-app" ; try { int result = org . apache . hadoop . yarn . service . client . TestApiServiceClient . asc . actionDestroy ( appName ) ; "<AssertPlaceHolder>" ; } catch ( java . io . IOException | org . apache . hadoop . yarn . exceptions . YarnException e ) { org ....
org . junit . Assert . assertEquals ( org . apache . hadoop . yarn . service . client . EXIT_SUCCESS , result )
testWriteArray4SPP8BPS ( ) { com . twelvemonkeys . imageio . plugins . tiff . ByteArrayOutputStream bytes = new com . twelvemonkeys . imageio . plugins . tiff . ByteArrayOutputStream ( ) ; com . twelvemonkeys . imageio . plugins . tiff . OutputStream stream = new com . twelvemonkeys . imageio . plugins . tiff . Horizon...
org . junit . Assert . assertArrayEquals ( data , bytes . toByteArray ( ) )
shouldTransformToBooleanTarget ( ) { boolean result = new br . com . six2six . fixturefactory . transformer . PrimitiveTransformer ( ) . transform ( "true" , boolean . class ) ; "<AssertPlaceHolder>" ; } transform ( java . lang . Object , java . lang . Class ) { return ( ( T ) ( value . toString ( ) . concat ( "1" ) ) ...
org . junit . Assert . assertTrue ( result )
commercialCard ( ) { com . braintreegateway . integrationtest . BraintreeGateway processingRulesGateway = new com . braintreegateway . integrationtest . BraintreeGateway ( Environment . DEVELOPMENT , "processing_rules_merchant_id" , "processing_rules_public_key" , "processing_rules_private_key" ) ; com . braintreegatew...
org . junit . Assert . assertEquals ( CreditCard . Commercial . YES , card . getCommercial ( ) )
testGetNodeNoNamespace ( ) { java . io . InputStream is = new java . io . ByteArrayInputStream ( "<foo><bar/></foo>" . getBytes ( ) ) ; org . apache . cxf . jaxrs . ext . xml . XMLSource xp = new org . apache . cxf . jaxrs . ext . xml . XMLSource ( is ) ; xp . setBuffering ( ) ; org . apache . cxf . jaxrs . ext . xml ....
org . junit . Assert . assertNotNull ( bar )
xmldbURICompareTo2 ( ) { org . exist . xmldb . XmldbURI xmldbURI1 = org . exist . xmldb . XmldbURI . xmldbUriFor ( "xmldb:exist:///db/collection1" ) ; org . exist . xmldb . XmldbURI xmldbURI2 = org . exist . xmldb . XmldbURI . xmldbUriFor ( "xmldb:exist:///db/collection1" ) ; "<AssertPlaceHolder>" ; } compareTo ( org ....
org . junit . Assert . assertEquals ( 0 , xmldbURI1 . compareTo ( xmldbURI2 ) )
testCase66 ( ) { org . evosuite . testcase . DefaultTestCase tc = buildTestCase66 ( ) ; java . util . List < org . evosuite . symbolic . BranchCondition > branch_conditions = executeTest ( tc ) ; "<AssertPlaceHolder>" ; } size ( ) { return theTest . size ( ) ; }
org . junit . Assert . assertEquals ( 1 , branch_conditions . size ( ) )
composeRedirectUrl_RedirectToService ( ) { org . oscm . ui . dialog . mp . landingpage . LandingpageEntryModel entry = new org . oscm . ui . dialog . mp . landingpage . LandingpageEntryModel ( newEntry ( "s1" ) ) ; entry . setSubscribed ( true ) ; entry . setServiceAccessURL ( "base_url" ) ; entry . setAccessLink ( "ac...
org . junit . Assert . assertEquals ( "access_url" , result )
whenMimeIsEncoded_thenOk ( ) { final java . lang . StringBuilder buffer = com . baeldung . java8 . base64 . Java8EncodeDecodeUnitTest . getMimeBuffer ( ) ; final byte [ ] forEncode = buffer . toString ( ) . getBytes ( ) ; final java . lang . String encodedMime = java . util . Base64 . getMimeEncoder ( ) . encodeToStrin...
org . junit . Assert . assertNotNull ( encodedMime )
itComputesAPIEndpointBasedOnAutomationEndpoint ( ) { java . lang . String [ ] [ ] expectedTransformations = new java . lang . String [ ] [ ] { new java . lang . String [ ] { "/automation/" , "/api/v1/" } , new java . lang . String [ ] { "/nuxeo/site/automation/" , "/nuxeo/api/v1/" } , new java . lang . String [ ] { "/n...
org . junit . Assert . assertEquals ( expected [ 1 ] , uri . toString ( ) )
testEqualsWhenIdentical ( ) { "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { return super . equals ( o ) ; }
org . junit . Assert . assertThat ( entry . equals ( entry ) , org . hamcrest . Matchers . equalTo ( true ) )
isChangesetFullyCloaked_partiallyCloakedPaths ( ) { final java . util . List < java . lang . String > changesetPaths = java . util . Arrays . asList ( "$/foo" , "$/bar" ) ; final java . util . List < java . lang . String > cloakedPaths = java . util . Collections . singletonList ( "$/foo" ) ; final boolean actual = hud...
org . junit . Assert . assertEquals ( false , actual )
isPropertyDisplayableWhenCardinalityIsNullShouldReturnTrue ( ) { java . lang . Integer cardinality = null ; ch . puzzle . itc . mobiliar . business . property . entity . ResourceEditProperty propertyMock = mock ( ch . puzzle . itc . mobiliar . business . property . entity . ResourceEditProperty . class ) ; when ( prope...
org . junit . Assert . assertTrue ( propertyDisplayable )
testFetchByPrimaryKeyExisting ( ) { com . liferay . document . library . kernel . model . DLFileEntry newDLFileEntry = addDLFileEntry ( ) ; com . liferay . document . library . kernel . model . DLFileEntry existingDLFileEntry = _persistence . fetchByPrimaryKey ( newDLFileEntry . getPrimaryKey ( ) ) ; "<AssertPlaceHolde...
org . junit . Assert . assertEquals ( existingDLFileEntry , newDLFileEntry )
itConvertsUTF8 ( ) { java . lang . String ecProperty = "utf-8" ; java . lang . String expected = "UTF-8" ; com . welovecoding . nbeditorconfig . io . model . MappedCharset charset = com . welovecoding . nbeditorconfig . mapper . EditorConfigPropertyMapper . mapCharset ( ecProperty ) ; "<AssertPlaceHolder>" ; } getName ...
org . junit . Assert . assertEquals ( expected , charset . getName ( ) )
testparse2EdmPropertyValueMap ( ) { com . sap . core . odata . processor . core . jpa . access . data . JPAEntityParser resultParser = new com . sap . core . odata . processor . core . jpa . access . data . JPAEntityParser ( ) ; java . lang . Object jpaEntity = new com . sap . core . odata . processor . core . jpa . JP...
org . junit . Assert . assertEquals ( 2 , result . size ( ) )
retrieveSubscriptionReportDataUnitListEmpty ( ) { java . util . List < org . oscm . reportingservice . dao . ReportResultData > result = retrieveSubscriptionReportData ( supplierCustomer . getOrganizationId ( ) , java . util . Collections . < java . lang . Long > emptyList ( ) ) ; "<AssertPlaceHolder>" ; } size ( ) { r...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
testSysPurposePoolPriorityUseCase10RoleMatchesSLABreaksTheTie ( ) { consumer . setRole ( "RHEL<sp>Server" ) ; consumer . setServiceLevel ( "Premium" ) ; org . candlepin . model . Product prodRH00009 = createSysPurposeProduct ( null , "RHEL<sp>Server" , "Pool<sp>RH00008<sp>should<sp>have<sp>a<sp>higher<sp>priority<sp>th...
org . junit . Assert . assertTrue ( "Pool<sp>RH00008<sp>should<sp>have<sp>a<sp>higher<sp>priority<sp>than<sp>pool<sp>RH00009." , ( RH00008Priority > RH00009Priority ) )
testSearchByStorageType ( ) { addStructure ( com . liferay . dynamic . data . mapping . service . test . DDMStructureLocalServiceTest . _classNameId , com . liferay . portal . kernel . util . StringUtil . randomString ( ) ) ; java . util . List < com . liferay . dynamic . data . mapping . model . DDMStructure > structu...
org . junit . Assert . assertEquals ( structures . toString ( ) , 1 , structures . size ( ) )
main_NoInputState_TextPrintedToConsole ( ) { java . util . Map < com . baeldung . hashcode . entities . User , com . baeldung . hashcode . entities . User > users = new java . util . HashMap ( ) ; com . baeldung . hashcode . entities . User user1 = new com . baeldung . hashcode . entities . User ( 1L , "John" , "john@d...
org . junit . Assert . assertTrue ( users . containsKey ( user1 ) )
setPropertyValueOnAllResourceRelationsForContextWhereNotYetSetShouldThrowExceptionWhenNoRelationsFound ( ) { java . lang . String resourceGroupName = "resourceGroupName" ; java . lang . String relatedResourceGroupName = "relatedResourceGroupName" ; java . lang . String relatedResourceReleaseName = "relatedResourceRelea...
org . junit . Assert . assertTrue ( resourcesByGroupNameWithRelations . isEmpty ( ) )
should_return_this ( ) { org . fest . assertions . api . BooleanAssert returned = assertions . isFalse ( ) ; "<AssertPlaceHolder>" ; } isFalse ( ) { return isEqualTo ( false ) ; }
org . junit . Assert . assertSame ( assertions , returned )
givenNotAllEqualList_whenUsingStream_thenReturnFalse ( ) { boolean allEqual = com . baeldung . allequalelements . VerifyAllEqualListElementsUnitTest . verifyAllEqualListElements . verifyAllEqualUsingStream ( com . baeldung . allequalelements . VerifyAllEqualListElementsUnitTest . notAllEqualList ) ; "<AssertPlaceHolder...
org . junit . Assert . assertFalse ( allEqual )
testSetParent ( ) { org . eclipse . swt . widgets . Composite parent = mock ( org . eclipse . swt . widgets . Composite . class ) ; adapter . setParent ( parent ) ; "<AssertPlaceHolder>" ; } getParent ( ) { return parent ; }
org . junit . Assert . assertSame ( parent , adapter . getParent ( ) )
testGetValue_Integer ( ) { int result = ( ( java . lang . Integer ) ( com . eclipsesource . v8 . utils . V8ObjectUtils . getValue ( 7 ) ) ) ; "<AssertPlaceHolder>" ; } getValue ( java . lang . Object ) { return com . eclipsesource . v8 . utils . V8ObjectUtils . getValue ( v8Object , com . eclipsesource . v8 . utils . V...
org . junit . Assert . assertEquals ( 7 , result )
testGetUsersFromNullListIds ( ) { final org . bonitasoft . engine . identity . model . SUser eetu = org . bonitasoft . engine . builder . BuilderFactory . get ( org . bonitasoft . engine . identity . model . builder . SUserBuilderFactory . class ) . createNewInstance ( ) . setUserName ( "Eetu" ) . setPassword ( "kikoo"...
org . junit . Assert . assertEquals ( 0 , retrievedUsers . size ( ) )
shouldApplyNodePropertyCommandToTheStoreInRecovery ( ) { final org . neo4j . kernel . impl . api . BatchTransactionApplier applier = newApplier ( true ) ; final org . neo4j . kernel . impl . store . record . PropertyRecord before = new org . neo4j . kernel . impl . store . record . PropertyRecord ( 11 ) ; final org . n...
org . junit . Assert . assertFalse ( result )
testRandomInt ( ) { int random = org . openscience . cdk . math . RandomNumbersTool . randomInt ( ) ; "<AssertPlaceHolder>" ; } randomInt ( ) { return org . openscience . cdk . math . RandomNumbersTool . randomInt ( 0 , 1 ) ; }
org . junit . Assert . assertTrue ( ( ( random == 0 ) || ( random == 1 ) ) )
testInstall ( ) { when ( applicationEntityService . create ( any ( org . apache . eagle . metadata . model . ApplicationEntity . class ) ) ) . thenReturn ( generateCommonEntity ( ) ) ; resultEntity = applicationManagementService . install ( installOperation ) ; "<AssertPlaceHolder>" ; } install ( org . apache . eagle ....
org . junit . Assert . assertNotNull ( resultEntity )
init ( ) { final java . lang . Object value = org . springframework . test . util . ReflectionTestUtils . getField ( repository , "workersManager" ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( value )
roundtripOfDateIntervalClosed ( ) { net . time4j . PlainDate start = net . time4j . PlainDate . of ( 2014 , 2 , 27 ) ; net . time4j . PlainDate end = net . time4j . PlainDate . of ( 2014 , 5 , 14 ) ; java . lang . Object interval = net . time4j . range . DateInterval . between ( start , end ) ; java . lang . Object ser...
org . junit . Assert . assertThat ( interval , org . hamcrest . CoreMatchers . is ( ser ) )
testOperator_minusNull ( ) { java . lang . Number x = null ; java . math . BigDecimal result = org . eclipse . smarthome . model . script . lib . NumberExtensions . operator_minus ( x ) ; "<AssertPlaceHolder>" ; } operator_minus ( java . lang . Number ) { java . math . BigDecimal xValue = org . eclipse . smarthome . mo...
org . junit . Assert . assertNull ( result )
replace_3arg_NullValue1 ( ) { try { "<AssertPlaceHolder>" ; org . junit . Assert . fail ( "should<sp>have<sp>thrown<sp>an<sp>exception<sp>-<sp>null<sp>value<sp>not<sp>allowed" ) ; } catch ( java . lang . NullPointerException e ) { } } replace ( K , V , V ) { return new Semantic . UpdateExisting < K , V , java . lang . ...
org . junit . Assert . assertFalse ( cache . replace ( 1L , null , "2" ) )
testAddBrandingWithAbsentBranding ( ) { org . candlepin . dto . manifest . v1 . PoolDTO dto = new org . candlepin . dto . manifest . v1 . PoolDTO ( ) ; org . candlepin . dto . manifest . v1 . BrandingDTO branding = new org . candlepin . dto . manifest . v1 . BrandingDTO ( ) ; branding . setProductId ( "test-branding-pr...
org . junit . Assert . assertTrue ( dto . addBranding ( branding ) )
shouldExtractSessionServiceTask ( ) { android . content . Intent intent = new android . content . Intent ( mock ( android . content . Context . class ) , pl . llp . aircasting . sensor . common . SensorService . class ) ; intent . putExtra ( Intents . SESSION_SERVICE_TASK , Intents . STOP_SENSORS ) ; "<AssertPlaceHolde...
org . junit . Assert . assertThat ( pl . llp . aircasting . Intents . getSensorServiceTask ( intent ) , org . hamcrest . CoreMatchers . equalTo ( Intents . STOP_SENSORS ) )
duplicateStatementIdentifierException ( ) { liquibase . exception . DuplicateStatementIdentifierException ex = new liquibase . exception . DuplicateStatementIdentifierException ( "Message<sp>Here" ) ; "<AssertPlaceHolder>" ; } getMessage ( ) { java . lang . String message = "Migration<sp>failed" ; if ( ( failedChangeSe...
org . junit . Assert . assertEquals ( "Message<sp>Here" , ex . getMessage ( ) )
testTreeGetStringAt ( ) { org . jdesktop . swingx . decorator . ComponentAdapterTest . JXTreeT tree = new org . jdesktop . swingx . decorator . ComponentAdapterTest . JXTreeT ( org . jdesktop . test . AncientSwingTeam . createNamedColorTreeModel ( ) ) ; tree . expandAll ( ) ; tree . setCellRenderer ( new org . jdesktop...
org . junit . Assert . assertEquals ( text , adapter . getStringAt ( 2 , 0 ) )
testAvailableItems ( ) { org . drools . runtime . StatefulKnowledgeSession knowledgeSession = knowledgeBase . newStatefulKnowledgeSession ( ) ; try { org . drools . informer . rules . Questionnaire questionnaire = new org . drools . informer . rules . Questionnaire ( "questionnaire" ) ; org . drools . informer . rules ...
org . junit . Assert . assertTrue ( questionnaire . getAvailableItemSet ( ) . contains ( s ) )
testStringExtent_usesStoreageForKnowStrings ( ) { org . eclipse . swt . graphics . Point storedSize = new org . eclipse . swt . graphics . Point ( 100 , 10 ) ; fakeMeasurement ( org . eclipse . rap . rwt . internal . textsize . TextSizeUtil_Test . TEST_STRING , SWT . DEFAULT , TextSizeUtil . STRING_EXTENT , storedSize ...
org . junit . Assert . assertEquals ( storedSize , determinedSize )
connectivity ( ) { org . openscience . cdk . isomorphism . matchers . Expr actual = org . openscience . cdk . smarts . SmartsExprReadTest . getAtomExpr ( "[X4]" ) ; org . openscience . cdk . isomorphism . matchers . Expr expected = org . openscience . cdk . smarts . SmartsExprReadTest . expr ( org . openscience . cdk ....
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( expected ) )
testGETWithEndpointEnabled ( ) { edu . illinois . library . cantaloupe . config . Configuration config = edu . illinois . library . cantaloupe . config . Configuration . getInstance ( ) ; config . setProperty ( Key . API_ENABLED , true ) ; edu . illinois . library . cantaloupe . http . Response response = client . send...
org . junit . Assert . assertEquals ( 200 , response . getStatus ( ) )
testCheckForAuthenticatedAdminWithConfiguredAdminGroup ( ) { configuration . setAdminGroups ( com . google . common . collect . ImmutableSet . of ( "heartOfGold" ) ) ; sonia . scm . user . User slarti = sonia . scm . user . UserTestData . createSlarti ( ) ; slarti . setAdmin ( false ) ; java . util . Set < java . lang ...
org . junit . Assert . assertTrue ( slarti . isAdmin ( ) )
when_focus_is_delayed_then_it_is_not_applied_on_ajax_postback ( ) { browser . get ( contextPath . toExternalForm ( ) ) ; guardAjax ( ajax ) . click ( ) ; "<AssertPlaceHolder>" ; } getFocusedElement ( ) { return org . richfaces . utils . focus . FocusRetriever . retrieveActiveElement ( ) ; }
org . junit . Assert . assertEquals ( null , getFocusedElement ( ) )
categoryFilterLeavesOnlyMatchingMethods ( ) { org . junit . experimental . categories . Categories . CategoryFilter filter = org . junit . experimental . categories . Categories . CategoryFilter . include ( org . junit . tests . experimental . categories . CategoryTest . SlowTests . class ) ; org . junit . runners . Bl...
org . junit . Assert . assertEquals ( 1 , runner . testCount ( ) )
singleHyphen ( ) { joptsimple . OptionSet options = parser . parse ( "-" ) ; "<AssertPlaceHolder>" ; } nonOptionArguments ( ) { joptsimple . AbstractOptionSpec < ? > spec = detectedOptions . get ( NonOptionArgumentSpec . NAME ) ; return valuesOf ( spec ) ; }
org . junit . Assert . assertEquals ( singletonList ( "-" ) , options . nonOptionArguments ( ) )
shouldAccessObjectIdPropertyForDocument ( ) { javax . jcr . Node node = getSession ( ) . getNode ( "/cmis/My_Folder-0-0/My_Document-1-0" ) ; java . lang . String objectId = node . getProperty ( "jcr:uuid" ) . getString ( ) ; "<AssertPlaceHolder>" ; } getString ( ) { return value ; }
org . junit . Assert . assertTrue ( ( objectId != null ) )
testAddingConnectionFactoriesWithTargets ( ) { final java . lang . String poolName = "form:propertySheet:poolPropertySheet:transprop:trans" 4 + ( generateRandomString ( ) ) ; final java . lang . String description = "form:propertySheet:poolPropertySheet:transprop:trans" 1 + poolName ; final java . lang . String instanc...
org . junit . Assert . assertEquals ( poolName , getText ( ( prefix + "form:propertySheet:generalPropertySheet:resTyped:resType" 0 ) ) )
testNeverSampleExtractedSampleAllContext ( ) { org . hawkular . apm . client . opentracing . APMTracerTest . TestTraceRecorder traceRecorder = new org . hawkular . apm . client . opentracing . APMTracerTest . TestTraceRecorder ( ) ; io . opentracing . Tracer tracer = new org . hawkular . apm . client . opentracing . AP...
org . junit . Assert . assertEquals ( 1 , traceRecorder . getTraces ( ) . size ( ) )
testMultiply02 ( ) { javax . el . ELProcessor processor = new javax . el . ELProcessor ( ) ; java . lang . Object result = processor . eval ( "null<sp>*<sp>null" ) ; "<AssertPlaceHolder>" ; } eval ( java . lang . String ) { return getValue ( expression , java . lang . Object . class ) ; }
org . junit . Assert . assertEquals ( java . lang . Long . valueOf ( 0 ) , result )
testBadExpressions ( ) { int count = 1 ; for ( final java . lang . String booleanExpression : org . apache . rya . mongodb . document . util . DocumentVisibilityUtilTest . INVALID_BOOLEAN_EXPRESSIONS ) { org . apache . rya . mongodb . document . util . DocumentVisibilityUtilTest . log . info ( ( "Invalid<sp>Test:<sp>" ...
org . junit . Assert . assertEquals ( expected , booleanString )
shouldNotValidateProcessorIfInvalidMetric ( ) { com . statful . client . framework . springboot . common . ExportedMetric exportedMetric = new com . statful . client . framework . springboot . common . ExportedMetric . Builder ( ) . withName ( com . statful . client . framework . springboot . processor . StatfulMetricP...
org . junit . Assert . assertFalse ( validated )
notAdjacent ( ) { java . lang . String h = "<ol><li<sp>id=1>One<li<sp>id=2>Two<li<sp>id=3>Three</ol>" ; org . jsoup . nodes . Document doc = org . jsoup . Jsoup . parse ( h ) ; org . jsoup . select . Elements sibs = doc . select ( "li#1<sp>+<sp>li#3" ) ; "<AssertPlaceHolder>" ; } size ( ) { return contents . size ( ) ;...
org . junit . Assert . assertEquals ( 0 , sibs . size ( ) )
create ( ) { com . foxinmy . weixin4j . mp . model . Tag tag = tagApi . createTag ( "" ) ; "<AssertPlaceHolder>" ; System . out . println ( tag ) ; } createTag ( java . lang . String ) { java . lang . String tag_create_uri = getRequestUri ( "tag_create_uri" ) ; com . foxinmy . weixin4j . http . weixin . WeixinResponse ...
org . junit . Assert . assertNotNull ( tag )
test ( ) { try ( final net . openhft . chronicle . map . ChronicleMap < net . openhft . chronicle . core . values . IntValue , java . lang . CharSequence > map = net . openhft . chronicle . map . ChronicleMapBuilder . of ( net . openhft . chronicle . core . values . IntValue . class , net . openhft . chronicle . map . ...
org . junit . Assert . assertEquals ( expected , actual . toString ( ) )
showSchemaTest ( ) { java . lang . String sql = "show<sp>schemas" ; switch ( database ) { case "mysql" : break ; case "impala" : break ; case "postgresql" : sql = "select<sp>schema_name<sp>from<sp>information_schema.schemata" ; break ; case "redshift" : sql = "select<sp>schema_name<sp>from<sp>information_schema.schemat...
org . junit . Assert . assertEquals ( expected , actual )
testBackendApolloDomain ( ) { final com . typesafe . config . Config config = com . typesafe . config . ConfigFactory . parseMap ( com . google . common . collect . ImmutableMap . of ( "apollo.domain" , "foo" ) ) ; final com . spotify . apollo . environment . ApolloConfig sut = new com . spotify . apollo . environment ...
org . junit . Assert . assertThat ( sut . backend ( ) , org . hamcrest . Matchers . is ( "foo" ) )
testLongSuv ( ) { byte [ ] expected = org . apache . commons . codec . binary . Hex . decodeHex ( "8395c64122bb430432d8b0298209b736" . toCharArray ( ) ) ; byte [ ] tag = test ( false ) ; "<AssertPlaceHolder>" ; } test ( boolean ) { com . github . aelstad . keccakj . keyak . v2 . LakeKeyak global = new com . github . ae...
org . junit . Assert . assertArrayEquals ( expected , tag )