fileName = f; baseURL = b; expectedSet = s; expectedList = l;
super(name); testNumber = test; parserName = parser;
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/protocol/http/parser/TestHTMLParser.java File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/protocol/http/parser/TestHTMLParser.java
Method name: void TestData(String, String, String, String) Method name: void TestHTMLParser(String, String, int)
Number of AST nodes: 4 Number of AST nodes: 3
1
fileName = f;
1
super(name);
2
                baseURL = b;
2
            
3
                expectedSet = s;
4
                expectedList = l
3
testNumber = test;
5
;
4
            parserName = parser;
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in the same java file
Number of node comparisons11
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements1
    Number of unmapped statements in the first code fragment3
    Number of unmapped statements in the second code fragment2
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
                                  
    1
    super(name);
    1
    fileName = f;
    1
    fileName = f;
    Preondition Violations
    Unmatched statement fileName=f; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                
                                          
    2
    testNumber = test;
    Preondition Violations
    Unmatched statement testNumber=test; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    2
    testNumber = test;
    2
    baseURL = b;
    2
    baseURL = b;
    Preondition Violations
    Unmatched statement baseURL=b; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                              
    3
    expectedSet = s;
    3
    expectedSet = s;
    3
    parserName = parser;
    Differences
    Expression1Expression2Difference
    expectedSetparserNameVARIABLE_NAME_MISMATCH
    sparserVARIABLE_NAME_MISMATCH
    3
    parserName = parser;
    4
    expectedList = l;
    4
    expectedList = l;
    Preondition Violations
    Unmatched statement expectedList=l; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                        
    Precondition Violations (4)
    Row Violation
    1Unmatched statement fileName=f; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    2Unmatched statement testNumber=test; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    3Unmatched statement baseURL=b; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    4Unmatched statement expectedList=l; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted