public class PrefixedConfigTest extends BaseSQuirreLJUnit4TestCase { PrefixedConfig classUnderTest = new PrefixedConfig(); @Test public void testGetPrefix() throws Exception { classUnderTest.setPrefix("aTestString"); assertEquals("aTestString", classUnderTest.getPrefix()); } @Test public void testGetCompletionConfig() throws Exception { classUnderTest.setCompletionConfig(10); assertEquals(10, classUnderTest.getCompletionConfig());
public class PrintXmlBeanTest extends BaseSQuirreLJUnit4TestCase { PrintXmlBean classUnderTest = new PrintXmlBean(); @Test public void testGetEdgesScale() throws Exception { classUnderTest.setEdgesScale(10); assertEquals(10, classUnderTest.getEdgesScale()); } @Test public void testIsShowEdges() throws Exception { classUnderTest.setShowEdges(true); assertEquals(true, classUnderTest.isShowEdges());
Clone fragments detected by clone detection tool
File path: /sql12/test/src/net/sourceforge/squirrel_sql/plugins/codecompletion/prefs/PrefixedConfigTest.java File path: /sql12/test/src/net/sourceforge/squirrel_sql/plugins/graph/xmlbeans/PrintXmlBeanTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class PrefixedConfigTest extends BaseSQuirreLJUnit4TestCase {
1
public class PrintXmlBeanTest extends BaseSQuirreLJUnit4TestCase {
2
	PrefixedConfig classUnderTest = new PrefixedConfig();
2
	PrintXmlBean classUnderTest = new PrintXmlBean();
3
	@Test
3
	@Test
4
	public void testGetPrefix() throws Exception
4
	public void testGetEdgesScale() throws Exception
5
	{
5
	{
6
		classUnderTest.setPrefix("aTestString");
6
		classUnderTest.setEdgesScale(10);
7
		assertEquals("aTestString", classUnderTest.getPrefix());
7
		assertEquals(10, classUnderTest.getEdgesScale());
8
	}
8
	}
9
	@Test
9
	@Test
10
	public void testGetCompletionConfig() throws Exception
10
	public void testIsShowEdges() throws Exception
11
	{
11
	{
12
		classUnderTest.setCompletionConfig(10);
12
		classUnderTest.setShowEdges(true);
13
		assertEquals(10, classUnderTest.getCompletionConfig());
13
		assertEquals(true, classUnderTest.isShowEdges());
14
	
14
	
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