for (String type : JDBCTypeMapper.getJdbcTypeList()) { int dataType = JDBCTypeMapper.getJdbcType(type); assertTrue(classUnderTest.getColumnLength(10, dataType) >= 0); }
for (String type : JDBCTypeMapper.getJdbcTypeList()) { int dataType = JDBCTypeMapper.getJdbcType(type); assertTrue(classUnderTest.getMaxPrecision(dataType) >= 0); }
Clone fragments detected by clone detection tool
File path: /sql12/test/src/net/sourceforge/squirrel_sql/fw/dialects/AbstractDialectExtTest.java File path: /sql12/test/src/net/sourceforge/squirrel_sql/fw/dialects/AbstractDialectExtTest.java
Method name: void testGetColumnLength() Method name: void testGetMaxPrecision()
Number of AST nodes: 3 Number of AST nodes: 3
1
for (String type : JDBCTypeMapper.getJdbcTypeList())
1
for (String type : JDBCTypeMapper.getJdbcTypeList())
2
		{
2
		{
3
			int dataType = JDBCTypeMapper.getJdbcType(type);
3
			int dataType = JDBCTypeMapper.getJdbcType(type);
4
			assertTrue(classUnderTest.getColumnLength(10, dataType) >= 0);
4
			assertTrue(classUnderTest.getMaxPrecision(dataType) >= 0);
5
		}
5
		}
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.1
Clones locationClones are declared in the same class
Number of node comparisons9
  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)758.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    for (String type : JDBCTypeMapper.getJdbcTypeList())
    1
    for (String type : JDBCTypeMapper.getJdbcTypeList())
    2
    int dataType = JDBCTypeMapper.getJdbcType(type);
    2
    int dataType = JDBCTypeMapper.getJdbcType(type);
    3
    assertTrue(classUnderTest.getColumnLength(10, dataType) >= 0);
    3
    assertTrue(classUnderTest.getColumnLength(10, dataType) >= 0);
    3
    assertTrue(classUnderTest.getMaxPrecision(dataType) >= 0);
    Differences
    Expression1Expression2Difference
    getColumnLengthgetMaxPrecisionMETHOD_INVOCATION_NAME_MISMATCH
    classUnderTest.getColumnLength(10,dataType)classUnderTest.getMaxPrecision(dataType)ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression classUnderTest.getColumnLength(10,dataType) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression classUnderTest.getMaxPrecision(dataType) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression classUnderTest.getColumnLength(10,dataType) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression classUnderTest.getMaxPrecision(dataType) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3
    assertTrue(classUnderTest.getMaxPrecision(dataType) >= 0);
    Precondition Violations (4)
    Row Violation
    1Expression classUnderTest.getColumnLength(10,dataType) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression classUnderTest.getMaxPrecision(dataType) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3Expression classUnderTest.getColumnLength(10,dataType) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    4Expression classUnderTest.getMaxPrecision(dataType) cannot be parameterized, because it has dependencies to/from statements that will be extracted