From 9c04515a3436d40c0db82a655f60ed7faae04095 Mon Sep 17 00:00:00 2001 From: Alexandros Schillings Date: Fri, 3 Jul 2015 15:29:55 +0100 Subject: [PATCH] Added some tests around ByteUtils --- library/build.gradle | 2 + library/library.iml | 41 +++++++------ .../mfdata/IBeaconManufacturerData.java | 6 +- .../alt236/bluetoothlelib/util/ByteUtils.java | 11 ++-- .../bluetoothlelib/util/ByteUtilsTest.java | 60 +++++++++++++++++++ sample_app/sample_app.iml | 37 ++++++------ 6 files changed, 112 insertions(+), 45 deletions(-) create mode 100644 library/src/test/java/uk/co/alt236/bluetoothlelib/util/ByteUtilsTest.java diff --git a/library/build.gradle b/library/build.gradle index 3e5778d..b45ddfb 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -30,5 +30,7 @@ android { } dependencies { + testCompile 'junit:junit:4.12' + testCompile "org.mockito:mockito-core:1.9.5" compile fileTree(include: ['*.jar'], dir: 'libs') } diff --git a/library/library.iml b/library/library.iml index 380a1e3..f457fe4 100644 --- a/library/library.iml +++ b/library/library.iml @@ -9,13 +9,12 @@