public class MySQLCustomSQLTest extends CustomStoredProcTestSupport { public MySQLCustomSQLTest(String str) { super(str); } public String[] getMappings() { return new String[] { "sql/hand/custom/mysql/Mappings.hbm.xml" }; } public static Test suite() { return new FunctionalTestClassTestSuite( MySQLCustomSQLTest.class ); } public boolean appliesTo(Dialect dialect) { return ( dialect instanceof MySQLDialect );
public class OracleCustomSQLTest extends CustomStoredProcTestSupport { public OracleCustomSQLTest(String str) { super(str); } public String[] getMappings() { return new String[] { "sql/hand/custom/oracle/Mappings.hbm.xml", "sql/hand/custom/oracle/StoredProcedures.hbm.xml" }; } public static Test suite() { return new FunctionalTestClassTestSuite( OracleCustomSQLTest.class ); } public boolean appliesTo(Dialect dialect) { return ( dialect instanceof Oracle9iDialect );
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/sql/hand/custom/mysql/MySQLCustomSQLTest.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/sql/hand/custom/oracle/OracleCustomSQLTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class MySQLCustomSQLTest extends CustomStoredProcTestSupport {
1
public class OracleCustomSQLTest extends CustomStoredProcTestSupport {
2
	public MySQLCustomSQLTest(String str) {
2
	public OracleCustomSQLTest(String str) {
3
		super(str);
3
		super(str);
4
	}
4
	}
5
	public String[] getMappings() {
5
	public String[] getMappings() {
6
		return new String[] { "sql/hand/custom/mysql/Mappings.hbm.xml" };
6
		return new String[] { "sql/hand/custom/oracle/Mappings.hbm.xml", "sql/hand/custom/oracle/StoredProcedures.hbm.xml" };
7
	}
7
	}
8
	public static Test suite() {
8
	public static Test suite() {
9
		return new FunctionalTestClassTestSuite( MySQLCustomSQLTest.class );
9
		return new FunctionalTestClassTestSuite( OracleCustomSQLTest.class );
10
	}
10
	}
11
	public boolean appliesTo(Dialect dialect) {
11
	public boolean appliesTo(Dialect dialect) {
12
		return ( dialect instanceof MySQLDialect );
12
		return ( dialect instanceof Oracle9iDialect );
13
	
13
	
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