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 ManyToManyAssociationClassCompositeIdTest extends AbstractManyToManyAssociationClassTest { public ManyToManyAssociationClassCompositeIdTest(String string) { super( string ); } public String[] getMappings() { return new String[] { "manytomanyassociationclass/compositeid/Mappings.hbm.xml" }; } public static Test suite() { return new FunctionalTestClassTestSuite( ManyToManyAssociationClassCompositeIdTest.class ); } public Membership createMembership( String name ) { return new MembershipWithCompositeId( name )
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/manytomanyassociationclass/compositeid/ManyToManyAssociationClassCompositeIdTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class BidirectionalOneToManyBagSubclassCollectionEventTest extends BidirectionalOneToManyBagCollectionEventTest {
1
public class ManyToManyAssociationClassCompositeIdTest extends AbstractManyToManyAssociationClassTest {
2

2
	public BidirectionalOneToManyBagSubclassCollectionEventTest(String string) {
3
	public ManyToManyAssociationClassCompositeIdTest(String string) {
3
		super( string );
4
		super( string );
4
	}
5
	}
6

5
	public static Test suite() {
7
	public String[] getMappings() {
6
		return new FunctionalTestClassTestSuite( BidirectionalOneToManyBagSubclassCollectionEventTest.class );
8
		return new 
7
	}
8
	public String[] getMappings
9
String[] { "manytomanyassociationclass/compositeid/Mappings.hbm.xml" };
10
	}
9
() {
11
	public static Test suite() {
10
		return new String[] { "event/collection/association/bidirectional/onetomany/BidirectionalOneToManyBagSubclassMapping.hbm.xml" };
12
		return new 
11
	}
12
	public ParentWithCollection createParent(
13
FunctionalTestClassTestSuite( ManyToManyAssociationClassCompositeIdTest.class );
14
	}
13
String name) {
15
	public Membership createMembership( String name ) {
14
		return new ParentWithBidirectionalOneToManySubclass( name )
16
		return new MembershipWithCompositeId( name )
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