2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-09-01 14:45:08 +00:00

Simplify asserts

This commit is contained in:
Nicolas Fella
2018-10-26 23:11:47 +02:00
parent 74d2b2e828
commit 2d0b97d252

View File

@@ -57,8 +57,8 @@ public class NetworkPacketTest extends AndroidTestCase {
np2 = NetworkPacket.unserialize(json); np2 = NetworkPacket.unserialize(json);
assertEquals(np2.getId(), 123); assertEquals(np2.getId(), 123);
assertTrue(np2.getBoolean("testing")); assertTrue(np2.getBoolean("testing"));
assertEquals(np2.getBoolean("not_testing"), false); assertFalse(np2.getBoolean("not_testing"));
assertEquals(np2.getBoolean("not_testing", true), true); assertTrue(np2.getBoolean("not_testing", true));
} }