Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
5 | 2 | 2 | 0.983 | statement_sequence[5] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 5 | 176 | E:/TSE/Projects-CloneDR/sql12/test/src/net/sourceforge/squirrel_sql/fw/util/DefaultExceptionFormatterTest.java |
2 | 5 | 194 | E:/TSE/Projects-CloneDR/sql12/test/src/net/sourceforge/squirrel_sql/fw/util/DefaultExceptionFormatterTest.java |
| |||||
ExceptionFormatter formatter1 = createMock(ExceptionFormatter.class ); SQLException ex = new SQLException("table does not exist"); SQLExecutionException ee = new SQLExecutionException(ex, ""); expect(formatter1.formatsException(isA(SQLException.class ))).andReturn(true).anyTimes(); expect(formatter1.format(ex)).andReturn("foo").anyTimes(); |
| |||||
ExceptionFormatter formatter2 = createMock(ExceptionFormatter.class ); SQLException ex = new SQLException("table does not exist"); SQLExecutionException ee = new SQLExecutionException(ex, ""); expect(formatter1.formatsException(isA(SQLException.class ))).andReturn(true).anyTimes(); expect(formatter1.format(ex)).andReturn("formatter1").anyTimes(); |
| |||
ExceptionFormatter [[#variable1cee7de0]]= createMock(ExceptionFormatter.class ); SQLException ex = new SQLException("table does not exist"); SQLExecutionException ee = new SQLExecutionException(ex, ""); expect(formatter1.formatsException(isA(SQLException.class ))).andReturn(true).anyTimes(); expect(formatter1.format(ex)).andReturn( [[#variable1ceec1c0]]).anyTimes(); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#1cee7de0]] | formatter1 |
1 | 2 | [[#1cee7de0]] | formatter2 |
2 | 1 | [[#1ceec1c0]] | "foo" |
2 | 2 | [[#1ceec1c0]] | "formatter1" |