From f3e5174fcca5359893c73c1f5ff42505c7c21318 Mon Sep 17 00:00:00 2001 From: OliE Date: Sat, 30 Dec 2017 10:14:17 +0100 Subject: [PATCH] moved the junit test into an own package --- android_app/app/build.gradle | 3 +-- .../com/health/openscale/junit}/DateTimeHelpersTest.java | 6 ++++-- 2 files changed, 5 insertions(+), 4 deletions(-) rename android_app/app/src/{test/java/com/health/openscale/core/utils => main/java/com/health/openscale/junit}/DateTimeHelpersTest.java (94%) diff --git a/android_app/app/build.gradle b/android_app/app/build.gradle index 1676bcdb..b6f97e31 100644 --- a/android_app/app/build.gradle +++ b/android_app/app/build.gradle @@ -31,8 +31,7 @@ dependencies { compile "com.android.support:support-v4:${supportLibVersion}" compile "com.android.support:appcompat-v7:${supportLibVersion}" compile 'com.github.lecho:hellocharts-library:1.5.8@aar' - - testCompile 'junit:junit:4.12' + compile 'junit:junit:4.12' } tasks.withType(Test) { diff --git a/android_app/app/src/test/java/com/health/openscale/core/utils/DateTimeHelpersTest.java b/android_app/app/src/main/java/com/health/openscale/junit/DateTimeHelpersTest.java similarity index 94% rename from android_app/app/src/test/java/com/health/openscale/core/utils/DateTimeHelpersTest.java rename to android_app/app/src/main/java/com/health/openscale/junit/DateTimeHelpersTest.java index c525110a..2e626c14 100644 --- a/android_app/app/src/test/java/com/health/openscale/core/utils/DateTimeHelpersTest.java +++ b/android_app/app/src/main/java/com/health/openscale/junit/DateTimeHelpersTest.java @@ -14,13 +14,15 @@ * along with this program. If not, see */ -package com.health.openscale.core.utils; +package com.health.openscale.junit; + +import com.health.openscale.core.utils.DateTimeHelpers; import org.junit.Test; import java.util.Calendar; -import static org.junit.Assert.*; +import static org.junit.Assert.assertEquals; public class DateTimeHelpersTest { Calendar getDate(int year, int month, int day, int hour, int minute, int second, int ms) {