public class BidirectionalManyToManySetToSetCollectionEventTest extends AbstractAssociationCollectionEventTest { public BidirectionalManyToManySetToSetCollectionEventTest(String string) { super( string ); } public static Test suite() { return new FunctionalTestClassTestSuite( BidirectionalManyToManySetToSetCollectionEventTest.class ); } public String[] getMappings() { return new String[] { "event/collection/association/bidirectional/manytomany/BidirectionalManyToManySetToSetMapping.hbm.xml" }; } public ParentWithCollection createParent(String name) { return new ParentWithBidirectionalManyToMany( name ); } public Collection createCollection() { return new HashSet();
public class ValuesBagCollectionEventTest extends AbstractCollectionEventTest { public ValuesBagCollectionEventTest(String string) { super( string ); } public static Test suite() { return new FunctionalTestClassTestSuite( ValuesBagCollectionEventTest.class ); } public String[] getMappings() { return new String[] { "event/collection/values/ValuesBagMapping.hbm.xml" }; } public ParentWithCollection createParent(String name) { return new ParentWithCollectionOfValues( name ); } public Collection createCollection() { return new ArrayList();
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/manytomany/BidirectionalManyToManySetToSetCollectionEventTest.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/event/collection/values/ValuesBagCollectionEventTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class BidirectionalManyToManySetToSetCollectionEventTest extends AbstractAssociationCollectionEventTest {
1
public class ValuesBagCollectionEventTest extends AbstractCollectionEventTest {
2
	public BidirectionalManyToManySetToSetCollectionEventTest(String string) {
2
	public ValuesBagCollectionEventTest(String string) {
3
		super( string );
3
		super( string );
4
	}
4
	}
5
	public static Test suite() {
5
	public static Test suite() {
6
		return new FunctionalTestClassTestSuite( BidirectionalManyToManySetToSetCollectionEventTest.class );
6
		return new FunctionalTestClassTestSuite( ValuesBagCollectionEventTest.class );
7
	}
7
	}
8
	public String[] getMappings() {
8
	public String[] getMappings() {
9
		return new String[] { "event/collection/association/bidirectional/manytomany/BidirectionalManyToManySetToSetMapping.hbm.xml" };
9
		return new String[] { "event/collection/values/ValuesBagMapping.hbm.xml" };
10
	}
10
	}
11
	public ParentWithCollection createParent(String name) {
11
	public ParentWithCollection createParent(String name) {
12
		return new ParentWithBidirectionalManyToMany( name );
12
		return new ParentWithCollectionOfValues( name );
13
	}
13
	}
14
	public Collection createCollection() {
14
	public Collection createCollection() {
15
		return new HashSet();
15
		return new ArrayList();
16
	
16
	
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