public class DownloadEventTypeTest
{
@Test
public void testEnumMethods() {
for (DownloadEventType action : DownloadEventType.values()) {
DownloadEventType a = DownloadEventType.valueOf(action.name());
assertEquals(0, a.compareTo(action));
assertEquals(action.ordinal(), a.ordinal())
public class DialectTypeTest
{
@Test
public void testEnumMethods() {
for (DialectType action : DialectType.values()) {
DialectType a = DialectType.valueOf(action.name());
assertEquals(0, a.compareTo(action));
assertEquals(action.ordinal(), a.ordinal())
Clone fragments detected by clone detection tool
File path: /sql12/test/src/net/sourceforge/squirrel_sql/client/update/downloader/event/DownloadEventTypeTest.java
|
|
File path: /sql12/test/src/net/sourceforge/squirrel_sql/fw/dialects/DialectTypeTest.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public class DownloadEventTypeTest↵ | | 1 | public class DialectTypeTest↵
|
2 | {↵ | | 2 | {↵
|
|
3 | @Test ↵ | | 3 | @Test ↵
|
4 | public void testEnumMethods() {↵ | | 4 | public void testEnumMethods() {↵
|
5 | for (DownloadEventType action : DownloadEventType.values()) {↵ | | 5 | for (DialectType action : DialectType.values()) {↵
|
6 | DownloadEventType a = DownloadEventType.valueOf(action.name());↵ | | 6 | DialectType a = DialectType.valueOf(action.name());↵
|
7 | assertEquals(0, a.compareTo(action));↵ | | 7 | assertEquals(0, a.compareTo(action));↵
|
8 | assertEquals(action.ordinal(), a.ordinal()) | | 8 | assertEquals(action.ordinal(), a.ordinal())
|
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 |