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 );
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 );
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/generated/TriggerGeneratedValuesWithCachingTest.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/sql/hand/custom/mysql/MySQLCustomSQLTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class TriggerGeneratedValuesWithCachingTest extends AbstractGeneratedPropertyTest {
1
public class 
2
	public TriggerGeneratedValuesWithCaching
2
MySQLCustomSQLTest extends CustomStoredProcTestSupport {
3
Test(String x) {
3
	public MySQLCustomSQLTest(String str) {
4
		super( x );
4
		super(str);
5
	}
5
	}
6
	public final String[] getMappings() {
6
	public String[] getMappings() {
7
		return new String[] { "generated/GeneratedPropertyEntity.hbm.xml" };
7
		return new String[] { "
8
	}
9
	public boolean appliesTo(Dialect dialect) {
10
		// currently have only defined triggers for oracle...
11
		// TODO : add more triggers for dialects which allow mods in triggers...
12
		return ( dialect instanceof Oracle9iDialect );
13
	}
14
	public static Test suite(
8
sql/hand/custom/mysql/Mappings.hbm.xml" };
9
	}
10
	public static Test suite() {
11
		return new FunctionalTestClassTestSuite( MySQLCustomSQLTest.class );
12
	}
15
) {
13
	public boolean appliesTo(Dialect dialect) {
16
		return new FunctionalTestClassTestSuite( TriggerGeneratedValuesWithCachingTest.class );
14
		return ( dialect instanceof MySQLDialect );
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