CloneSet159


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12230.978block
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11243
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/script/ScriptDefTest.java
21269
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/script/ScriptDefTest.java
Next
Last
Clone Instance
1
Line Count
12
Source Line
43
Source File
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);
}


First
Previous
Clone Instance
2
Line Count
12
Source Line
69
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/script/ScriptDefTest.java

{
  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);
}


Clone AbstractionParameter Count: 3Parameter Bindings

{
  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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#fe36780]]
"simple" 
12[[#fe36780]]
"nestedbyclassname" 
21[[#fe36760]]
"Expecting attribute value printed" 
22[[#fe36760]]
"Expecting attribute value to be printed" 
31[[#fe367c0]]
"Expecting nested element value printed" 
32[[#fe367c0]]
"Expecting nested element value to be printed"