aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/cgeo/geocaching/test/AbstractResourceInstrumentationTestCase.java
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2014-08-04 17:54:57 +0200
committerBananeweizen <bananeweizen@gmx.de>2014-08-04 17:54:57 +0200
commit6630ac7b85b2726df247c9fefa120e35e79dcd24 (patch)
tree25544584b0df505579a733386217028fde9996d4 /tests/src/cgeo/geocaching/test/AbstractResourceInstrumentationTestCase.java
parent34864892b3f9dd1ff775c0df3bae1c37adcedf3e (diff)
downloadcgeo-6630ac7b85b2726df247c9fefa120e35e79dcd24.zip
cgeo-6630ac7b85b2726df247c9fefa120e35e79dcd24.tar.gz
cgeo-6630ac7b85b2726df247c9fefa120e35e79dcd24.tar.bz2
refactoring: avoid optimization of TEMPORARY_LIST
Diffstat (limited to 'tests/src/cgeo/geocaching/test/AbstractResourceInstrumentationTestCase.java')
-rw-r--r--tests/src/cgeo/geocaching/test/AbstractResourceInstrumentationTestCase.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/src/cgeo/geocaching/test/AbstractResourceInstrumentationTestCase.java b/tests/src/cgeo/geocaching/test/AbstractResourceInstrumentationTestCase.java
index eaac181..2a22895 100644
--- a/tests/src/cgeo/geocaching/test/AbstractResourceInstrumentationTestCase.java
+++ b/tests/src/cgeo/geocaching/test/AbstractResourceInstrumentationTestCase.java
@@ -75,7 +75,7 @@ public abstract class AbstractResourceInstrumentationTestCase extends Instrument
protected void setUp() throws Exception {
super.setUp();
temporaryListId = DataStore.createList("Temporary unit testing");
- assertThat(temporaryListId != StoredList.TEMPORARY_LIST_ID).isTrue();
+ assertThat(temporaryListId != StoredList.TEMPORARY_LIST.id).isTrue();
assertThat(temporaryListId != StoredList.STANDARD_LIST_ID).isTrue();
}
@@ -95,7 +95,7 @@ public abstract class AbstractResourceInstrumentationTestCase extends Instrument
final protected Geocache loadCacheFromResource(int resourceId) throws IOException, ParserException {
final InputStream instream = getResourceStream(resourceId);
try {
- GPX10Parser parser = new GPX10Parser(StoredList.TEMPORARY_LIST_ID);
+ GPX10Parser parser = new GPX10Parser(StoredList.TEMPORARY_LIST.id);
Collection<Geocache> caches = parser.parse(instream, null);
assertThat(caches).isNotNull();
assertThat(caches.isEmpty()).isFalse();