Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
14 | 2 | 3 | 0.972 | block |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 14 | 71 | E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/IncludeTest.java |
2 | 14 | 98 | E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/IncludeTest.java |
| |||||
{ configureProject("src/etc/testcases/core/include/including_file_task_error/build.xml"); try { executeTarget("test"); fail("should have cause a build failure"); } catch (BuildException e) { assertTrue(e.getMessage() + " should start with \'Warning: Could not find", e.getMessage().startsWith("Warning: Could not find file ")); assertTrue(e.getLocation().toString() + " should end with build.xml:14: ", e.getLocation().toString().endsWith("build.xml:14: ")); } } |
| |||||
{ configureProject("src/etc/testcases/core/include/included_file_task_error/build.xml"); try { executeTarget("test"); fail("should have cause a build failure"); } catch (BuildException e) { assertTrue(e.getMessage() + " should start with \'Warning: Could not find", e.getMessage().startsWith("Warning: Could not find file ")); assertTrue(e.getLocation().toString() + " should end with included_file.xml:2: ", e.getLocation().toString().endsWith("included_file.xml:2: ")); } } |
| |||
{ configureProject( [[#variable131b6a20]]); try { executeTarget("test"); fail("should have cause a build failure"); } catch (BuildException e) { assertTrue(e.getMessage() + " should start with \'Warning: Could not find", e.getMessage().startsWith("Warning: Could not find file ")); assertTrue(e.getLocation().toString() + [[#variable131b69e0]], e.getLocation().toString().endsWith( [[#variable131b6a40]])); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#131b6a20]] | "src/etc/testcases/core/include/including_file_task_error/build.xml" |
1 | 2 | [[#131b6a20]] | "src/etc/testcases/core/include/included_file_task_error/build.xml" |
2 | 1 | [[#131b69e0]] | " should end with build.xml:14: " |
2 | 2 | [[#131b69e0]] | " should end with included_file.xml:2: " |
3 | 1 | [[#131b6a40]] | "build.xml:14: " |
3 | 2 | [[#131b6a40]] | "included_file.xml:2: " |