classUnderTest = new DatabaseObjectQualifier(); classUnderTest.setSchema(catalog); assertEquals(catalog, classUnderTest.getSchema());
classUnderTest = new DatabaseObjectQualifier(); classUnderTest.setCatalog(catalog); assertEquals(catalog, classUnderTest.getCatalog());
Clone fragments detected by clone detection tool
File path: /sql12/test/src/net/sourceforge/squirrel_sql/fw/dialects/DatabaseObjectQualifierTest.java File path: /sql12/test/src/net/sourceforge/squirrel_sql/fw/dialects/DatabaseObjectQualifierTest.java
Method name: void testSetGetSchema() Method name: void testSetGetCatalog()
Number of AST nodes: 3 Number of AST nodes: 3
1
classUnderTest = new DatabaseObjectQualifier();
1
classUnderTest = new DatabaseObjectQualifier();
2
		classUnderTest.setSchema(catalog);
2
		classUnderTest.setCatalog(catalog);
3
		assertEquals(catalog, classUnderTest.getSchema());
3
		assertEquals(catalog, classUnderTest.getCatalog());
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 comparisons5
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements3
    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 = new DatabaseObjectQualifier();
    1
    classUnderTest = new DatabaseObjectQualifier();
    2
    classUnderTest.setSchema(catalog);
    2
    classUnderTest.setSchema(catalog);
    2
    classUnderTest.setCatalog(catalog);
    Differences
    Expression1Expression2Difference
    setSchemasetCatalogMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression classUnderTest.setSchema(catalog) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression classUnderTest.setCatalog(catalog) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression classUnderTest.setSchema(catalog) is a void method call, and thus it cannot be parameterized
    Expression classUnderTest.setCatalog(catalog) is a void method call, and thus it cannot be parameterized
    2
    classUnderTest.setCatalog(catalog);
    3
    assertEquals(catalog, classUnderTest.getSchema());
    3
    assertEquals(catalog, classUnderTest.getSchema());
    3
    assertEquals(catalog, classUnderTest.getCatalog());
    Differences
    Expression1Expression2Difference
    getSchemagetCatalogMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression classUnderTest.getSchema() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression classUnderTest.getCatalog() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3
    assertEquals(catalog, classUnderTest.getCatalog());
    Precondition Violations (6)
    Row Violation
    1Expression classUnderTest.setSchema(catalog) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression classUnderTest.setCatalog(catalog) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3Expression classUnderTest.setSchema(catalog) is a void method call, and thus it cannot be parameterized
    4Expression classUnderTest.setCatalog(catalog) is a void method call, and thus it cannot be parameterized
    5Expression classUnderTest.getSchema() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    6Expression classUnderTest.getCatalog() cannot be parameterized, because it has dependencies to/from statements that will be extracted