aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/database/GroupTreeTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-01-25 20:14:42 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2018-01-26 08:41:45 +1300
commit87bdccbe9843e38174ad345b8e474b1cded9f985 (patch)
tree4b2f90ad2b9a5d32410ab9579fb4135b5ac95bfa /test/org/traccar/database/GroupTreeTest.java
parent8535983fea8c09046c53f2ebf388bbf3fae594ce (diff)
downloadtrackermap-server-87bdccbe9843e38174ad345b8e474b1cded9f985.tar.gz
trackermap-server-87bdccbe9843e38174ad345b8e474b1cded9f985.tar.bz2
trackermap-server-87bdccbe9843e38174ad345b8e474b1cded9f985.zip
Static imports for junit
Diffstat (limited to 'test/org/traccar/database/GroupTreeTest.java')
-rw-r--r--test/org/traccar/database/GroupTreeTest.java16
1 files changed, 9 insertions, 7 deletions
diff --git a/test/org/traccar/database/GroupTreeTest.java b/test/org/traccar/database/GroupTreeTest.java
index f73cb75b6..3e75f9073 100644
--- a/test/org/traccar/database/GroupTreeTest.java
+++ b/test/org/traccar/database/GroupTreeTest.java
@@ -8,6 +8,8 @@ import org.traccar.model.Group;
import java.util.ArrayList;
import java.util.Collection;
+import static org.junit.Assert.assertEquals;
+
public class GroupTreeTest {
private static Group createGroup(long id, String name, long parent) {
@@ -42,14 +44,14 @@ public class GroupTreeTest {
GroupTree groupTree = new GroupTree(groups, devices);
- Assert.assertEquals(4, groupTree.getGroups(1).size());
- Assert.assertEquals(3, groupTree.getGroups(2).size());
- Assert.assertEquals(0, groupTree.getGroups(3).size());
- Assert.assertEquals(1, groupTree.getGroups(4).size());
+ assertEquals(4, groupTree.getGroups(1).size());
+ assertEquals(3, groupTree.getGroups(2).size());
+ assertEquals(0, groupTree.getGroups(3).size());
+ assertEquals(1, groupTree.getGroups(4).size());
- Assert.assertEquals(3, groupTree.getDevices(1).size());
- Assert.assertEquals(1, groupTree.getDevices(3).size());
- Assert.assertEquals(2, groupTree.getDevices(4).size());
+ assertEquals(3, groupTree.getDevices(1).size());
+ assertEquals(1, groupTree.getDevices(3).size());
+ assertEquals(2, groupTree.getDevices(4).size());
}
}