public class BidirectionalOneToManyBagSubclassCollectionEventTest extends BidirectionalOneToManyBagCollectionEventTest { public BidirectionalOneToManyBagSubclassCollectionEventTest(String string) { super( string ); } public static Test suite() { return new FunctionalTestClassTestSuite( BidirectionalOneToManyBagSubclassCollectionEventTest.class ); } public String[] getMappings() { return new String[] { "event/collection/association/bidirectional/onetomany/BidirectionalOneToManyBagSubclassMapping.hbm.xml" }; } public ParentWithCollection createParent(String name) { return new ParentWithBidirectionalOneToManySubclass( name );
public class TriggerGeneratedValuesWithCachingTest extends AbstractGeneratedPropertyTest { public TriggerGeneratedValuesWithCachingTest(String x) { super( x ); } public final String[] getMappings() { return new String[] { "generated/GeneratedPropertyEntity.hbm.xml" }; } public boolean appliesTo(Dialect dialect) { // currently have only defined triggers for oracle... // TODO : add more triggers for dialects which allow mods in triggers... return ( dialect instanceof Oracle9iDialect ); } public static Test suite() { return new FunctionalTestClassTestSuite( TriggerGeneratedValuesWithCachingTest.class );
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/event/collection/association/bidirectional/onetomany/BidirectionalOneToManyBagSubclassCollectionEventTest.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/generated/TriggerGeneratedValuesWithCachingTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class BidirectionalOneToManyBagSubclassCollectionEventTest extends BidirectionalOneToManyBagCollectionEventTest {
1
public class 
2
	public BidirectionalOneToManyBagSubclassCollectionEvent
2
TriggerGeneratedValuesWithCachingTest extends AbstractGeneratedPropertyTest {
3
Test(String string) {
3
	public TriggerGeneratedValuesWithCachingTest(String x) {
4
		super( string );
4
		super( x );
5
	}
5
	}
6
	public static Test suite() {
6
	public 
7
		return new FunctionalTestClassTestSuite( BidirectionalOneToManyBagSubclassCollectionEventTest.class )
7
final String[] getMappings() {
8
;
8
		return new String[] { "generated/GeneratedPropertyEntity.hbm.xml" };
9
	}
9
	}
10
	public String[] getMappings() {
10
	public 
11
		return new String[] { "event/collection/association/bidirectional/onetomany/BidirectionalOneToManyBagSubclassMapping.hbm.xml" };
12
	}
13
	public ParentWithCollection createParent(String name) {
14
		return new ParentWithBidirectionalOneToManySubclass( name
11
boolean appliesTo(Dialect dialect) {
12
		// currently have only defined triggers for oracle...
13
		// TODO : add more triggers for dialects which allow mods in triggers...
14
		return ( dialect instanceof Oracle9iDialect );
15
	}
16
	public static Test suite() {
15
 );
17
		return new FunctionalTestClassTestSuite( TriggerGeneratedValuesWithCachingTest.class );
16
	
18
	
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0