CloneSet9


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9720.986statement_sequence[7]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19116
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/JUnitReportTest.java
29129
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/JUnitReportTest.java
39143
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/JUnitReportTest.java
49157
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/JUnitReportTest.java
59170
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/JUnitReportTest.java
69183
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/JUnitReportTest.java
79196
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/JUnitReportTest.java
Next
Last
Clone Instance
1
Line Count
9
Source Line
116
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/JUnitReportTest.java

File reportFile = new File(System.getProperty("root"), "src/etc/testcases/taskdefs/optional/junitreport/test/html/index.html");
// tests one the file object
assertTrue("No index.html present. Not generated?", reportFile.exists());
assertTrue("Cant read the report file.", reportFile.canRead());
assertTrue("File shouldnt be empty.", reportFile.length() > 0);
// conversion to URL via FileUtils like in XMLResultAggregator, not as suggested in the bug report
URL reportUrl = new URL(FileUtils.getFileUtils().toURI(reportFile.getAbsolutePath()));
InputStream reportStream = reportUrl.openStream();
assertTrue("This shouldnt be an empty stream.", reportStream.available() > 0);


Next
Previous
Clone Instance
2
Line Count
9
Source Line
129
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/JUnitReportTest.java

File reportFile = new File(System.getProperty("root"), "src/etc/testcases/taskdefs/optional/junitreport/test/html# $%§&-!report/index.html");
// tests one the file object
assertTrue("No index.html present. Not generated?", reportFile.exists());
assertTrue("Cant read the report file.", reportFile.canRead());
assertTrue("File shouldnt be empty.", reportFile.length() > 0);
// conversion to URL via FileUtils like in XMLResultAggregator, not as suggested in the bug report
URL reportUrl = new URL(FileUtils.getFileUtils().toURI(reportFile.getAbsolutePath()));
InputStream reportStream = reportUrl.openStream();
assertTrue("This shouldnt be an empty stream.", reportStream.available() > 0);


Next
Previous
Clone Instance
3
Line Count
9
Source Line
143
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/JUnitReportTest.java

File reportFile = new File(System.getProperty("root"), "src/etc/testcases/taskdefs/optional/junitreport/test/html/index.html");
// tests one the file object
assertTrue("No index.html present. Not generated?", reportFile.exists());
assertTrue("Cant read the report file.", reportFile.canRead());
assertTrue("File shouldnt be empty.", reportFile.length() > 0);
// conversion to URL via FileUtils like in XMLResultAggregator, not as suggested in the bug report
URL reportUrl = new URL(FileUtils.getFileUtils().toURI(reportFile.getAbsolutePath()));
InputStream reportStream = reportUrl.openStream();
assertTrue("This shouldnt be an empty stream.", reportStream.available() > 0);


Next
Previous
Clone Instance
4
Line Count
9
Source Line
157
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/JUnitReportTest.java

File reportFile = new File(System.getProperty("root"), "src/etc/testcases/taskdefs/optional/junitreport/test/html/junit-noframes.html");
// tests one the file object
assertTrue("No junit-noframes.html present. Not generated?", reportFile.exists());
assertTrue("Cant read the report file.", reportFile.canRead());
assertTrue("File shouldnt be empty.", reportFile.length() > 0);
// conversion to URL via FileUtils like in XMLResultAggregator, not as suggested in the bug report
URL reportUrl = new URL(FileUtils.getFileUtils().toURI(reportFile.getAbsolutePath()));
InputStream reportStream = reportUrl.openStream();
assertTrue("This shouldnt be an empty stream.", reportStream.available() > 0);


Next
Previous
Clone Instance
5
Line Count
9
Source Line
170
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/JUnitReportTest.java

File reportFile = new File(System.getProperty("root"), "src/etc/testcases/taskdefs/optional/junitreport/test/html/index.html");
// tests one the file object
assertTrue("No index.html present. Not generated?", reportFile.exists());
assertTrue("Cant read the report file.", reportFile.canRead());
assertTrue("File shouldnt be empty.", reportFile.length() > 0);
// conversion to URL via FileUtils like in XMLResultAggregator, not as suggested in the bug report
URL reportUrl = new URL(FileUtils.getFileUtils().toURI(reportFile.getAbsolutePath()));
InputStream reportStream = reportUrl.openStream();
assertTrue("This shouldnt be an empty stream.", reportStream.available() > 0);


Next
Previous
Clone Instance
6
Line Count
9
Source Line
183
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/JUnitReportTest.java

File reportFile = new File(System.getProperty("root"), "src/etc/testcases/taskdefs/optional/junitreport/test/html/index.html");
// tests one the file object
assertTrue("No index.html present. Not generated?", reportFile.exists());
assertTrue("Cant read the report file.", reportFile.canRead());
assertTrue("File shouldnt be empty.", reportFile.length() > 0);
// conversion to URL via FileUtils like in XMLResultAggregator, not as suggested in the bug report
URL reportUrl = new URL(FileUtils.getFileUtils().toURI(reportFile.getAbsolutePath()));
InputStream reportStream = reportUrl.openStream();
assertTrue("This shouldnt be an empty stream.", reportStream.available() > 0);


First
Previous
Clone Instance
7
Line Count
9
Source Line
196
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/JUnitReportTest.java

File reportFile = new File(System.getProperty("root"), "src/etc/testcases/taskdefs/optional/junitreport/test/html/index.html");
// tests one the file object
assertTrue("No index.html present. Not generated?", reportFile.exists());
assertTrue("Cant read the report file.", reportFile.canRead());
assertTrue("File shouldnt be empty.", reportFile.length() > 0);
// conversion to URL via FileUtils like in XMLResultAggregator, not as suggested in the bug report
URL reportUrl = new URL(FileUtils.getFileUtils().toURI(reportFile.getAbsolutePath()));
InputStream reportStream = reportUrl.openStream();
assertTrue("This shouldnt be an empty stream.", reportStream.available() > 0);


Clone AbstractionParameter Count: 2Parameter Bindings

File reportFile = new File(System.getProperty("root"),  [[#variablefde9200]]);
// tests one the file object
assertTrue( [[#variable1319be80]], reportFile.exists());
assertTrue("Cant read the report file.", reportFile.canRead());
assertTrue("File shouldnt be empty.", reportFile.length() > 0);
// conversion to URL via FileUtils like in XMLResultAggregator, not as suggested in the bug report
URL reportUrl = new URL(FileUtils.getFileUtils().toURI(reportFile.getAbsolutePath()));
InputStream reportStream = reportUrl.openStream();
assertTrue("This shouldnt be an empty stream.", reportStream.available() > 0);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#fde9200]]
"src/etc/testcases/taskdefs/optional/junitreport/test/html/index.html" 
12[[#fde9200]]
"src/etc/testcases/taskdefs/optional/junitreport/test/html# $%§&-!report/index.html" 
13[[#fde9200]]
"src/etc/testcases/taskdefs/optional/junitreport/test/html/index.html" 
14[[#fde9200]]
"src/etc/testcases/taskdefs/optional/junitreport/test/html/junit-noframes.html" 
15[[#fde9200]]
"src/etc/testcases/taskdefs/optional/junitreport/test/html/index.html" 
16[[#fde9200]]
"src/etc/testcases/taskdefs/optional/junitreport/test/html/index.html" 
17[[#fde9200]]
"src/etc/testcases/taskdefs/optional/junitreport/test/html/index.html" 
21[[#1319be80]]
"No index.html present. Not generated?" 
22[[#1319be80]]
"No index.html present. Not generated?" 
23[[#1319be80]]
"No index.html present. Not generated?" 
24[[#1319be80]]
"No junit-noframes.html present. Not generated?" 
25[[#1319be80]]
"No index.html present. Not generated?" 
26[[#1319be80]]
"No index.html present. Not generated?" 
27[[#1319be80]]
"No index.html present. Not generated?"