void test1() throws Exception { runSimpleTests("1", "one"); runSimpleTests("one", "one"); // Match by name } public void test2() throws Exception { runSimpleTests("2", "two"); runSimpleTests("two", "two"); // Match by name }
void test2() throws Exception { runSimpleTests("2", "two"); runSimpleTests("two", "two"); // Match by name } public void test3() throws Exception { runSimpleTests("3", "three"); runSimpleTests("three", "three"); // Match by name }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/control/TestSwitchController.java File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/control/TestSwitchController.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void test1() throws Exception {
1
void test2() throws Exception {
2
			runSimpleTests("1", "one");
2
			runSimpleTests("2", "two");
3
			runSimpleTests("one", "one"); // Match by name
3
			runSimpleTests("two", "two"); // Match by name
4
		}
4
		}
5
		public void test2() throws Exception {
5
		public void test3() throws Exception {
6
			runSimpleTests("2", "two");
6
			runSimpleTests("3", "three");
7
			runSimpleTests("two", "two"); // Match by name
7
			runSimpleTests("three", "three"); // Match by name
8
		}
8
		}
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