Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
12 | 2 | 3 | 0.978 | block |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 12 | 43 | E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/script/ScriptDefTest.java |
2 | 12 | 69 | E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/script/ScriptDefTest.java |
| |||||
{ executeTarget("simple"); // get the fileset and its basedir Project p = getProject(); FileSet fileset = (FileSet) p.getReference("testfileset"); File baseDir = fileset.getDir(p); String log = getLog(); assertTrue("Expecting attribute value printed", log.indexOf("Attribute attr1 = test") != -1); assertTrue("Expecting nested element value printed", log.indexOf("Fileset basedir = " + baseDir.getAbsolutePath()) != -1); } |
| |||||
{ executeTarget("nestedbyclassname"); // get the fileset and its basedir Project p = getProject(); FileSet fileset = (FileSet) p.getReference("testfileset"); File baseDir = fileset.getDir(p); String log = getLog(); assertTrue("Expecting attribute value to be printed", log.indexOf("Attribute attr1 = test") != -1); assertTrue("Expecting nested element value to be printed", log.indexOf("Fileset basedir = " + baseDir.getAbsolutePath()) != -1); } |
| |||
{ executeTarget( [[#variablefe36780]]); // get the fileset and its basedir Project p = getProject(); FileSet fileset = (FileSet) p.getReference("testfileset"); File baseDir = fileset.getDir(p); String log = getLog(); assertTrue( [[#variablefe36760]], log.indexOf("Attribute attr1 = test") != -1); assertTrue( [[#variablefe367c0]], log.indexOf("Fileset basedir = " + baseDir.getAbsolutePath()) != -1); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#fe36780]] | "simple" |
1 | 2 | [[#fe36780]] | "nestedbyclassname" |
2 | 1 | [[#fe36760]] | "Expecting attribute value printed" |
2 | 2 | [[#fe36760]] | "Expecting attribute value to be printed" |
3 | 1 | [[#fe367c0]] | "Expecting nested element value printed" |
3 | 2 | [[#fe367c0]] | "Expecting nested element value to be printed" |