SampleSaveConfiguration a = new SampleSaveConfiguration(false); SampleSaveConfiguration b = new SampleSaveConfiguration(false); assertTrue("Hash codes should be equal",a.hashCode() == b.hashCode()); assertTrue("Objects should be equal",a.equals(b)); assertTrue("Objects should be equal",b.equals(a));
SampleSaveConfiguration a = new SampleSaveConfiguration(true); SampleSaveConfiguration b = new SampleSaveConfiguration(true); assertTrue("Hash codes should be equal",a.hashCode() == b.hashCode()); assertTrue("Objects should be equal",a.equals(b)); assertTrue("Objects should be equal",b.equals(a));
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/samplers/TestSampleSaveConfiguration.java File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/samplers/TestSampleSaveConfiguration.java
Method name: void testFalse() Method name: void testTrue()
Number of AST nodes: 5 Number of AST nodes: 5
1
SampleSaveConfiguration a = new SampleSaveConfiguration(false);
1
SampleSaveConfiguration a = new SampleSaveConfiguration(true);
2
        SampleSaveConfiguration b = new SampleSaveConfiguration(false);
2
        SampleSaveConfiguration b = new SampleSaveConfiguration(true);
3
        assertTrue("Hash codes should be equal",a.hashCode() == b.hashCode());
3
        assertTrue("Hash codes should be equal",a.hashCode() == b.hashCode());
4
        assertTrue("Objects should be equal",a.equals(b));
4
        assertTrue("Objects should be equal",a.equals(b));
5
        assertTrue("Objects should be equal",b.equals(a));
5
        assertTrue("Objects should be equal",b.equals(a));
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 declared in the same class
Number of node comparisons19
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements5
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    SampleSaveConfiguration a = new SampleSaveConfiguration(false);
    1
    SampleSaveConfiguration a = new SampleSaveConfiguration(false);
    1
    SampleSaveConfiguration a = new SampleSaveConfiguration(true);
    Differences
    Expression1Expression2Difference
    falsetrueLITERAL_VALUE_MISMATCH
    1
    SampleSaveConfiguration a = new SampleSaveConfiguration(true);
    2
    SampleSaveConfiguration b = new SampleSaveConfiguration(false);
    2
    SampleSaveConfiguration b = new SampleSaveConfiguration(false);
    2
    SampleSaveConfiguration b = new SampleSaveConfiguration(true);
    Differences
    Expression1Expression2Difference
    falsetrueLITERAL_VALUE_MISMATCH
    2
    SampleSaveConfiguration b = new SampleSaveConfiguration(true);
    3
    assertTrue("Hash codes should be equal", a.hashCode() == b.hashCode());
    3
    assertTrue("Hash codes should be equal", a.hashCode() == b.hashCode());
    4
    assertTrue("Objects should be equal", a.equals(b));
    4
    assertTrue("Objects should be equal", a.equals(b));
    5
    assertTrue("Objects should be equal", b.equals(a));
    5
    assertTrue("Objects should be equal", b.equals(a));
    Precondition Violations (0)
    Row Violation