void testCompare2() { int a = AuthenticationManager.SASL_LOGIN; int b = AuthenticationManager.LOGIN; assertEquals(0, AuthenticationManager.compare(a,b)); } public void testCompare3() { int a = AuthenticationManager.POP_BEFORE_SMTP; int b = AuthenticationManager.LOGIN; assertEquals(-1, AuthenticationManager.compare(a,b)); }
void testCompare1() { int a = AuthenticationManager.APOP; int b = AuthenticationManager.LOGIN; assertEquals(1, AuthenticationManager.compare(a,b)); } public void testCompare2() { int a = AuthenticationManager.SASL_LOGIN; int b = AuthenticationManager.LOGIN; assertEquals(0, AuthenticationManager.compare(a,b)); }
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/test/java/org/columba/mail/pop3/AuthenticationManagerTest.java File path: /columba-1.4-src/mail/src/test/java/org/columba/mail/pop3/AuthenticationManagerTest.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testCompare2() {
1
void testCompare1() {
2
		int a = AuthenticationManager.SASL_LOGIN;
2
		int a = AuthenticationManager.APOP;
3
		int b = AuthenticationManager.LOGIN;
3
		int b = AuthenticationManager.LOGIN;
4
		
4
		
5
		assertEquals(0, AuthenticationManager.compare(a,b));
5
		assertEquals(1, AuthenticationManager.compare(a,b));
6
	}
6
	}
7
	
7
	public void testCompare3() {
8
	public void testCompare2() {
8
		int a = AuthenticationManager.POP_BEFORE_SMTP;
9
		int a = AuthenticationManager.SASL_LOGIN;
9
		int b = AuthenticationManager.LOGIN;
10
		int b = AuthenticationManager.LOGIN;
10
		
11
		
11
		assertEquals(-1, AuthenticationManager.compare(a,b));
12
		assertEquals(0, AuthenticationManager.compare(a,b));
12
	}
13
	}
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