diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-01-25 20:14:42 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-01-26 08:41:45 +1300 |
commit | 87bdccbe9843e38174ad345b8e474b1cded9f985 (patch) | |
tree | 4b2f90ad2b9a5d32410ab9579fb4135b5ac95bfa /test/org/traccar/helper/BitUtilTest.java | |
parent | 8535983fea8c09046c53f2ebf388bbf3fae594ce (diff) | |
download | trackermap-server-87bdccbe9843e38174ad345b8e474b1cded9f985.tar.gz trackermap-server-87bdccbe9843e38174ad345b8e474b1cded9f985.tar.bz2 trackermap-server-87bdccbe9843e38174ad345b8e474b1cded9f985.zip |
Static imports for junit
Diffstat (limited to 'test/org/traccar/helper/BitUtilTest.java')
-rw-r--r-- | test/org/traccar/helper/BitUtilTest.java | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/test/org/traccar/helper/BitUtilTest.java b/test/org/traccar/helper/BitUtilTest.java index 4aa295e12..683c4e6b8 100644 --- a/test/org/traccar/helper/BitUtilTest.java +++ b/test/org/traccar/helper/BitUtilTest.java @@ -3,33 +3,37 @@ package org.traccar.helper; import org.junit.Assert; import org.junit.Test; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertTrue; + public class BitUtilTest { @Test public void testCheck() { - Assert.assertFalse(BitUtil.check(0, 0)); - Assert.assertTrue(BitUtil.check(1, 0)); - Assert.assertFalse(BitUtil.check(2, 0)); + assertFalse(BitUtil.check(0, 0)); + assertTrue(BitUtil.check(1, 0)); + assertFalse(BitUtil.check(2, 0)); } @Test public void testBetween() { - Assert.assertEquals(0, BitUtil.between(0, 0, 0)); - Assert.assertEquals(1, BitUtil.between(1, 0, 1)); - Assert.assertEquals(2, BitUtil.between(2, 0, 2)); - Assert.assertEquals(2, BitUtil.between(6, 0, 2)); + assertEquals(0, BitUtil.between(0, 0, 0)); + assertEquals(1, BitUtil.between(1, 0, 1)); + assertEquals(2, BitUtil.between(2, 0, 2)); + assertEquals(2, BitUtil.between(6, 0, 2)); } @Test public void testFrom() { - Assert.assertEquals(1, BitUtil.from(1, 0)); - Assert.assertEquals(0, BitUtil.from(1, 1)); + assertEquals(1, BitUtil.from(1, 0)); + assertEquals(0, BitUtil.from(1, 1)); } @Test public void testTo() { - Assert.assertEquals(2, BitUtil.to(2, 2)); - Assert.assertEquals(0, BitUtil.to(2, 1)); + assertEquals(2, BitUtil.to(2, 2)); + assertEquals(0, BitUtil.to(2, 1)); } } |