From 380b16655bc09c2ccc3d269b4d4470e41ca7c3fe Mon Sep 17 00:00:00 2001 From: Samuel Tardieu Date: Wed, 11 Feb 2015 20:26:44 +0100 Subject: Remove unused helper method in tests --- tests/src/cgeo/geocaching/utils/FileUtilsTest.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/tests/src/cgeo/geocaching/utils/FileUtilsTest.java b/tests/src/cgeo/geocaching/utils/FileUtilsTest.java index 72554fa..4522700 100644 --- a/tests/src/cgeo/geocaching/utils/FileUtilsTest.java +++ b/tests/src/cgeo/geocaching/utils/FileUtilsTest.java @@ -6,9 +6,6 @@ import cgeo.geocaching.files.LocalStorage; import junit.framework.TestCase; -import android.content.Context; -import android.test.ServiceTestCase; - import java.io.File; import java.io.IOException; @@ -19,15 +16,6 @@ public class FileUtilsTest extends TestCase { final File alternative1 = new File(testDir, "prefix_1.ext"); final File alternative2 = new File(testDir, "prefix_2.ext"); - private Context getTestContext() { - try { - return (Context) ServiceTestCase.class.getMethod("getTestContext").invoke(this); - } catch (final Exception e) { - Log.e("Unable to get test context", e); - return null; - } - } - public void testGetUniqueNamedFile() throws IOException { FileUtils.deleteDirectory(testDir); testDir.mkdirs(); -- cgit v1.1