public class UpdateChannelTest
{
@Test
public void testEnumMethods() {
for (UpdateChannel action : UpdateChannel.values()) {
UpdateChannel a = UpdateChannel.valueOf(action.name());
assertEquals(0, a.compareTo(action));
assertEquals(action.ordinal(), a.ordinal())
public class ArtifactActionTest
{
@Test
public void testEnumMethods() {
for (ArtifactAction action : ArtifactAction.values()) {
ArtifactAction a = ArtifactAction.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/UpdateChannelTest.java
|
|
File path: /sql12/test/src/net/sourceforge/squirrel_sql/client/update/gui/ArtifactActionTest.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public class UpdateChannelTest↵ | | 1 | public class ArtifactActionTest↵
|
2 | {↵ | | 2 | {↵
|
|
3 | @Test ↵ | | 3 | @Test ↵
|
4 | public void testEnumMethods() {↵ | | 4 | public void testEnumMethods() {↵
|
5 | for (UpdateChannel action : UpdateChannel.values()) {↵ | | 5 | for (ArtifactAction action : ArtifactAction.values()) {↵
|
6 | UpdateChannel a = UpdateChannel.valueOf(action.name());↵ | | 6 | ArtifactAction a = ArtifactAction.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 |