From aa0fa2a4bae50c78bb9d1e864e0516bfad66ec83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Batuhan=20Berk=20Ba=C5=9Fo=C4=9Flu?= Date: Wed, 31 Oct 2018 13:31:46 -0400 Subject: [PATCH] Updated test files --- .../olympus/olympusservices/LogInTest.java | 4 ---- .../olympusservices/ServiceProviderTest.java | 23 +++++++++++++++++++ .../olympus/olympusservices/ServiceTest2.java | 4 ++++ 3 files changed, 27 insertions(+), 4 deletions(-) create mode 100644 OlympusServices/app/src/androidTest/java/com/uottawa/olympus/olympusservices/ServiceTest2.java diff --git a/OlympusServices/app/src/androidTest/java/com/uottawa/olympus/olympusservices/LogInTest.java b/OlympusServices/app/src/androidTest/java/com/uottawa/olympus/olympusservices/LogInTest.java index 9f8b442..d35190f 100644 --- a/OlympusServices/app/src/androidTest/java/com/uottawa/olympus/olympusservices/LogInTest.java +++ b/OlympusServices/app/src/androidTest/java/com/uottawa/olympus/olympusservices/LogInTest.java @@ -1,11 +1,9 @@ package com.uottawa.olympus.olympusservices; -import android.support.test.annotation.UiThreadTest; import android.support.test.rule.ActivityTestRule; import android.support.test.runner.AndroidJUnit4; import android.widget.TextView; -import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; @@ -17,9 +15,7 @@ public class LogInTest { private LogIn mActivity = null; private TextView text; - @Test - @UiThreadTest public void signInInvalid() throws Exception{ } diff --git a/OlympusServices/app/src/androidTest/java/com/uottawa/olympus/olympusservices/ServiceProviderTest.java b/OlympusServices/app/src/androidTest/java/com/uottawa/olympus/olympusservices/ServiceProviderTest.java index e172b92..d934a48 100644 --- a/OlympusServices/app/src/androidTest/java/com/uottawa/olympus/olympusservices/ServiceProviderTest.java +++ b/OlympusServices/app/src/androidTest/java/com/uottawa/olympus/olympusservices/ServiceProviderTest.java @@ -1,4 +1,27 @@ package com.uottawa.olympus.olympusservices; +import android.support.test.annotation.UiThreadTest; +import android.support.test.rule.ActivityTestRule; +import android.widget.TextView; + +import org.junit.Before; +import org.junit.Rule; +import org.junit.Test; + public class ServiceProviderTest { + @Rule + public ActivityTestRule mActivityTestRule = new ActivityTestRule(ServiceProvider.class); + private ServiceProvider mActivity = null; + private TextView text; + + @Before + public void addService() throws Exception{ + + } + + @Test + @UiThreadTest + public void checkServices() throws Exception{ + + } } diff --git a/OlympusServices/app/src/androidTest/java/com/uottawa/olympus/olympusservices/ServiceTest2.java b/OlympusServices/app/src/androidTest/java/com/uottawa/olympus/olympusservices/ServiceTest2.java new file mode 100644 index 0000000..9c035be --- /dev/null +++ b/OlympusServices/app/src/androidTest/java/com/uottawa/olympus/olympusservices/ServiceTest2.java @@ -0,0 +1,4 @@ +package com.uottawa.olympus.olympusservices; + +public class ServiceTest2 { +}