From eb2332c8be0d70c78f0e0baede544b90963d8e9f Mon Sep 17 00:00:00 2001 From: cpfeiffer Date: Thu, 13 Aug 2015 23:23:40 +0200 Subject: [PATCH] Some preparations for unit tests --- app/build.gradle | 3 +++ .../service/btle/BtLEQueueTest.java | 19 +++++++++++++++++++ build.gradle | 2 +- 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 app/src/test/java/nodomain/freeyourgadget/gadgetbridge/service/btle/BtLEQueueTest.java diff --git a/app/build.gradle b/app/build.gradle index 57ad0de8..d88ae674 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -28,4 +28,7 @@ dependencies { compile 'org.slf4j:slf4j-api:1.7.7' compile 'com.github.PhilJay:MPAndroidChart:2.1.0' compile 'com.github.pfichtner:durationformatter:0.1.1' + + testCompile 'junit:junit:4.12' +// testCompile "org.mockito:mockito-core:1.9.5" } diff --git a/app/src/test/java/nodomain/freeyourgadget/gadgetbridge/service/btle/BtLEQueueTest.java b/app/src/test/java/nodomain/freeyourgadget/gadgetbridge/service/btle/BtLEQueueTest.java new file mode 100644 index 00000000..9a7ccd36 --- /dev/null +++ b/app/src/test/java/nodomain/freeyourgadget/gadgetbridge/service/btle/BtLEQueueTest.java @@ -0,0 +1,19 @@ +package nodomain.freeyourgadget.gadgetbridge.service.btle; + +import junit.framework.TestCase; + +public class BtLEQueueTest extends TestCase { + + public void setUp() throws Exception { + super.setUp(); + + } + + public void tearDown() throws Exception { + + } + + public void testIsConnected() throws Exception { + + } +} \ No newline at end of file diff --git a/build.gradle b/build.gradle index a39c5863..bf5871d6 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ buildscript { jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:1.0.0' + classpath 'com.android.tools.build:gradle:1.2.3' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files