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 );
public class DB2CustomSQLTest extends CustomStoredProcTestSupport { public DB2CustomSQLTest(String str) { super(str); } public String[] getMappings() { return new String[] { "sql/hand/custom/db2/Mappings.hbm.xml" }; } public static Test suite() { return new FunctionalTestClassTestSuite( DB2CustomSQLTest.class ); } public boolean appliesTo(Dialect dialect) { return ( dialect instanceof DB2Dialect);
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/manytomanyassociationclass/compositeid/ManyToManyAssociationClassCompositeIdTest.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/sql/hand/custom/db2/DB2CustomSQLTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class ManyToManyAssociationClassCompositeIdTest extends AbstractManyToManyAssociationClassTest {
1
public class 
2
	public ManyToManyAssociationClassCompositeId
2
DB2CustomSQLTest extends CustomStoredProcTestSupport {
3
	
3
Test(String string) {
4
	public DB2CustomSQLTest(String str) {
4
		super( string );
5
		super(str);
5
	}
6
	}
6

7
	public String[] getMappings() {
7
	public String[] getMappings() {
8
		return new String[] { "manytomanyassociationclass/compositeid/Mappings.hbm.xml" };
8
		return new String[] { "sql/hand/custom/db2/Mappings.hbm.xml" };
9
	}
9
	}
10

11
	public static Test suite() {
10
	public static Test suite() {
12
		return new FunctionalTestClassTestSuite( ManyToManyAssociationClassCompositeIdTest.class );
11
		return new FunctionalTestClassTestSuite( DB2CustomSQLTest.class );
13
	}
12
	}
14

15
	public Membership createMembership( String name ) {
13
	public boolean appliesTo(Dialect dialect) {
16
		return new MembershipWithCompositeId( name );
14
		return ( dialect instanceof DB2Dialect);
17
	
15
	
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