public void testIsPluginArtifact() { mockHelper.replayAll(); classUnderTest = new ArtifactStatus(mockPluginArtifactXmlBean); mockHelper.verifyAll(); assertTrue(classUnderTest.isPluginArtifact()); assertFalse(classUnderTest.isCoreArtifact()); assertFalse(classUnderTest.isTranslationArtifact());
public void testIsTranslationArtifact() { mockHelper.replayAll(); classUnderTest = new ArtifactStatus(mockTranslationArtifactXmlBean); mockHelper.verifyAll(); assertTrue(classUnderTest.isTranslationArtifact()); assertFalse(classUnderTest.isPluginArtifact()); assertFalse(classUnderTest.isCoreArtifact());
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 testIsPluginArtifact()
1
public void testIsTranslationArtifact()
2
	{
2
	{
3
		mockHelper.replayAll();
3
		mockHelper.replayAll();
4
		classUnderTest = new ArtifactStatus(mockPluginArtifactXmlBean);
4
		classUnderTest = new ArtifactStatus(mockTranslationArtifactXmlBean);
5
		mockHelper.verifyAll();
5
		mockHelper.verifyAll();
6
		assertTrue(classUnderTest.isPluginArtifact());
6
		assertTrue(classUnderTest.isTranslationArtifact());
7
		assertFalse(classUnderTest.isCoreArtifact());
7
		assertFalse(classUnderTest.isPluginArtifact());
8
		assertFalse(classUnderTest.isTranslationArtifact());
8
		assertFalse(classUnderTest.isCoreArtifact());
9
	
9
	
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0