Created some unit tests for idgenrator package.

This commit is contained in:
2018-12-03 20:11:07 +01:00
parent 5174e1d0c8
commit 5a19f801b3
4 changed files with 187 additions and 2 deletions

View File

@ -30,6 +30,7 @@ import java.util.Objects;
/**
*
* @author 7u83 <7u83@mail.ru>
* @param <T>
*/
public class Id<T extends Comparable> implements Comparable<Id> {
@ -61,7 +62,7 @@ public class Id<T extends Comparable> implements Comparable<Id> {
@Override
public int compareTo(Id o) {
return value.compareTo(o);
return value.compareTo(o.value);
}
}