|
1 | 1 | package im.tox.tox4j.core; |
2 | 2 |
|
| 3 | +import static org.junit.Assert.assertEquals; |
| 4 | +import static org.junit.Assert.assertNotNull; |
| 5 | + |
3 | 6 | import im.tox.tox4j.core.callbacks.ToxCoreEventAdapter; |
4 | 7 | import im.tox.tox4j.core.callbacks.ToxCoreEventListener; |
5 | 8 | import im.tox.tox4j.core.enums.ToxFileControl; |
|
13 | 16 | import im.tox.tox4j.impl.jni.ToxCoreImpl; |
14 | 17 | import org.junit.Assert; |
15 | 18 | import org.junit.Test; |
16 | | -import org.scalatest.junit.JUnitSuite; |
17 | | - |
18 | | -import static org.junit.Assert.assertEquals; |
19 | | -import static org.junit.Assert.assertNotNull; |
| 19 | +import org.scalatestplus.junit.JUnitSuite; |
20 | 20 |
|
21 | 21 | public final class JToxCoreTest extends JUnitSuite { |
22 | 22 |
|
23 | | - private final ToxCoreEventListener<Void> handler = new ToxCoreEventAdapter<>(); |
| 23 | + private final ToxCoreEventListener<Void> handler = |
| 24 | + new ToxCoreEventAdapter<>(); |
| 25 | + |
24 | 26 | private final ToxOptions options = new ToxOptions( |
25 | | - true, true, true, |
26 | | - new ProxyOptions.Http("localhost", 1234), |
27 | | - ToxCoreConstants.DefaultStartPort(), |
28 | | - ToxCoreConstants.DefaultEndPort(), |
29 | | - 0, |
| 27 | + true, true, true, new ProxyOptions.Http("localhost", 1234), |
| 28 | + ToxCoreConstants.DefaultStartPort(), ToxCoreConstants.DefaultEndPort(), 0, |
30 | 29 | // TODO(iphydf): This is kind of ugly. Do we want to live with this? |
31 | | - SaveDataOptions.None$.MODULE$, |
32 | | - true |
33 | | - ); |
| 30 | + SaveDataOptions.None$.MODULE$, true); |
34 | 31 |
|
35 | 32 | private void expectBoolean(boolean bool) {} |
36 | 33 |
|
@@ -102,5 +99,4 @@ public void testJavaApi() { |
102 | 99 | assertNotNull(e); |
103 | 100 | } |
104 | 101 | } |
105 | | - |
106 | 102 | } |
0 commit comments