input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testStartRemovedAsParent ( ) { final org . apache . oozie . fluentjob . api . dag . Start instance = getInstance ( "instance" ) ; final org . apache . oozie . fluentjob . api . dag . NodeBase child = new org . apache . oozie . fluentjob . api . dag . ExplicitNode ( "child" , null ) ; child . addParent ( instance ) ; ch...
org . junit . Assert . assertEquals ( null , instance . getChild ( ) )
testWhereNotInEmpty ( ) { try ( final io . vertigo . commons . transaction . VTransactionWritable transaction = transactionManager . createCurrentTransaction ( ) ) { final io . vertigo . dynamo . task . metamodel . TaskDefinition taskDefinition = registerTaskList ( "TK_WHERE_ID_TEST" , "select<sp>*<sp>from<sp>SUPER_HER...
org . junit . Assert . assertEquals ( 10 , resultList . size ( ) )
test_systemException_BAD_PARAM ( ) { try { org . apache . tuscany . sca . binding . corba . provider . reference . DynaCorbaRequest request = new org . apache . tuscany . sca . binding . corba . provider . reference . DynaCorbaRequest ( org . apache . tuscany . sca . binding . corba . testing . CorbaTypesTestCase . ref...
org . junit . Assert . assertTrue ( true )
testFilterSelection ( ) { japicmp . cmp . JarArchiveComparatorOptions options = new japicmp . cmp . JarArchiveComparatorOptions ( ) ; options . getFilters ( ) . getIncludes ( ) . add ( new japicmp . filter . AnnotationClassFilter ( "@japicmp.test.annotation.filter.PublicAPI" ) ) ; japicmp . cmp . JarArchiveComparator j...
org . junit . Assert . assertThat ( jApiClasses . size ( ) , org . hamcrest . CoreMatchers . is ( 3 ) )
UmlLinkType_Inherits ( ) { java . lang . String fromClass = "domain.direct.violating.InheritanceExtends" ; java . lang . String toClass = "technology.direct.dao.HistoryDAO" ; java . lang . String fromAttribute = "" ; boolean isComposite = false ; java . lang . String typeToFind = "Inherits" ; "<AssertPlaceHolder>" ; } ...
org . junit . Assert . assertTrue ( isUmlLinkDetectedViaClass ( fromClass , toClass , fromAttribute , isComposite , typeToFind ) )
registerOrganizationWithTenant ( ) { final long tenantKey = 1234L ; prepareForRegisterOrganization ( ) ; org . oscm . domobjects . Marketplace marketplace = createMarketplace ( marketplaceId ) ; org . oscm . domobjects . Tenant tenant = new org . oscm . domobjects . Tenant ( ) ; tenant . setTenantId ( "12345678" ) ; te...
org . junit . Assert . assertTrue ( ( ( mockedOrg . getTenant ( ) . getKey ( ) ) == tenantKey ) )
testSerialization ( ) { org . jfree . data . time . Year y1 = new org . jfree . data . time . Year ( 1999 ) ; org . jfree . data . time . Year y2 = ( ( org . jfree . data . time . Year ) ( org . jfree . chart . TestUtils . serialised ( y1 ) ) ) ; "<AssertPlaceHolder>" ; } serialised ( java . lang . Object ) { java . la...
org . junit . Assert . assertEquals ( y1 , y2 )
testMultithreadedRandom1 ( ) { final java . util . List < org . nd4j . linalg . api . ndarray . INDArray > holder = new java . util . ArrayList ( ) ; final java . util . concurrent . atomic . AtomicLong failures = new java . util . concurrent . atomic . AtomicLong ( 0 ) ; java . lang . Thread thread = new java . lang ....
org . junit . Assert . assertEquals ( 0 , failures . get ( ) )
testIsMyIsolationMethod ( ) { "<AssertPlaceHolder>" ; } isMyIsolationMethod ( com . cloud . network . PhysicalNetwork ) { if ( physicalNetwork == null ) { return false ; } java . util . List < java . lang . String > methods = new java . util . ArrayList < java . lang . String > ( ) ; for ( final java . lang . String me...
org . junit . Assert . assertTrue ( guru . isMyIsolationMethod ( physicalNetwork ) )
showBillingDataStep_NOTforBroker ( ) { model . setBillingSharesResultTypes ( java . util . Arrays . asList ( BillingSharesResultType . BROKER ) ) ; boolean result = ctrl . isShowBillingTypeSelectStep ( ) ; "<AssertPlaceHolder>" ; } isShowBillingTypeSelectStep ( ) { if ( ( model . getBillingSharesResultTypes ( ) ) == nu...
org . junit . Assert . assertFalse ( result )
testProxyGetDatanodeStorageReport ( ) { org . apache . hadoop . hdfs . server . protocol . DatanodeStorageReport [ ] combinedData = routerProtocol . getDatanodeStorageReport ( DatanodeReportType . ALL ) ; java . util . Set < java . lang . String > individualData = new java . util . HashSet ( ) ; for ( java . lang . Str...
org . junit . Assert . assertEquals ( combinedData . length , individualData . size ( ) )
testNotNodeModifyRight ( ) { final java . lang . String drl = ( ( ( ( ( ( ( ( ( ( ( ( ( ( "import<sp>" + ( org . drools . testcoverage . common . model . Cheese . class . getCanonicalName ( ) ) ) + ";\n" ) + "import<sp>" ) + ( org . drools . testcoverage . common . model . Person . class . getCanonicalName ( ) ) ) + ";...
org . junit . Assert . assertEquals ( 2 , ksession . fireAllRules ( ) )
resolveException ( ) { when ( dirContext . getAttributes ( com . hazelcast . kubernetes . DnsEndpointResolverTest . SERVICE_DNS , new java . lang . String [ ] { "SRV" } ) ) . thenThrow ( new javax . naming . NameNotFoundException ( ) ) ; com . hazelcast . kubernetes . DnsEndpointResolver dnsEndpointResolver = new com ....
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
getListOfSTPs ( ) { java . util . List < java . lang . String > stps = stm . getHousekeeping ( ) . getListOfSTPs ( "test/stps" ) ; "<AssertPlaceHolder>" ; for ( java . lang . String stp : stps ) { System . out . println ( stp ) ; } } getListOfSTPs ( java . lang . String ) { java . io . File f = new java . io . File ( p...
org . junit . Assert . assertNotNull ( stps )
test_LocalDate_adjustToSymmetry010Date ( ) { org . threeten . extra . chrono . Symmetry010Date sym010 = org . threeten . extra . chrono . Symmetry010Date . of ( 2012 , 7 , 19 ) ; java . time . LocalDate test = LocalDate . MIN . with ( sym010 ) ; "<AssertPlaceHolder>" ; } of ( int , int , int ) { org . threeten . extra ...
org . junit . Assert . assertEquals ( java . time . LocalDate . of ( 2012 , 7 , 20 ) , test )
shouldFlushInnerWhenFlushTimeRecords ( ) { inner . flush ( ) ; expectLastCall ( ) . once ( ) ; init ( ) ; metered . flush ( ) ; final org . apache . kafka . common . metrics . KafkaMetric metric = metric ( "flush-rate" ) ; "<AssertPlaceHolder>" ; verify ( inner ) ; } metricValue ( ) { long now = time . milliseconds ( )...
org . junit . Assert . assertTrue ( ( ( ( java . lang . Double ) ( metric . metricValue ( ) ) ) > 0 ) )
testSqueezedHexa ( ) { org . hipparchus . geometry . euclidean . twod . PolygonsSet set = new org . hipparchus . geometry . euclidean . twod . PolygonsSet ( 1.0E-10 , new org . hipparchus . geometry . euclidean . twod . Vector2D ( ( - 6 ) , ( - 4 ) ) , new org . hipparchus . geometry . euclidean . twod . Vector2D ( ( -...
org . junit . Assert . assertEquals ( Location . OUTSIDE , set . checkPoint ( new org . hipparchus . geometry . euclidean . twod . Vector2D ( 0 , 6 ) ) )
testBasic ( ) { java . lang . String s = "<sp>bde<sp>cde<sp>def<sp>abc<sp>efg<sp>f<sp>f<sp>f<sp>f<sp>ghijklmnop<sp>a<sp>a<sp>a<sp>a<sp>a<sp>a<sp>a<sp>a<sp>a<sp>a<sp>a<sp>a<sp>a<sp>a<sp>a<sp>a<sp>a<sp>b<sp>b<sp>b<sp>b<sp>b<sp>b<sp>b<sp>b<sp>b<sp>b<sp>b<sp>b<sp>b" ; org . apache . tika . eval . tokens . TokenCounter coun...
org . junit . Assert . assertEquals ( simpleTokenStatistics , tokenCounter . getTokenStatistics ( org . apache . tika . eval . tokens . TokenCounterTest . FIELD ) )
testEndpointRemoveNotification ( ) { hub . sendUpdate ( org . ow2 . chameleon . pubsubhubbub . test . clients . HUB_SUBSCRIPTION_UPDATE_ENDPOINT_ADDED , publisherCallBackUrl , endp , json ) ; waitForIt ( org . ow2 . chameleon . pubsubhubbub . test . clients . SubscriberTest . WAIT_TIME ) ; hub . sendUpdate ( org . ow2 ...
org . junit . Assert . assertFalse ( rose . containsRemote ( endp ) )
testFromEbXML ( ) { transformer . toEbXML ( query , ebXML ) ; org . openehealth . ipf . commons . ihe . xds . core . requests . query . GetRelatedDocumentsQuery result = new org . openehealth . ipf . commons . ihe . xds . core . requests . query . GetRelatedDocumentsQuery ( ) ; transformer . fromEbXML ( result , ebXML ...
org . junit . Assert . assertEquals ( query , result )
setPropertyValueChained_ThirdLevel ( ) { com . github . dozermapper . core . propertydescriptor . FieldPropertyDescriptor descriptor = new com . github . dozermapper . core . propertydescriptor . FieldPropertyDescriptor ( com . github . dozermapper . core . propertydescriptor . FieldPropertyDescriptorTest . Container ....
org . junit . Assert . assertEquals ( "Y" , bean . container . container . value )
shouldNotCrashOnNullBufferInput ( ) { byte [ ] bytes = de . slackspace . openkeepass . util . ByteUtils . hexStringToByteArray ( "af66b1" ) ; java . io . ByteArrayInputStream stream = new java . io . ByteArrayInputStream ( bytes ) ; int read = de . slackspace . openkeepass . util . StreamUtils . read ( stream , null ) ...
org . junit . Assert . assertEquals ( ( - 1 ) , read )
testExact ( ) { org . xwiki . model . reference . EntityReference wikiReference = new org . xwiki . model . reference . RegexEntityReference ( java . util . regex . Pattern . compile ( org . xwiki . model . reference . RegexEntityReferenceTest . REFERENCETOMATCH . getWikiReference ( ) . getName ( ) , Pattern . LITERAL ...
org . junit . Assert . assertTrue ( reference . equals ( org . xwiki . model . reference . RegexEntityReferenceTest . REFERENCETOMATCH ) )