private void expectFileContains(String name, String contains)
throws IOException
{
String content = getFileString(name);
assertTrue(
"expecting file " + name + " to contain " + contains +
" but got " + content, content.indexOf(contains) > -1);
}
private void expectFileContains(
String target, String name, String contains)
throws IOException
{
executeTarget(target);
expectFileContains(name, contains);
private void expectFileContains(String name, String contains)
throws IOException
{
String content = getFileString(name);
assertTrue(
"expecting file " + name + " to contain " + contains +
" but got " + content, content.indexOf(contains) > -1);
}
private void expectFileContains(
String target, String name, String contains)
throws IOException
{
executeTarget(target);
expectFileContains(name, contains);
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/filters/DynamicFilterTest.java
|
|
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/filters/TokenFilterTest.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | private void expectFileContains(String name, String contains)↵ | | 1 | private void expectFileContains(String name, String contains)↵
|
2 | throws IOException↵ | | 2 | throws IOException↵
|
3 | {↵ | | 3 | {↵
|
4 | String content = getFileString(name);↵ | | 4 | String content = getFileString(name);↵
|
5 | assertTrue(↵ | | 5 | assertTrue(↵
|
6 | "expecting file " + name + " to contain " + contains +↵ | | 6 | "expecting file " + name + " to contain " + contains +↵
|
7 | " but got " + content, content.indexOf(contains) > -1);↵ | | 7 | " but got " + content, content.indexOf(contains) > -1);↵
|
8 | }↵ | | 8 | }↵
|
|
9 | private void expectFileContains(↵ | | 9 | private void expectFileContains(↵
|
10 | String target, String name, String contains)↵ | | 10 | String target, String name, String contains)↵
|
11 | throws IOException↵ | | 11 | throws IOException↵
|
12 | {↵ | | 12 | {↵
|
13 | executeTarget(target);↵ | | 13 | executeTarget(target);↵
|
14 | expectFileContains(name, contains); | | 14 | expectFileContains(name, contains);
|
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 |