File path: /columba-1.4-src/mail/src/test/java/org/columba/mail/folder/command/AllTests.java | File path: /columba-1.4-src/mail/src/test/java/org/columba/mail/gui/composer/command/AllTests.java | |||
Method name: Test suite()
|
Method name: Test suite()
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | TestSuite suite = new TestSuite(↵ | 1 | TestSuite suite = new TestSuite(↵ | |
2 | "Test for org.columba.mail.folder.command");↵ | 2 | "Test for org.columba.mail.gui.composer.command");↵ | |
3 | setup(suite, new MHFolderFactory());↵ | 3 | setup(suite, new MHFolderFactory());↵ | |
4 | setup(suite, new TempFolderFactory());↵ | 4 | setup(suite, new MBOXFolderTstFactory());↵ | |
5 | setup(suite, new MBOXFolderTstFactory());↵ | 5 | setup(suite, new TempFolderFactory());↵ | |
6 | // disabled IMAP folder tests as they require connection↵ | 6 | // disabled IMAP folder tests as they require connection↵ | |
7 | // to remote IMAP server↵ | 7 | // to remote IMAP server↵ | |
8 | // setup(suite, new IMAPTstFactory());↵ | 8 | // setup(suite, new IMAPTstFactory());↵ | |
9 | return suite; | 9 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 17 |
Number of mapped statements | 5 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | TestSuite suite = new TestSuite("Test for org.columba.mail.folder.command"); |
| 1 | TestSuite suite = new TestSuite("Test for org.columba.mail.gui.composer.command"); | |||||||||||
2 | setup(suite, new MHFolderFactory()); | 2 | setup(suite, new MHFolderFactory()); | ||||||||||||
3 | setup(suite, new TempFolderFactory()); |
| 3 | setup(suite, new MBOXFolderTstFactory()); | |||||||||||
4 | setup(suite, new MBOXFolderTstFactory()); |
| 4 | setup(suite, new TempFolderFactory()); | |||||||||||
5 | return suite; | 5 | return suite; |
Row | Violation |
---|---|
1 | Type org.columba.mail.folder.TempFolderFactory of variable new TempFolderFactory() does not match with type org.columba.mail.folder.MBOXFolderTstFactory of variable new MBOXFolderTstFactory() |
2 | Type org.columba.mail.folder.MBOXFolderTstFactory of variable new MBOXFolderTstFactory() does not match with type org.columba.mail.folder.TempFolderFactory of variable new TempFolderFactory() |