File path: /sql12/test/src/net/sourceforge/squirrel_sql/client/update/gui/ArtifactStatusTest.java | File path: /sql12/test/src/net/sourceforge/squirrel_sql/client/update/gui/ArtifactStatusTest.java | |||
Method name: void testIsCoreArtifact()
|
Method name: void testIsPluginArtifact()
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | mockHelper.replayAll();↵ | 1 | mockHelper.replayAll();↵ | |
2 | classUnderTest = new ArtifactStatus(mockCoreArtifactXmlBean);↵ | 2 | classUnderTest = new ArtifactStatus(mockPluginArtifactXmlBean);↵ | |
3 | mockHelper.verifyAll();↵ | 3 | mockHelper.verifyAll();↵ | |
4 | assertTrue(classUnderTest.isCoreArtifact());↵ | 4 | assertTrue(classUnderTest.isPluginArtifact());↵ | |
5 | assertFalse(classUnderTest.isPluginArtifact());↵ | 5 | assertFalse(classUnderTest.isCoreArtifact());↵ | |
6 | assertFalse(classUnderTest.isTranslationArtifact()); | 6 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 26 |
Number of mapped statements | 6 |
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 | mockHelper.replayAll(); | 1 | mockHelper.replayAll(); | |||||||||||||||
2 | classUnderTest = new ArtifactStatus(mockCoreArtifactXmlBean); |
| 2 | classUnderTest = new ArtifactStatus(mockPluginArtifactXmlBean); | ||||||||||||||
3 | mockHelper.verifyAll(); | 3 | mockHelper.verifyAll(); | |||||||||||||||
4 | assertTrue(classUnderTest.isCoreArtifact()); |
| 5 | assertFalse(classUnderTest.isCoreArtifact()); | ||||||||||||||
5 | assertFalse(classUnderTest.isPluginArtifact()); |
| 4 | assertTrue(classUnderTest.isPluginArtifact()); | ||||||||||||||
6 | assertFalse(classUnderTest.isTranslationArtifact()); | 6 | assertFalse(classUnderTest.isTranslationArtifact()); |
Row | Violation |
---|---|
1 | Expression assertTrue(classUnderTest.isCoreArtifact()) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression assertFalse(classUnderTest.isCoreArtifact()) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression assertTrue(classUnderTest.isCoreArtifact()) is a void method call, and thus it cannot be parameterized |
4 | Expression assertFalse(classUnderTest.isCoreArtifact()) is a void method call, and thus it cannot be parameterized |
5 | Expression assertFalse(classUnderTest.isPluginArtifact()) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression assertTrue(classUnderTest.isPluginArtifact()) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression assertFalse(classUnderTest.isPluginArtifact()) is a void method call, and thus it cannot be parameterized |
8 | Expression assertTrue(classUnderTest.isPluginArtifact()) is a void method call, and thus it cannot be parameterized |