From f8454954a74bfbd5106d7288b70a3eb8e42fb061 Mon Sep 17 00:00:00 2001 From: Samuel Tardieu Date: Sat, 28 Apr 2012 11:47:26 +0200 Subject: Refactoring: make entities static Those are of little importance in tests where performances do not matter as much as in the application, but nevertheless, tests should be held to the same code standards as the application code. --- tests/src/cgeo/geocaching/files/GPXImporterTest.java | 2 +- tests/src/cgeo/geocaching/utils/MemorySubjectTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/src/cgeo/geocaching/files/GPXImporterTest.java b/tests/src/cgeo/geocaching/files/GPXImporterTest.java index dc1fc71..a0dd377 100644 --- a/tests/src/cgeo/geocaching/files/GPXImporterTest.java +++ b/tests/src/cgeo/geocaching/files/GPXImporterTest.java @@ -281,7 +281,7 @@ public class GPXImporterTest extends AbstractResourceInstrumentationTestCase { super.tearDown(); } - private void deleteDirectory(File dir) { + private static void deleteDirectory(File dir) { for (File f : dir.listFiles()) { if (f.isFile()) { f.delete(); diff --git a/tests/src/cgeo/geocaching/utils/MemorySubjectTest.java b/tests/src/cgeo/geocaching/utils/MemorySubjectTest.java index 066dded..30e4f60 100644 --- a/tests/src/cgeo/geocaching/utils/MemorySubjectTest.java +++ b/tests/src/cgeo/geocaching/utils/MemorySubjectTest.java @@ -4,7 +4,7 @@ import android.test.AndroidTestCase; public class MemorySubjectTest extends AndroidTestCase { - private class Observer implements IObserver { + private static class Observer implements IObserver { public int times = 0; public Integer value; -- cgit v1.1