input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testAddJPAEdmNavigationPropertyView ( ) { com . sap . core . odata . processor . core . jpa . model . JPAEdmNavigationPropertyTest localView = new com . sap . core . odata . processor . core . jpa . model . JPAEdmNavigationPropertyTest ( ) ; com . sap . core . odata . processor . core . jpa . model . JPAEdmNavigationPr...
org . junit . Assert . assertTrue ( ( ( com . sap . core . odata . processor . core . jpa . model . JPAEdmNavigationPropertyTest . objNavigationProperty . getConsistentEdmNavigationProperties ( ) . size ( ) ) > 1 ) )
flattenNonVarargs ( ) { final java . lang . Class [ ] types = new java . lang . Class [ ] { org . nohope . reflection . Integer . class } ; "<AssertPlaceHolder>" ; } flattenVarargs ( java . lang . Class [ ] ) { if ( org . nohope . reflection . IntrospectionUtils . isVarargs ( signature ) ) { final java . lang . Class <...
org . junit . Assert . assertSame ( types , flattenVarargs ( types ) )
testKnownPatternAfter7 ( ) { result = p . match ( "LABEL(B)<sp>AFTER(1)<sp>LABEL(F)" , data ) ; "<AssertPlaceHolder>" ; } size ( ) { return chunkedData . size ( ) ; }
org . junit . Assert . assertEquals ( 1 , result . size ( ) )
trimAll_A$String_StringIsEmpty ( ) { org . junithelper . core . filter . impl . TrimQuotationFilter target = new org . junithelper . core . filter . impl . TrimQuotationFilter ( ) ; java . lang . String src = "" ; java . lang . String actual = target . trimAll ( src ) ; java . lang . String expected = "" ; "<AssertPlac...
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( expected ) ) )
whenCompoundAssignmentUsed_thenSameAsSimpleAssignment ( ) { int a = 3 ; int b = 3 ; int c = - 2 ; a = a * c ; b *= c ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( a , b )
returns_true_if_inner_specification_returns_false ( ) { when ( this . mockInnerSpecification . isSatisfiedBy ( this . request ) ) . thenReturn ( false ) ; boolean isSatisfied = this . specification . isSatisfiedBy ( this . request ) ; "<AssertPlaceHolder>" ; } isSatisfiedBy ( java . lang . Object ) { if ( ! ( request i...
org . junit . Assert . assertTrue ( isSatisfied )
testUnrecognizedOptionWithBursting ( ) { final java . lang . String [ ] args = new java . lang . String [ ] { "-adbtoast" , "foo" , "bar" } ; try { parser . parse ( options , args ) ; org . junit . Assert . fail ( "UnrecognizedOptionException<sp>wasn't<sp>thrown" ) ; } catch ( final org . apache . commons . cli . Unrec...
org . junit . Assert . assertEquals ( "-adbtoast" , e . getOption ( ) )
testScanForUTF16LE ( ) { com . twelvemonkeys . imageio . metadata . xmp . InputStream stream = createXMPStream ( com . twelvemonkeys . imageio . metadata . xmp . XMPScannerTest . XMP , "UTF-16LE" ) ; com . twelvemonkeys . imageio . metadata . xmp . Reader reader = com . twelvemonkeys . imageio . metadata . xmp . XMPSca...
org . junit . Assert . assertNotNull ( reader )
figRef ( ) { java . lang . String input = "<cross-reference<sp>target=\"DRAWINGS\">FIG.<sp>1</cross-reference>" ; java . lang . String expect = "<a<sp>id=\"FR-0001\"<sp>idref=\"FIG-1\"<sp>class=\"figref\">FIG.<sp>1</a>" ; java . lang . String actual = format . getSimpleHtml ( input ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( expect , actual )
testRegisterListener ( ) { com . graphaware . runtime . listener . TopologyListenerAdapter adapter = new com . graphaware . runtime . listener . TopologyListenerAdapter ( ( ( org . neo4j . kernel . internal . GraphDatabaseAPI ) ( getMasterDatabase ( ) ) ) , org . neo4j . kernel . configuration . Config . defaults ( ) )...
org . junit . Assert . assertEquals ( 1 , adapter . topologyChangeEventListeners . size ( ) )
testValidateDataSourceAnnotationWithMissingAnnotation ( ) { java . util . List < java . lang . String > messages = net . bpelunit . framework . control . datasource . DataSourceHelper . validateDataSourceAnnotation ( net . bpelunit . framework . control . datasource . DataSourceHelperTest . DataSourceWithoutAnnotation ...
org . junit . Assert . assertEquals ( 1 , messages . size ( ) )
testRandomFromArray ( ) { try { randomFrom ( new java . lang . Object [ ] { } ) ; org . junit . Assert . fail ( ) ; } catch ( java . lang . IllegalArgumentException e ) { } java . lang . Integer [ ] ints = new java . lang . Integer [ 10 ] ; for ( int i = 0 ; i < ( ints . length ) ; i ++ ) ints [ i ] = i ; for ( int i =...
org . junit . Assert . assertTrue ( ( ( ints [ i ] ) == null ) )
testGetParameters ( ) { java . lang . String name = "AdminUnitN" ; java . lang . String abbrName = "AN" ; org . lnu . is . domain . admin . unit . type . AdminUnitType entity = new org . lnu . is . domain . admin . unit . type . AdminUnitType ( ) ; entity . setName ( name ) ; entity . setAbbrName ( abbrName ) ; java . ...
org . junit . Assert . assertEquals ( expected , actual )
testGetParameters ( ) { java . lang . String name = "DutyN" ; java . lang . String abbrName = "AN" ; org . lnu . is . domain . duty . type . DutyType entity = new org . lnu . is . domain . duty . type . DutyType ( ) ; entity . setName ( name ) ; entity . setAbbrName ( abbrName ) ; java . util . Map < java . lang . Stri...
org . junit . Assert . assertEquals ( expected , actual )
isAuthenticationEnabledFalse ( ) { expect ( backend . nodeExists ( rootNode ) ) . andReturn ( true ) ; expect ( backend . getContent ( rootNode ) ) . andReturn ( getData ( org . talend . esb . servicelocator . client . internal . zk . RootNodeImplTest . V_5_2_0 , false ) ) ; replay ( backend ) ; "<AssertPlaceHolder>" ;...
org . junit . Assert . assertFalse ( rootNode . isAuthenticationEnabled ( ) )
testBooleanScriptWithName ( ) { boolean result = v8 . executeBooleanScript ( "true" , "name" , 4 ) ; "<AssertPlaceHolder>" ; } executeBooleanScript ( java . lang . String , java . lang . String , int ) { checkThread ( ) ; com . eclipsesource . v8 . V8 . checkScript ( script ) ; return executeBooleanScript ( v8RuntimePt...
org . junit . Assert . assertTrue ( result )
testAnnotationSelect2 ( ) { java . lang . Long userId = this . insertAnnotationUser ( ) ; com . dexcoder . test . model . AnnotationUser annotationUser = new com . dexcoder . test . model . AnnotationUser ( ) ; annotationUser . setUsernameId ( userId ) ; java . util . List < com . dexcoder . test . model . AnnotationUs...
org . junit . Assert . assertTrue ( ( ( userList . size ( ) ) == 1 ) )
testCreateTenantVDCEdgeDeviceRoute ( ) { boolean response = com . cloud . network . cisco . CiscoVnmcConnectionTest . connection . createTenantVDCEdgeStaticRoute ( com . cloud . network . cisco . CiscoVnmcConnectionTest . tenantName , "10.223.136.1" , "0.0.0.0" , "0.0.0.0" ) ; "<AssertPlaceHolder>" ; } createTenantVDCE...
org . junit . Assert . assertTrue ( response )
testShortName ( ) { ca . corefacility . bioinformatics . irida . model . upload . galaxy . GalaxyAccountEmail email = new ca . corefacility . bioinformatics . irida . model . upload . galaxy . GalaxyAccountEmail ( "a@b." ) ; java . util . Set < javax . validation . ConstraintViolation < ca . corefacility . bioinformati...
org . junit . Assert . assertEquals ( 2 , constraintViolations . size ( ) )
parseApacheHttpdOnlyDurationTime ( ) { com . navercorp . pinpoint . bootstrap . plugin . proxy . ProxyHttpHeaderParser parser = new com . navercorp . pinpoint . bootstrap . plugin . proxy . ProxyHttpHeaderParser ( ) ; final long currentTimeMillis = java . lang . System . currentTimeMillis ( ) ; java . lang . String val...
org . junit . Assert . assertFalse ( proxyHttpHeader . isValid ( ) )
testDelete ( ) { runTX ( new java . util . concurrent . Callable < java . lang . Void > ( ) { @ org . oscm . domobjects . Override public org . oscm . domobjects . Void call ( ) throws org . oscm . domobjects . Exception { org . oscm . domobjects . MarketingPermission permission = new org . oscm . domobjects . Marketin...
org . junit . Assert . assertNull ( found )
testMaskUnsignedByteToShortByte_LowestValue ( ) { short expected = 0 ; short actual = de . persosim . simulator . utils . Utils . maskUnsignedByteToShort ( ( ( byte ) ( 0 ) ) ) ; "<AssertPlaceHolder>" ; } maskUnsignedByteToShort ( byte ) { return ( ( short ) ( byteValue & ( de . persosim . simulator . utils . Utils . M...
org . junit . Assert . assertEquals ( expected , actual )
getDefaultVisibilityForwardsCalls ( ) { when ( this . visibilityManager . getDefaultVisibility ( ) ) . thenReturn ( org . phenotips . data . permissions . internal . DefaultEntityPermissionsManagerTest . PUBLIC_VISIBILITY ) ; "<AssertPlaceHolder>" ; verify ( this . visibilityManager , times ( 1 ) ) . getDefaultVisibili...
org . junit . Assert . assertSame ( org . phenotips . data . permissions . internal . DefaultEntityPermissionsManagerTest . PUBLIC_VISIBILITY , this . component . getDefaultVisibility ( ) )
testGetConfiguration ( ) { mockInstanceForConfig ( ) ; ready ( ) ; org . apache . accumulo . core . conf . AccumuloConfiguration c = scf . getSystemConfiguration ( ) ; "<AssertPlaceHolder>" ; } getSystemConfiguration ( ) { if ( ( systemConfig ) == null ) { systemConfig = new org . apache . accumulo . server . conf . Zo...
org . junit . Assert . assertNotNull ( c )
testThatGetIdentityColumnMethodReturnsOneColumnForTableWithSinglePrimaryKey ( ) { io . quantumdb . core . schema . definitions . Column idColumn = new io . quantumdb . core . schema . definitions . Column ( "id" , io . quantumdb . core . schema . definitions . TestTypes . bigint ( ) , Hint . IDENTITY , Hint . AUTO_INCR...
org . junit . Assert . assertEquals ( com . google . common . collect . Lists . newArrayList ( idColumn ) , table . getIdentityColumns ( ) )
parseAssemblySponsor ( ) { java . lang . String sponsorsLine = "CAHILL" ; java . lang . String expectedSponsor = "CAHILL" ; gov . nysenate . openleg . processor . daybreak . DaybreakFragmentSponsorParser . parseSponsors ( assemblyBill , sponsorsLine ) ; "<AssertPlaceHolder>" ; } getSponsor ( ) { return sponsor ; }
org . junit . Assert . assertEquals ( expectedSponsor , assemblyBill . getSponsor ( ) )
testDynamicQueryByProjectionMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . message . boards . model . MBThread . class , _dynamicQueryClassLoader ) ; dynamicQuery . setProjection (...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
stringToKeyUpUpdatesModelOnChange ( ) { binder . bind ( s ) . toKeyUp ( box ) ; box . type ( "a" ) ; "<AssertPlaceHolder>" ; } get ( ) { int i = 0 ; for ( org . tessell . tests . model . properties . DummyModel model : models . get ( ) ) { if ( ( ( model . name . get ( ) ) != null ) && ( model . name . get ( ) . starts...
org . junit . Assert . assertThat ( s . get ( ) , org . hamcrest . CoreMatchers . is ( "a" ) )
shouldReturnTrueWhenCheckIfProductIsParticularProduct ( ) { given ( companyProduct . getBelongsToField ( com . qcadoo . mes . deliveries . hooks . PRODUCT ) ) . willReturn ( product ) ; given ( productService . checkIfProductEntityTypeIsCorrect ( product , com . qcadoo . mes . deliveries . hooks . PARTICULAR_PRODUCT ) ...
org . junit . Assert . assertTrue ( result )
testParseString ( ) { pl . edu . icm . cermine . metadata . affiliation . CRFAffiliationParser parser = new pl . edu . icm . cermine . metadata . affiliation . CRFAffiliationParser ( ) ; org . jdom . output . XMLOutputter outputter = new org . jdom . output . XMLOutputter ( ) ; java . lang . String input = "Department<...
org . junit . Assert . assertEquals ( expected , actual )
testCase29 ( ) { org . evosuite . testcase . DefaultTestCase tc = buildTestCase29 ( ) ; java . util . List < org . evosuite . symbolic . BranchCondition > branch_conditions = executeTest ( tc ) ; "<AssertPlaceHolder>" ; } size ( ) { return theTest . size ( ) ; }
org . junit . Assert . assertEquals ( 2 , branch_conditions . size ( ) )
testInvert ( ) { one . util . streamex . Map < java . lang . Integer , java . lang . String > result = one . util . streamex . EntryStream . of ( one . util . streamex . EntryStreamTest . createMap ( ) ) . invert ( ) . toMap ( ) ; one . util . streamex . Map < java . lang . Integer , java . lang . String > expected = n...
org . junit . Assert . assertEquals ( expected , result )
variantEnglandComplex ( ) { net . time4j . history . ChronoHistory history = net . time4j . history . ChronoHistory . of ( Locale . UK ) ; "<AssertPlaceHolder>" ; System . out . println ( history . getVariant ( ) ) ; } from ( java . lang . String ) { if ( ! ( variant . startsWith ( "historic-" ) ) ) { throw new java . ...
org . junit . Assert . assertThat ( net . time4j . history . ChronoHistory . from ( history . getVariant ( ) ) , org . hamcrest . CoreMatchers . is ( history ) )
testUnauthorized ( ) { io . dropwizard . jersey . setup . JerseyEnvironment jerseyEnvironment = mock ( io . dropwizard . jersey . setup . JerseyEnvironment . class ) ; org . whispersystems . websocket . setup . WebSocketEnvironment environment = mock ( org . whispersystems . websocket . setup . WebSocketEnvironment . c...
org . junit . Assert . assertNull ( connection )
testGetLoggerWithClassNameAndBundleNameParameters ( ) { dagger . ObjectGraph objectGraph = dagger . ObjectGraph . create ( new org . loginject . JavaUtilLoggingLoggerTest . GetLoggerStringStringModule ( ) ) ; org . loginject . JavaUtilLoggingLoggerTest . TestClass1 service = objectGraph . get ( org . loginject . JavaUt...
org . junit . Assert . assertArrayEquals ( expected , actual )
testResetStateWhenInMulti ( ) { jedis . auth ( "foobared" ) ; redis . clients . jedis . Transaction t = jedis . multi ( ) ; t . set ( "foooo" , "barrr" ) ; jedis . resetState ( ) ; "<AssertPlaceHolder>" ; } get ( byte [ ] ) { sendCommand ( redis . clients . jedis . GET , key ) ; }
org . junit . Assert . assertNull ( jedis . get ( "foooo" ) )
testGetClientIdWithPrefix ( ) { java . lang . String clientId = clientIdProviderWithClientIdPrefix . getClientId ( ) ; java . lang . String expectedClientId = ( ( clientIdPrefix ) + "joynr:" ) + ( standardReceiverId ) ; "<AssertPlaceHolder>" ; } getClientId ( ) { return clientId ; }
org . junit . Assert . assertEquals ( expectedClientId , clientId )
findAll ( ) { java . util . Collection < org . superbiz . dynamic . User > users = org . superbiz . dynamic . DynamicUserDaoTest . dao . findAll ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return jug . client . util . CommandManager . COMMANDS . size ( ) ; }
org . junit . Assert . assertEquals ( 10 , users . size ( ) )
testFetchByPrimaryKeyExisting ( ) { com . liferay . dynamic . data . lists . model . DDLRecord newDDLRecord = addDDLRecord ( ) ; com . liferay . dynamic . data . lists . model . DDLRecord existingDDLRecord = _persistence . fetchByPrimaryKey ( newDDLRecord . getPrimaryKey ( ) ) ; "<AssertPlaceHolder>" ; } getPrimaryKey ...
org . junit . Assert . assertEquals ( existingDDLRecord , newDDLRecord )
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 ( difference )
testValidateKeyColumnStringShort ( ) { com . google . api . services . bigquery . model . TableFieldSchema column = new com . google . api . services . bigquery . model . TableFieldSchema ( ) . setName ( shortStringField ) . setType ( "STRING" ) ; org . apache . avro . generic . GenericData . Record record = generateSi...
org . junit . Assert . assertFalse ( isThrown )
testEqualsObjectSameSubscriberId ( ) { target2 = new org . o3project . odenos . remoteobject . event . EventSubscription ( "subscriberId" ) ; org . o3project . odenos . remoteobject . event . EventSubscription comp = new org . o3project . odenos . remoteobject . event . EventSubscription ( "subscriberId" ) ; boolean re...
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( true ) )
testToJson ( ) { org . eclipse . rap . rwt . template . Position position = new org . eclipse . rap . rwt . template . Position ( 3.14F , 42 ) ; org . eclipse . rap . json . JsonArray json = position . toJson ( ) ; "<AssertPlaceHolder>" ; } add ( org . eclipse . ui . presentations . IPresentablePart ) { partList . add ...
org . junit . Assert . assertEquals ( new org . eclipse . rap . json . JsonArray ( ) . add ( 3.14F ) . add ( 42 ) , json )
testFromWithFireAfterSerialization ( ) { java . lang . String str = "import<sp>java.util.Collection\n" + ( ( ( "rule<sp>R1<sp>when\n" + "<sp>String()<sp>from<sp>[<sp>\"x\",<sp>\"y\",<sp>\"z\"<sp>]\n" ) + "then\n" ) + "end\n" ) ; org . kie . api . KieBase kbase = new org . kie . internal . utils . KieHelper ( ) . addCon...
org . junit . Assert . assertEquals ( 3 , ksession . fireAllRules ( ) )
testGetAlias ( ) { org . pentaho . hbase . shim . api . HBaseValueMeta hbMeta = getHBaseValueMeta ( ) ; this . name = "test" ; "<AssertPlaceHolder>" ; } getAlias ( ) { return getName ( ) ; }
org . junit . Assert . assertEquals ( "test" , hbMeta . getAlias ( ) )
testRecoveryFailureAfterOneAttemptRuntimeFailure ( ) { org . apache . asterix . test . active . ActiveEventsListenerTest . handler . unregisterListener ( org . apache . asterix . test . active . ActiveEventsListenerTest . listener ) ; org . apache . asterix . test . active . ActiveEventsListenerTest . listener = new or...
org . junit . Assert . assertEquals ( ActivityState . STOPPED , org . apache . asterix . test . active . ActiveEventsListenerTest . listener . getState ( ) )
testPreimageProof2 ( ) { ch . bfh . unicrypt . math . function . classes . GeneratorFunction f = ch . bfh . unicrypt . math . function . classes . GeneratorFunction . getInstance ( this . G_q1 . getElement ( 4 ) ) ; ch . bfh . unicrypt . crypto . proofsystem . challengegenerator . interfaces . SigmaChallengeGenerator s...
org . junit . Assert . assertTrue ( v )
testList ( ) { int previous = satisfactionDAO . list ( org . libreplan . business . resources . entities . CriterionSatisfaction . class ) . size ( ) ; org . libreplan . business . resources . entities . CriterionSatisfaction satisfaction1 = createValidCriterionSatisfaction ( 2007 ) ; org . libreplan . business . resou...
org . junit . Assert . assertEquals ( ( previous + 2 ) , satisfactionDAO . list ( org . libreplan . business . resources . entities . CriterionSatisfaction . class ) . size ( ) )
test ( ) { java . util . Map < java . lang . Object , java . lang . Object > map = com . zlikun . jee . MapBuilder . init ( 4 ) . put ( "name" , "zlikun" ) . put ( "age" , 120 ) . build ( ) ; "<AssertPlaceHolder>" ; } build ( ) { return this . map ; }
org . junit . Assert . assertEquals ( "zlikun" , map . get ( "name" ) )
testTypeDeclaration ( ) { org . drools . core . rule . TypeDeclaration typeDec1 = new org . drools . core . rule . TypeDeclaration ( org . drools . core . rule . EnumSerialiationTest . TEST_NAME ) ; org . drools . core . rule . TypeDeclaration typeDec2 = org . drools . core . integrationtests . SerializationHelper . se...
org . junit . Assert . assertEquals ( typeDec1 , typeDec2 )
assertCompareToForAscWithGroupByItems ( ) { org . apache . shardingsphere . core . merge . dql . common . MemoryQueryResultRow o1 = new org . apache . shardingsphere . core . merge . dql . common . MemoryQueryResultRow ( mockQueryResult ( "1" , "2" ) ) ; org . apache . shardingsphere . core . merge . dql . common . Mem...
org . junit . Assert . assertTrue ( ( ( groupByRowComparator . compare ( o1 , o2 ) ) < 0 ) )
testSelectGetTestByKey ( ) { try { mockTestMapper . selectByPrimaryKey ( org . easymock . EasyMock . anyLong ( ) ) ; org . easymock . EasyMock . expectLastCall ( ) . andReturn ( new net . yuanmomo . dwz . bean . Test ( ) ) . times ( 1 ) ; control . replay ( ) ; test = testBusiness . getTestByKey ( 0L ) ; "<AssertPlaceH...
org . junit . Assert . assertNotNull ( test )
southernThreeWesternEdges ( ) { getNorthSouthSouthernThreeWesternEdges ( ) ; int crossingCount = initCounterForLayerWithIndexAndCountInLayer ( 1 ) ; "<AssertPlaceHolder>" ; } initCounterForLayerWithIndexAndCountInLayer ( int ) { setUpIds ( ) ; int numPorts = 0 ; for ( org . eclipse . elk . alg . layered . graph . Layer...
org . junit . Assert . assertThat ( crossingCount , org . hamcrest . CoreMatchers . is ( 3 ) )
testNShortestPaths ( ) { System . out . println ( "Testing<sp>NShortestPaths..." ) ; edu . cmu . sphinx . fst . Fst fst = edu . cmu . sphinx . fst . openfst . Convert . importFst ( "src/test/edu/cmu/sphinx/fst/data/tests/algorithms/shortestpath/A" , new edu . cmu . sphinx . fst . semiring . TropicalSemiring ( ) ) ; edu...
org . junit . Assert . assertTrue ( nsp . equals ( fstNsp ) )
testZBCSLogicalWatches ( ) { com . cloudera . flume . conf . FlumeConfiguration cfg = com . cloudera . flume . conf . FlumeConfiguration . createTestableConfiguration ( ) ; cfg . set ( FlumeConfiguration . MASTER_ZK_SERVERS , "localhost:2181:3181:4181" ) ; java . io . File tmp = com . cloudera . util . FileUtil . mktem...
org . junit . Assert . assertEquals ( "logical1" , manager2 . getLogicalNode ( "logical-watch" ) . get ( 0 ) )
testNameAndBlankVersion ( ) { final org . apache . nifi . components . PropertyValue nameValue = new org . apache . nifi . util . MockPropertyValue ( "person" ) ; final org . apache . nifi . components . PropertyValue branchValue = new org . apache . nifi . util . MockPropertyValue ( null ) ; final org . apache . nifi ...
org . junit . Assert . assertNotNull ( retrievedSchema )
testGetPropertyGeneric ( ) { com . lynden . gmapsfx . javascript . object . LatLong latLong = new com . lynden . gmapsfx . javascript . object . LatLong ( 1 , 1 ) ; when ( mockJsObject . getMember ( "LatLong" ) ) . thenReturn ( latLong ) ; com . lynden . gmapsfx . javascript . object . LatLong actualLatLong = testJavas...
org . junit . Assert . assertEquals ( latLong , actualLatLong )
shouldReturnTrueIfClientHasMobile ( ) { when ( com . practicalunittesting . chp05 . mockornot . mockito . MockingTest . MOBILE_PHONE . isMobile ( ) ) . thenReturn ( true ) ; client . addPhone ( com . practicalunittesting . chp05 . mockornot . mockito . MockingTest . MOBILE_PHONE ) ; client . addPhone ( com . practicalu...
org . junit . Assert . assertTrue ( client . hasMobile ( ) )
getDrugs_shouldReturnDrugIf_eitherDrugNameOrConceptNameMatchesThePhaseNotBoth ( ) { org . openmrs . Concept concept = dao . getConcept ( 3 ) ; java . util . List < org . openmrs . Drug > drugList = dao . getDrugs ( "COUGH" , concept , true , true , false , 0 , 10 ) ; "<AssertPlaceHolder>" ; } size ( ) { return getMembe...
org . junit . Assert . assertEquals ( 2 , drugList . size ( ) )
terminateSubscription_successful ( ) { poSubscriptionAndCustomers = givenPOSubscriptionAndCustomersList ( ) ; poSubscriptionAndCustomers . add ( getPOSubscriptionAndCustomer ( org . oscm . ui . beans . SubscriptionViewBeanTest . SUB_ID ) ) ; response = new org . oscm . internal . components . response . Response ( poSu...
org . junit . Assert . assertEquals ( 3 , bean . getSubscriptionsListSize ( ) )
test_Filter15 ( ) { java . lang . String expected = "cbdadbc" ; java . lang . String actual ; org . osgi . framework . Bundle bundle = installBundle ( org . eclipse . equinox . http . servlet . tests . TEST_BUNDLE_1 ) ; try { bundle . start ( ) ; actual = requestAdvisor . request ( "something/a.TestFilter15" ) ; } fina...
org . junit . Assert . assertEquals ( expected , actual )
testLoadQueriesNotFound ( ) { org . jbpm . shared . services . impl . QueryManager manager = new org . jbpm . shared . services . impl . QueryManager ( ) ; manager . addNamedQueries ( "test-orm.xml" ) ; java . lang . String query = manager . getQuery ( "test-query-1" , null ) ; "<AssertPlaceHolder>" ; } getQuery ( java...
org . junit . Assert . assertNull ( query )
shouldRespondToHelloWorld ( ) { javax . ws . rs . core . Response response = com . neo4j . example . bws . NeoServiceTest . service . helloWorld ( ) ; java . util . HashMap actual = com . neo4j . example . bws . NeoServiceTest . objectMapper . readValue ( ( ( java . lang . String ) ( response . getEntity ( ) ) ) , java...
org . junit . Assert . assertEquals ( com . neo4j . example . bws . NeoServiceTest . expected , actual )
whenCreatedWithInt_isInteger ( ) { io . kubernetes . client . custom . IntOrString intOrString = new io . kubernetes . client . custom . IntOrString ( 17 ) ; "<AssertPlaceHolder>" ; } isInteger ( ) { return isInt ; }
org . junit . Assert . assertThat ( intOrString . isInteger ( ) , org . hamcrest . Matchers . is ( true ) )
test_in_by_str_list ( ) { java . util . List < java . lang . String > list = new java . util . ArrayList < java . lang . String > ( ) ; list . add ( "'A'" ) ; list . add ( "B" ) ; org . nutz . dao . Condition c = org . nutz . dao . Cnd . where ( "nm" , "iN" , list ) ; java . lang . String exp = "WHERE<sp>nm<sp>IN<sp>('...
org . junit . Assert . assertEquals ( exp , c . toSql ( null ) . trim ( ) )
testSort09 ( ) { org . stjs . javascript . JSGlobal . Array < org . stjs . javascript . JSGlobal . String > alphabetR = org . stjs . javascript . JSCollections . $array ( "z" , "y" , "p" 5 , "o" 1 , "v" , "p" 1 , "t" , "o" 0 , "r" , "q" , "p" , "o" , "p" 4 , "M" , "p" 8 , "p" 9 , "p" 6 , "o" 3 , "o" 2 , "o" 4 , "p" 7 ,...
org . junit . Assert . assertTrue ( "o" 5 , result )
assertDeleteAll_authenticatedContributor_tags_admin_type ( ) { given ( ) . contentType ( ContentType . JSON ) . auth ( ) . preemptive ( ) . basic ( contribTagsAdminTypeCorrectUsername , contribTagsAdminTypeCorrectPassword ) . pathParam ( "id" , contentId3ToTag ) . expect ( ) . statusCode ( 200 ) . log ( ) . ifValidatio...
org . junit . Assert . assertNull ( st )
testGetEnergyScore ( ) { org . openscience . cdk . smiles . SmilesParser sp = new org . openscience . cdk . smiles . SmilesParser ( org . openscience . cdk . DefaultChemObjectBuilder . getInstance ( ) ) ; org . openscience . cdk . interfaces . IAtomContainer target = sp . parseSmiles ( "C\\C=C/Nc1cccc(c1)N(O)\\C=C\\C\\...
org . junit . Assert . assertEquals ( score , smsd1 . getEnergyScore ( 0 ) )
hasDuplicatesShouldReturnFalseWhenClassNameIsDuplicateAndBytecodeDiffers ( ) { org . apache . maven . plugins . enforcer . ClassFile classFile1 = classFileHelper . createWithContent ( org . apache . maven . plugins . enforcer . ClassesWithSameNameTest . PATH_TO_CLASS_FILE , "1" ) ; org . apache . maven . plugins . enfo...
org . junit . Assert . assertTrue ( result )
getEndpoint ( ) { org . talend . esb . servicelocator . client . internal . zk . ServiceNodeImpl serviceNode = new org . talend . esb . servicelocator . client . internal . zk . ServiceNodeImpl ( backend , rootNode , org . talend . esb . servicelocator . TestValues . SERVICE_QNAME_1 ) ; org . talend . esb . serviceloca...
org . junit . Assert . assertThat ( endpointNode . getEndpointName ( ) , org . hamcrest . Matchers . equalTo ( org . talend . esb . servicelocator . TestValues . ENDPOINT_1 ) )
testGenerateWithNullInput ( ) { final com . atlassian . jira . rest . client . internal . json . gen . IssueInputJsonGenerator generator = new com . atlassian . jira . rest . client . internal . json . gen . IssueInputJsonGenerator ( ) ; final com . atlassian . jira . rest . client . api . domain . input . IssueInput i...
org . junit . Assert . assertThat ( expected , com . atlassian . jira . rest . client . test . matchers . JSONObjectMatcher . isEqual ( actual ) )
testCreateUpdateEntity ( ) { io . yawp . driver . postgresql . datastore . Entity entity = new io . yawp . driver . postgresql . datastore . Entity ( "parents" ) ; entity . setProperty ( "name" , "jim" ) ; io . yawp . driver . postgresql . datastore . Key key = datastore . put ( entity ) ; entity . setProperty ( "name"...
org . junit . Assert . assertEquals ( "robert" , retrievedEntity . getProperty ( "name" ) )
testMultiLayerIdInex ( ) { de . vandermeer . svg2vector . applications . is . Svg2Vector_IS app = new de . vandermeer . svg2vector . applications . is . Svg2Vector_IS ( ) ; java . lang . String [ ] args = org . apache . commons . lang3 . ArrayUtils . addAll ( de . vandermeer . svg2vector . applications . is . Test_Svg2...
org . junit . Assert . assertEquals ( 0 , app . executeApplication ( args ) )
test_findShortestWord_2 ( ) { java . lang . String [ ] expected = new java . lang . String [ ] { "" , "" , "" , "Linux" , "Linux" , "" , "" , "" , "Linux" } ; org . trie4j . Trie t = trieWithWords ( "" , "" , "" , "" , "Linux" , "Linux" , "Linux" , "Linux" , "" , "" ) ; java . util . List < java . lang . String > actua...
org . junit . Assert . assertArrayEquals ( expected , actual . toArray ( new java . lang . String [ ] { } ) )
testGetByUniqueIdWorksWithConceptMappings ( ) { org . openmrs . ConceptSource snomed = conceptService . getConceptSource ( 2 ) ; org . openmrs . ConceptReferenceTerm term = new org . openmrs . ConceptReferenceTerm ( snomed , "307486002" , null ) ; conceptService . saveConceptReferenceTerm ( term ) ; org . openmrs . Con...
org . junit . Assert . assertThat ( orderFrequency . getConcept ( ) , org . hamcrest . core . Is . is ( concept ) )
testRunTasksWithInvokeAll_shouldBeExecutedInCorrectContext ( ) { final java . util . concurrent . atomic . AtomicInteger successfulExecutions = new java . util . concurrent . atomic . AtomicInteger ( 0 ) ; java . lang . Runnable command = new java . lang . Runnable ( ) { @ org . openengsb . core . util . Override publi...
org . junit . Assert . assertThat ( successfulExecutions . get ( ) , org . hamcrest . CoreMatchers . is ( 3 ) )
testSymmetric4 ( ) { spimedb . cluster . feature . spatial . GeoSpatialFeature t1 = new spimedb . cluster . feature . spatial . GeoSpatialFeature ( ) ; t1 . setValue ( 51.253775 , ( - 85.3232139 ) ) ; spimedb . cluster . feature . spatial . GeoSpatialFeature t2 = new spimedb . cluster . feature . spatial . GeoSpatialFe...
org . junit . Assert . assertTrue ( isEqual ( d1 , d2 ) )
shouldConstructGroupedProperties ( ) { final java . lang . String group = "group1" ; final uk . gov . gchq . gaffer . data . element . GroupedProperties groupedProperties = new uk . gov . gchq . gaffer . data . element . GroupedProperties ( group ) ; "<AssertPlaceHolder>" ; } getGroup ( ) { return group ; }
org . junit . Assert . assertEquals ( group , groupedProperties . getGroup ( ) )
monthTest ( ) { int month = cn . hutool . core . date . DateUtil . parse ( "2017-07-01" ) . month ( ) ; "<AssertPlaceHolder>" ; } month ( ) { return getField ( DateField . MONTH ) ; }
org . junit . Assert . assertEquals ( 6 , month )
testBuildWithDisabledDefaultConstraintWithOrderBy ( ) { unit . setActive ( false ) ; unit . setSecurity ( false ) ; org . lnu . is . domain . department . name . DepartmentName context = new org . lnu . is . domain . department . name . DepartmentName ( ) ; org . lnu . is . pagination . OrderBy orderBy1 = new org . lnu...
org . junit . Assert . assertEquals ( expectedQuery , actualQuery )
testGetParser ( ) { byte [ ] testValue = new byte [ ] { 0 , 1 , 2 , 3 , 4 } ; com . amazonaws . mobileconnectors . iot . Asn1Object asn1Object = new com . amazonaws . mobileconnectors . iot . Asn1Object ( ( ( DerParser . NUMERIC_STRING ) | ( com . amazonaws . mobileconnectors . iot . Asn1ObjectTest . DER_CONSTRUCTED ) ...
org . junit . Assert . assertTrue ( ( ( asn1Object . getParser ( ) ) instanceof com . amazonaws . mobileconnectors . iot . DerParser ) )
testBadge ( ) { item . setData ( RWT . BADGE , "123" ) ; "<AssertPlaceHolder>" ; } getData ( java . lang . String ) { if ( ( dataTable ) == null ) return null ; return ( ( java . lang . String ) ( dataTable . get ( key ) ) ) ; }
org . junit . Assert . assertEquals ( "123" , item . getData ( RWT . BADGE ) )
deveObterStatusRespostaComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe400 . classes . cadastro . NFRetornoConsultaCadastroDados retornoConsultaCadastroDados = new com . fincatto . documentofiscal . nfe400 . classes . cadastro . NFRetornoConsultaCadastroDados ( ) ; retornoConsultaCadastroDados . setStat...
org . junit . Assert . assertEquals ( "fhowdk" , retornoConsultaCadastroDados . getStatusResposta ( ) )
test_float ( ) { org . jerlang . type . Integer expected = new org . jerlang . type . Integer ( 4 ) ; org . jerlang . type . Term result = org . jerlang . erts . Erlang . apply ( org . jerlang . type . Atom . of ( "maptest" ) , org . jerlang . type . Atom . of ( "test" ) , List . nil ) ; "<AssertPlaceHolder>" ; } of ( ...
org . junit . Assert . assertEquals ( expected , result )
testSerialization ( ) { org . jfree . data . xy . XYDataItem i1 = new org . jfree . data . xy . XYDataItem ( 1.0 , 1.1 ) ; org . jfree . data . xy . XYDataItem i2 = ( ( org . jfree . data . xy . XYDataItem ) ( org . jfree . chart . TestUtilities . serialised ( i1 ) ) ) ; "<AssertPlaceHolder>" ; } serialised ( java . la...
org . junit . Assert . assertEquals ( i1 , i2 )
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 ( brpBijhoudingsaard )
testBasics ( ) { java . io . Reader r = new java . io . StringReader ( "\"hond,<sp>a.u.b.:<sp>bél(len);<sp>\t<sp>[pre]cursor<sp>\t\nzo\'n<sp>\'Hij<sp>zij\'<sp>ex-man<sp>-" ) ; try ( org . apache . lucene . analysis . Tokenizer ts = new nl . inl . blacklab . analysis . BLDutchTokenizer ( ) ) { ts . setReader ( r ) ; ts ...
org . junit . Assert . assertFalse ( ts . incrementToken ( ) )
testDynamicPartition ( ) { org . nd4j . autodiff . samediff . SameDiff sd = org . nd4j . autodiff . samediff . SameDiff . create ( ) ; org . nd4j . linalg . api . ndarray . INDArray ia = org . nd4j . linalg . factory . Nd4j . create ( new double [ ] { 4 , 3 , 5 , 7 , 8 , 0 } ) ; org . nd4j . linalg . api . ndarray . IN...
org . junit . Assert . assertNull ( err , err )
testShowControlPoints ( ) { final com . ait . lienzo . client . core . shape . wires . handlers . WiresConnectorControl connectorControl = mock ( com . ait . lienzo . client . core . shape . wires . handlers . WiresConnectorControl . class ) ; tested . setControl ( connectorControl ) ; final java . lang . Object wcv = ...
org . junit . Assert . assertEquals ( wcv , tested )
testLoad ( ) { java . util . List < org . pentaho . di . engine . configuration . api . RunConfiguration > runConfigurations = executionConfigurationManager . load ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return ( pageCoords . length ) + ( ints . length ) ; }
org . junit . Assert . assertEquals ( runConfigurations . size ( ) , 3 )
testSet ( ) { final com . conversantmedia . util . concurrent . ContendedAtomicInteger ai = new com . conversantmedia . util . concurrent . ContendedAtomicInteger ( 0 ) ; ai . set ( 676 ) ; "<AssertPlaceHolder>" ; } get ( ) { return contendedArray . get ( com . conversantmedia . util . concurrent . ContendedAtomicInteg...
org . junit . Assert . assertEquals ( 676 , ai . get ( ) )
testamd64Arch ( ) { java . util . Properties props = new java . util . Properties ( ) ; props . setProperty ( "os.name" , "dummy" ) ; props . setProperty ( "os.arch" , "amd64" ) ; java . lang . Process process = new java . lang . Process ( props ) ; "<AssertPlaceHolder>" ; } arch ( ) { if ( isX64 ( ) ) { return "x64" ;...
org . junit . Assert . assertEquals ( "x64" , process . arch ( ) )
testLoadConfigWithDefaultClusterWithNoDataCenterRelease ( ) { when ( releaseService . findLatestActiveRelease ( someConfigAppId , someDataCenter , defaultNamespaceName ) ) . thenReturn ( null ) ; when ( releaseService . findLatestActiveRelease ( someConfigAppId , defaultClusterName , defaultNamespaceName ) ) . thenRetu...
org . junit . Assert . assertEquals ( someRelease , release )
testLoopTemplate ( ) { freemarker . template . Template template = cfg . getTemplate ( getTemplatePath ( "position_loop.html" ) ) ; java . util . Map < java . lang . String , java . lang . Object > params = new java . util . HashMap < java . lang . String , java . lang . Object > ( ) ; params . put ( GlobalVariable . C...
org . junit . Assert . assertEquals ( expected , value )
shouldAllowYouToPostANonUpdatablePropertyWithAnUnchangedValue ( ) { org . springframework . mock . web . MockHttpServletRequest get = request ( RequestMethod . GET , ( ( ( getURI ( ) ) + "/" ) + ( getUuid ( ) ) ) ) ; org . openmrs . module . webservices . rest . SimpleObject location = deserialize ( handle ( get ) ) ; ...
org . junit . Assert . assertThat ( updatedLocation . getName ( ) , org . hamcrest . core . Is . is ( "New<sp>York" ) )
testGetNodes ( ) { net . holmes . core . business . configuration . dao . ConfigurationDao configurationDao = createMock ( net . holmes . core . business . configuration . dao . ConfigurationDao . class ) ; expect ( configurationDao . getNodes ( eq ( net . holmes . core . business . configuration . ROOT ) ) ) . andRetu...
org . junit . Assert . assertNull ( result )
testInsecureSource ( ) { final java . lang . String subnet = "255.255.255.0" ; final java . lang . String network = "192.168.1.0" ; final java . net . InetSocketAddress remoteAddress = new java . net . InetSocketAddress ( "192.168.2.4" , 2727 ) ; final io . netty . channel . Channel channel = org . mockito . Mockito . ...
org . junit . Assert . assertFalse ( secure )
testBodyAdded ( ) { final java . lang . String body = "Email<sp>body." ; final org . apache . oozie . fluentjob . api . action . EmailActionBuilder builder = getBuilderInstance ( ) ; builder . withBody ( body ) ; final org . apache . oozie . fluentjob . api . action . EmailAction emailAction = builder . build ( ) ; "<A...
org . junit . Assert . assertEquals ( body , emailAction . getBody ( ) )
testNodesMustHaveServices ( ) { java . util . Set < java . lang . String > services = com . google . common . collect . ImmutableSet . of ( "svc1" , "svc2" , "svc3" ) ; co . cask . coopr . spec . template . ClusterTemplate template = co . cask . coopr . spec . template . ClusterTemplate . builder ( ) . setName ( "simpl...
org . junit . Assert . assertEquals ( expected , actual )
testGetDelimitedConfigurationValueWhenValueIsNullAssertResultIsEmpty ( ) { java . util . Map < java . lang . String , java . lang . Object > overrideMap = new java . util . HashMap ( ) ; overrideMap . put ( ConfigurationValue . EMR_SPOT_PRICE_HISTORY_PRODUCT_DESCRIPTIONS . getKey ( ) , null ) ; modifyPropertySourceInEn...
org . junit . Assert . assertEquals ( java . util . Arrays . asList ( ) , actualList )