void testRecreateZipfilesetWithoutUpdateAdditionalFiles() {
testRecreate("test4",
"testRecreateZipfilesetWithoutUpdateAdditionalFiles");
}
public void testRecreateZipfilesetWithUpdateAdditionalFiles() {
testRecreate("test4",
"testRecreateZipfilesetWithUpdateAdditionalFiles");
}
public void testRecreateZipfilesetWithoutUpdateNewerFile() {
testRecreate("testRecreateNewerFileSetup",
"testRecreateZipfilesetWithoutUpdateNewerFile");
void testForkXml() {
expectLogContaining(
"fork-xml", "<DependsUpon>");
}
/**
* Test timeout
*/
public void testTimeout() {
expectLogContaining(
"fork-timeout", "JDepend FAILED - Timed out");
}
/**
* Test timeout without timing out
*/
public void testTimeoutNot() {
expectLogContaining(
"fork-timeout-not", "Package: org.apache.tools.ant.util.facade");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/JarTest.java
|
|
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/jdepend/JDependTest.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | void testRecreateZipfilesetWithoutUpdateAdditionalFiles() {↵ | | 1 | void test↵
|
2 | testRecreate("test4",↵ | | 2 | ForkXml() {↵
|
| | | 3 | expectLogContaining(↵
|
| | | 4 | "fork-xml", "<DependsUpon>");↵
|
3 | ↵ | | 5 | }↵
|
|
4 | ↵ | | 6 | /**↵
|
5 | "testRecreateZipfilesetWithoutUpdateAdditionalFiles");↵ | | 7 | * Test timeout↵
|
6 | }↵ | | 8 | ↵
|
| | | 9 | */↵
|
7 | public void testRecreateZipfilesetWithUpdateAdditionalFiles() {↵ | | 10 | public void test↵
|
8 | testRecreate("test4",↵ | | |
|
9 | "testRecreateZipfilesetWithUpdateAdditionalFiles");↵ | | 11 | Timeout() {↵
|
| | | 12 | expectLogContaining(↵
|
| | | 13 | "fork-timeout", "JDepend FAILED - Timed out");↵
|
| | | 14 | }↵
|
|
|
| | | 15 | /**↵
|
| | | 16 | * Test timeout without timing out↵
|
10 | }↵ | | 17 | ↵
|
| | | 18 | */↵
|
11 | public void testRecreateZipfilesetWithoutUpdateNewerFile() {↵ | | 19 | public void test↵
|
12 | testRecreate("testRecreateNewerFileSetup",↵ | | |
|
13 | "testRecreateZipfilesetWithoutUpdateNewerFil↵ | | 20 | TimeoutNot() {↵
|
| | | 21 | expectLogContaining(↵
|
14 | e");↵ | | 22 | "fork-timeout-not", "Package: org.apache.tools.ant.util.facade");↵
|
15 | | | 23 |
|
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 |