From 1c16b0e709f77828c5e1896c26a91a7bdb5255ac Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Wed, 17 Jun 2015 16:07:06 +0200 Subject: [PATCH] Removed pointless @SmallTest etc annotiations. --- .../test/activities/MainActivityTest.java | 1 - .../test/syncthing/BatteryReceiverTest.java | 3 --- .../test/syncthing/BootReceiverTest.java | 1 - .../test/syncthing/DeviceStateHolderTest.java | 3 --- .../test/syncthing/GetTaskTest.java | 2 -- .../test/syncthing/NetworkReceiverTest.java | 2 -- .../test/syncthing/RestApiTest.java | 14 ++------------ .../test/syncthing/SyncthingRunnableTest.java | 1 - .../test/syncthing/SyncthingServiceBinderTest.java | 1 - .../test/syncthing/SyncthingServiceTest.java | 3 --- .../syncthingandroid/test/util/ConfigXmlTest.java | 2 -- .../test/util/ExtendedCheckBoxPreferenceTest.java | 2 +- .../test/util/FolderObserverTest.java | 4 ---- .../test/util/FoldersAdapterTest.java | 2 -- 14 files changed, 3 insertions(+), 38 deletions(-) diff --git a/src/androidTest/java/com/nutomic/syncthingandroid/test/activities/MainActivityTest.java b/src/androidTest/java/com/nutomic/syncthingandroid/test/activities/MainActivityTest.java index 2daa25bc..41da5f39 100644 --- a/src/androidTest/java/com/nutomic/syncthingandroid/test/activities/MainActivityTest.java +++ b/src/androidTest/java/com/nutomic/syncthingandroid/test/activities/MainActivityTest.java @@ -17,7 +17,6 @@ public class MainActivityTest extends ActivityInstrumentationTestCase2 { super.tearDown(); } - @SmallTest public void testFirstStart() { setContext(mContext); startService(new Intent(mContext, SyncthingService.class)); assertTrue(getService().isFirstStart()); } - @MediumTest public void testNotFirstStart() throws IOException { setContext(mContext); startService(new Intent(mContext, SyncthingService.class)); @@ -59,7 +57,6 @@ public class SyncthingServiceTest extends ServiceTestCase { assertFalse(getService().isFirstStart()); } - @SmallTest public void testBindService() throws InterruptedException { SyncthingServiceBinder binder = (SyncthingServiceBinder) bindService(new Intent(getContext(), SyncthingService.class)); diff --git a/src/androidTest/java/com/nutomic/syncthingandroid/test/util/ConfigXmlTest.java b/src/androidTest/java/com/nutomic/syncthingandroid/test/util/ConfigXmlTest.java index a109d026..21eb6491 100644 --- a/src/androidTest/java/com/nutomic/syncthingandroid/test/util/ConfigXmlTest.java +++ b/src/androidTest/java/com/nutomic/syncthingandroid/test/util/ConfigXmlTest.java @@ -34,7 +34,6 @@ public class ConfigXmlTest extends AndroidTestCase { ConfigXml.getConfigFile(mContext).delete(); } - @SmallTest public void testGetWebGuiUrl() { assertTrue(mConfig.getWebGuiUrl().startsWith("https://127.0.0.1:")); } @@ -44,7 +43,6 @@ public class ConfigXmlTest extends AndroidTestCase { * * This is not ideal, but way less complicated than starting up syncthing and accessing the API. */ - @SmallTest public void testCreateCameraFolder() { long oldTime = ConfigXml.getConfigFile(mContext).lastModified(); long oldSize = ConfigXml.getConfigFile(mContext).length(); diff --git a/src/androidTest/java/com/nutomic/syncthingandroid/test/util/ExtendedCheckBoxPreferenceTest.java b/src/androidTest/java/com/nutomic/syncthingandroid/test/util/ExtendedCheckBoxPreferenceTest.java index b10302d9..103429f2 100644 --- a/src/androidTest/java/com/nutomic/syncthingandroid/test/util/ExtendedCheckBoxPreferenceTest.java +++ b/src/androidTest/java/com/nutomic/syncthingandroid/test/util/ExtendedCheckBoxPreferenceTest.java @@ -7,10 +7,10 @@ import com.nutomic.syncthingandroid.util.ExtendedCheckBoxPreference; public class ExtendedCheckBoxPreferenceTest extends AndroidTestCase { - @SmallTest public void testExtendedCheckBoxPreference() { Object o = new Object(); ExtendedCheckBoxPreference cb = new ExtendedCheckBoxPreference(getContext(), o); assertEquals(cb.getObject(), o); } + } diff --git a/src/androidTest/java/com/nutomic/syncthingandroid/test/util/FolderObserverTest.java b/src/androidTest/java/com/nutomic/syncthingandroid/test/util/FolderObserverTest.java index 25942e66..de70fbcf 100644 --- a/src/androidTest/java/com/nutomic/syncthingandroid/test/util/FolderObserverTest.java +++ b/src/androidTest/java/com/nutomic/syncthingandroid/test/util/FolderObserverTest.java @@ -49,7 +49,6 @@ public class FolderObserverTest extends AndroidTestCase return r; } - @MediumTest public void testRecursion() throws IOException, InterruptedException { mCurrentTest = "testRecursion"; File subFolder = new File(mTestFolder, "subfolder"); @@ -64,7 +63,6 @@ public class FolderObserverTest extends AndroidTestCase fo.stopWatching(); } - @MediumTest public void testRemoveFile() throws IOException, InterruptedException { mCurrentTest = "testRemoveFile"; File test = new File(mTestFolder, "test"); @@ -79,7 +77,6 @@ public class FolderObserverTest extends AndroidTestCase fo.stopWatching(); } - @MediumTest public void testMoveDirectoryOut() throws IOException, InterruptedException { mCurrentTest = "testMoveDirectory"; File subFolder = new File(mTestFolder, "subfolder"); @@ -97,7 +94,6 @@ public class FolderObserverTest extends AndroidTestCase fo.stopWatching(); } - @MediumTest public void testAddDirectory() throws IOException, InterruptedException { mCurrentTest = "testAddDirectory"; File subFolder = new File(mTestFolder, "subfolder"); diff --git a/src/androidTest/java/com/nutomic/syncthingandroid/test/util/FoldersAdapterTest.java b/src/androidTest/java/com/nutomic/syncthingandroid/test/util/FoldersAdapterTest.java index f928c73d..2ed0366b 100644 --- a/src/androidTest/java/com/nutomic/syncthingandroid/test/util/FoldersAdapterTest.java +++ b/src/androidTest/java/com/nutomic/syncthingandroid/test/util/FoldersAdapterTest.java @@ -39,7 +39,6 @@ public class FoldersAdapterTest extends AndroidTestCase { mModel.globalBytes = 1073741824; } - @MediumTest public void testGetViewNoModel() { mAdapter.add(Arrays.asList(mFolder)); View v = mAdapter.getView(0, null, null); @@ -48,7 +47,6 @@ public class FoldersAdapterTest extends AndroidTestCase { assertEquals(mFolder.invalid, ((TextView) v.findViewById(R.id.invalid)).getText()); } - @MediumTest public void testGetViewModel() { mAdapter.add(Arrays.asList(mFolder)); mAdapter.onReceiveModel(mFolder.id, mModel);