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));
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));
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 testCompare1() {↵ | | 1 | void testCompare2() {↵
|
2 | int a = AuthenticationManager.APOP;↵ | | 2 | int a = AuthenticationManager.SASL_LOGIN;↵
|
3 | int b = AuthenticationManager.LOGIN;↵ | | 3 | int b = AuthenticationManager.LOGIN;↵
|
4 | ↵ | | 4 | ↵
|
5 | assertEquals(1, AuthenticationManager.compare(a,b));↵ | | 5 | assertEquals(0, AuthenticationManager.compare(a,b));↵
|
6 | }↵ | | 6 | }↵
|
7 | ↵ | | |
|
8 | public void testCompare2() {↵ | | 7 | public void testCompare3() {↵
|
9 | int a = AuthenticationManager.SASL_LOGIN;↵ | | 8 | int a = AuthenticationManager.POP_BEFORE_SMTP;↵
|
10 | int b = AuthenticationManager.LOGIN;↵ | | 9 | int b = AuthenticationManager.LOGIN;↵
|
11 | ↵ | | 10 | ↵
|
12 | assertEquals(0, AuthenticationManager.compare(a,b));↵ | | 11 | assertEquals(-1, AuthenticationManager.compare(a,b));↵
|
13 | | | 12 |
|
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 |