void testResource(){
executeTarget("realTestWithResource");
}
public void testDateCheck(){
executeTarget("testDateCheck");
String log = getLog();
assertTrue(
"Expecting message ending with 'asf-logo.gif.bz2 is up to date.' but got '" + log + "'",
log.endsWith("asf-logo.gif.bz2 is up to date."));
void testResource(){
executeTarget("realTestWithResource");
}
public void testDateCheck(){
executeTarget("testDateCheck");
String log = getLog();
assertTrue(
"Expecting message ending with 'asf-logo.gif.gz is up to date.' but got '" + log + "'",
log.endsWith("asf-logo.gif.gz is up to date."));
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/BZip2Test.java
|
|
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/GzipTest.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | void testResource(){↵ | | 1 | void testResource(){↵
|
2 | executeTarget("realTestWithResource");↵ | | 2 | executeTarget("realTestWithResource");↵
|
3 | }↵ | | 3 | }↵
|
|
4 | public void testDateCheck(){↵ | | 4 | public void testDateCheck(){↵
|
5 | executeTarget("testDateCheck");↵ | | 5 | executeTarget("testDateCheck");↵
|
6 | String log = getLog();↵ | | 6 | String log = getLog();↵
|
7 | assertTrue(↵ | | 7 | assertTrue(↵
|
8 | "Expecting message ending with 'asf-logo.gif.bz2 is up to date.' but got '" + log + "'",↵ | | 8 | "Expecting message ending with 'asf-logo.gif.gz is up to date.' but got '" + log + "'",↵
|
9 | log.endsWith("asf-logo.gif.bz2 is up to date."));↵ | | 9 | log.endsWith("asf-logo.gif.gz is up to date."));↵
|
10 | | | 10 |
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | |
Number of node comparisons | 0 |