FunctionProperty prop = (FunctionProperty) super.clone(); prop.cacheValue = cacheValue; prop.testIteration = testIteration; prop.function = function; return prop;
for (int counter = 0; counter < order.length; counter++) { TestElement sampler = test.next(); assertNotNull(sampler); assertEquals("Counter: " + counter, order[counter], sampler.getName()); }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/testelement/property/FunctionProperty.java File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/control/TestThroughputController.java
Method name: Object clone() Method name: void testByNumber()
Number of AST nodes: 5 Number of AST nodes: 4
1
FunctionProperty prop = (FunctionProperty) super.clone();
2
		prop.cacheValue = cacheValue;
3
		prop.testIteration = testIteration;
4
		prop.function = function;
5
		return prop;
1
for (int counter = 0; counter < order.length; counter++) {
2
				TestElement sampler = test.next();
3
				assertNotNull(sampler);
4
				assertEquals("Counter: " + counter, order[counter], sampler.getName());
5
			}
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 locationClones are in different classes
Number of node comparisons15