From 96203f574fb2f1b5704b449f9ef146b6223f777a Mon Sep 17 00:00:00 2001 From: cpfeiffer Date: Sun, 8 Jan 2017 21:36:26 +0100 Subject: [PATCH] Tiny test for GattCharacteristic class --- .../freeyourgadget/gadgetbridge/test/MiscTest.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 app/src/test/java/nodomain/freeyourgadget/gadgetbridge/test/MiscTest.java diff --git a/app/src/test/java/nodomain/freeyourgadget/gadgetbridge/test/MiscTest.java b/app/src/test/java/nodomain/freeyourgadget/gadgetbridge/test/MiscTest.java new file mode 100644 index 000000000..9c4997600 --- /dev/null +++ b/app/src/test/java/nodomain/freeyourgadget/gadgetbridge/test/MiscTest.java @@ -0,0 +1,14 @@ +package nodomain.freeyourgadget.gadgetbridge.test; + +import org.junit.Assert; +import org.junit.Test; + +import nodomain.freeyourgadget.gadgetbridge.service.btle.GattCharacteristic; + +public class MiscTest extends TestBase { + @Test + public void testGattCharacteristic() { + String desc = GattCharacteristic.lookup(GattCharacteristic.UUID_CHARACTERISTIC_HEART_RATE_CONTROL_POINT, "xxx"); + Assert.assertEquals("heart rate control point", desc); + } +}