classUnderTest.setCache(true); assertTrue(classUnderTest.isCache()); classUnderTest.setCache(false); assertFalse(classUnderTest.isCache());
classUnderTest.setMinValue(true); assertTrue(classUnderTest.isMinValue()); classUnderTest.setMinValue(false); assertFalse(classUnderTest.isMinValue());
Clone fragments detected by clone detection tool
File path: /sql12/test/src/net/sourceforge/squirrel_sql/fw/dialects/SequencePropertyMutabilityTest.java File path: /sql12/test/src/net/sourceforge/squirrel_sql/fw/dialects/SequencePropertyMutabilityTest.java
Method name: void testCache() Method name: void testMinValue()
Number of AST nodes: 4 Number of AST nodes: 4
1
classUnderTest.setCache(true);
1
classUnderTest.setMinValue(true);
2
		assertTrue(classUnderTest.isCache());
2
		assertTrue(classUnderTest.isMinValue());
3
		
3
		
4
		classUnderTest.setCache(false);
4
		classUnderTest.setMinValue(false);
5
		assertFalse(classUnderTest.isCache());
5
		assertFalse(classUnderTest.isMinValue());
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 comparisons16
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements4
    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
    classUnderTest.setCache(true);
    1
    classUnderTest.setCache(true);
    1
    classUnderTest.setMinValue(true);
    Differences
    Expression1Expression2Difference
    setCachesetMinValueMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression classUnderTest.setCache(true) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression classUnderTest.setMinValue(true) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression classUnderTest.setCache(true) is a void method call, and thus it cannot be parameterized
    Expression classUnderTest.setMinValue(true) is a void method call, and thus it cannot be parameterized
    1
    classUnderTest.setMinValue(true);
    2
    assertTrue(classUnderTest.isCache());
    2
    assertTrue(classUnderTest.isCache());
    2
    assertTrue(classUnderTest.isMinValue());
    Differences
    Expression1Expression2Difference
    isCacheisMinValueMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression classUnderTest.isCache() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression classUnderTest.isMinValue() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2
    assertTrue(classUnderTest.isMinValue());
    3
    classUnderTest.setCache(false);
    3
    classUnderTest.setCache(false);
    3
    classUnderTest.setMinValue(false);
    Differences
    Expression1Expression2Difference
    setCachesetMinValueMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression classUnderTest.setCache(false) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression classUnderTest.setMinValue(false) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression classUnderTest.setCache(false) is a void method call, and thus it cannot be parameterized
    Expression classUnderTest.setMinValue(false) is a void method call, and thus it cannot be parameterized
    3
    classUnderTest.setMinValue(false);
    4
    assertFalse(classUnderTest.isCache());
    4
    assertFalse(classUnderTest.isCache());
    4
    assertFalse(classUnderTest.isMinValue());
    Differences
    Expression1Expression2Difference
    isCacheisMinValueMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression classUnderTest.isCache() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression classUnderTest.isMinValue() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    4
    assertFalse(classUnderTest.isMinValue());
    Precondition Violations (12)
    Row Violation
    1Expression classUnderTest.setCache(true) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression classUnderTest.setMinValue(true) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3Expression classUnderTest.setCache(true) is a void method call, and thus it cannot be parameterized
    4Expression classUnderTest.setMinValue(true) is a void method call, and thus it cannot be parameterized
    5Expression classUnderTest.isCache() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    6Expression classUnderTest.isMinValue() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    7Expression classUnderTest.setCache(false) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    8Expression classUnderTest.setMinValue(false) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    9Expression classUnderTest.setCache(false) is a void method call, and thus it cannot be parameterized
    10Expression classUnderTest.setMinValue(false) is a void method call, and thus it cannot be parameterized
    11Expression classUnderTest.isCache() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    12Expression classUnderTest.isMinValue() cannot be parameterized, because it has dependencies to/from statements that will be extracted