public void testIsCoreArtifact()
{
mockHelper.replayAll();
classUnderTest = new ArtifactStatus(mockCoreArtifactXmlBean);
mockHelper.verifyAll();
assertTrue(classUnderTest.isCoreArtifact());
assertFalse(classUnderTest.isPluginArtifact());
assertFalse(classUnderTest.isTranslationArtifact());
public void testIsPluginArtifact()
{
mockHelper.replayAll();
classUnderTest = new ArtifactStatus(mockPluginArtifactXmlBean);
mockHelper.verifyAll();
assertTrue(classUnderTest.isPluginArtifact());
assertFalse(classUnderTest.isCoreArtifact());
assertFalse(classUnderTest.isTranslationArtifact());
Clone fragments detected by clone detection tool
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:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public void testIsCoreArtifact()↵ | | 1 | public void testIsPluginArtifact()↵
|
2 | {↵ | | 2 | {↵
|
3 | mockHelper.replayAll();↵ | | 3 | mockHelper.replayAll();↵
|
4 | classUnderTest = new ArtifactStatus(mockCoreArtifactXmlBean);↵ | | 4 | classUnderTest = new ArtifactStatus(mockPluginArtifactXmlBean);↵
|
5 | mockHelper.verifyAll();↵ | | 5 | mockHelper.verifyAll();↵
|
|
6 | assertTrue(classUnderTest.isCoreArtifact());↵ | | 6 | assertTrue(classUnderTest.isPluginArtifact());↵
|
7 | assertFalse(classUnderTest.isPluginArtifact());↵ | | 7 | assertFalse(classUnderTest.isCoreArtifact());↵
|
8 | assertFalse(classUnderTest.isTranslationArtifact());↵ | | 8 | assertFalse(classUnderTest.isTranslationArtifact());↵
|
9 | | | 9 |
|
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 |