ComboStringEditor e = new ComboStringEditor(); testSetGet(e, "any string"); testSetGet(e, ""); testSetGet(e, null); testSetGet(e, "${var}");
ComboStringEditor e = new ComboStringEditor(); testSetGetAsText(e, "any string"); testSetGetAsText(e, ""); testSetGetAsText(e, "${var}");
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/testbeans/gui/TestComboStringEditor.java File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/testbeans/gui/TestFieldStringEditor.java
Method name: void testSetGet() Method name: void testSetGetAsText()
Number of AST nodes: 5 Number of AST nodes: 4
1
ComboStringEditor e = new ComboStringEditor();
1
ComboStringEditor e = new ComboStringEditor();
2
			testSetGet(e, "any string");
2
			testSetGetAsText(e, "any string");
3
			testSetGet(e, "");
3
			testSetGetAsText(e, "");
4
			testSetGet(e, null);
4
			testSetGet
5
			testSetGet(e, "${var}");
5
AsText(e, "${var}");
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes having the same super class
Number of node comparisons20
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements4
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    1
    ComboStringEditor e = new ComboStringEditor();
    1
    ComboStringEditor e = new ComboStringEditor();
    2
    testSetGet(e, "any string");
    2
    testSetGet(e, "any string");
    2
    testSetGetAsText(e, "any string");
    Differences
    Expression1Expression2Difference
    testSetGettestSetGetAsTextMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression testSetGet(e,"any string") cannot be parameterized, because it has dependencies to/from statements that will be extracted
    • Inline private method testSetGet
    Expression testSetGetAsText(e,"any string") cannot be parameterized, because it has dependencies to/from statements that will be extracted
    • Inline private method testSetGetAsText
    Expression testSetGet(e,"any string") is a void method call, and thus it cannot be parameterized
    Expression testSetGetAsText(e,"any string") is a void method call, and thus it cannot be parameterized
    2
    testSetGetAsText(e, "any string");
    3
    testSetGet(e, "");
    3
    testSetGet(e, "");
    3
    testSetGetAsText(e, "");
    Differences
    Expression1Expression2Difference
    testSetGettestSetGetAsTextMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression testSetGet(e,"") cannot be parameterized, because it has dependencies to/from statements that will be extracted
    • Inline private method testSetGet
    Expression testSetGetAsText(e,"") cannot be parameterized, because it has dependencies to/from statements that will be extracted
    • Inline private method testSetGetAsText
    Expression testSetGet(e,"") is a void method call, and thus it cannot be parameterized
    Expression testSetGetAsText(e,"") is a void method call, and thus it cannot be parameterized
    3
    testSetGetAsText(e, "");
    4
    testSetGet(e, null);
    4
    testSetGet(e, null);
    4
    testSetGetAsText(e, "${var}");
    Differences
    Expression1Expression2Difference
    testSetGettestSetGetAsTextMETHOD_INVOCATION_NAME_MISMATCH
    null"${var}"TYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression testSetGet(e,null) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    • Inline private method testSetGet
    Expression testSetGetAsText(e,"${var}") cannot be parameterized, because it has dependencies to/from statements that will be extracted
    • Inline private method testSetGetAsText
    Expression testSetGet(e,null) is a void method call, and thus it cannot be parameterized
    Expression testSetGetAsText(e,"${var}") is a void method call, and thus it cannot be parameterized
    4
    testSetGetAsText(e, "${var}");
    5
    testSetGet(e, "${var}");
                                                        
    Precondition Violations (13)
    Row Violation
    1Expression testSetGet(e,"any string") cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression testSetGetAsText(e,"any string") cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3Expression testSetGet(e,"any string") is a void method call, and thus it cannot be parameterized
    4Expression testSetGetAsText(e,"any string") is a void method call, and thus it cannot be parameterized
    5Expression testSetGet(e,"") cannot be parameterized, because it has dependencies to/from statements that will be extracted
    6Expression testSetGetAsText(e,"") cannot be parameterized, because it has dependencies to/from statements that will be extracted
    7Expression testSetGet(e,"") is a void method call, and thus it cannot be parameterized
    8Expression testSetGetAsText(e,"") is a void method call, and thus it cannot be parameterized
    9Expression testSetGet(e,null) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    10Expression testSetGetAsText(e,"${var}") cannot be parameterized, because it has dependencies to/from statements that will be extracted
    11Expression testSetGet(e,null) is a void method call, and thus it cannot be parameterized
    12Expression testSetGetAsText(e,"${var}") is a void method call, and thus it cannot be parameterized
    13Clone fragment #1 returns variables e , while Clone fragment #2 returns variables