for (int i = 0; i < methods.length; i++) {
if (methods[i].getName().startsWith("test")) {
suite.addTest((TestCase) clazz.getConstructor(
new Class[] { MailboxTstFactory.class,
String.class}).newInstance(
new Object[] { factory, methods[i].getName()}));
for (int i = 0; i < methods.length; i++) {
if (methods[i].getName().startsWith("test")) {
suite.addTest((TestCase) clazz.getConstructor(
new Class[] { MailboxTstFactory.class,
String.class}).newInstance(
new Object[] { factory, methods[i].getName()}));
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/test/java/org/columba/mail/filter/plugins/AllTests.java
|
|
File path: /columba-1.4-src/mail/src/test/java/org/columba/mail/folder/AllTests.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | for (int i = 0; i < methods.length; i++) {↵ | | 1 | for (int i = 0; i < methods.length; i++) {↵
|
2 | if (methods[i].getName().startsWith("test")) {↵ | | 2 | if (methods[i].getName().startsWith("test")) {↵
|
|
3 | suite.addTest((TestCase) clazz.getConstructor(↵ | | 3 | suite.addTest((TestCase) clazz.getConstructor(↵
|
4 | new Class[] { MailboxTstFactory.class,↵ | | 4 | new Class[] { MailboxTstFactory.class,↵
|
5 | String.class}).newInstance(↵ | | 5 | String.class}).newInstance(↵
|
6 | new Object[] { factory, methods[i].getName()}));↵ | | 6 | new Object[] { factory, methods[i].getName()}));↵
|
7 | | | 7 |
|
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 |