aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/cgeo/geocaching/cgBaseTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/cgeo/geocaching/cgBaseTest.java')
-rw-r--r--tests/src/cgeo/geocaching/cgBaseTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/src/cgeo/geocaching/cgBaseTest.java b/tests/src/cgeo/geocaching/cgBaseTest.java
index f286fb6..99130d7 100644
--- a/tests/src/cgeo/geocaching/cgBaseTest.java
+++ b/tests/src/cgeo/geocaching/cgBaseTest.java
@@ -82,7 +82,7 @@ public class cgBaseTest extends AndroidTestCase {
// to get the same results we have to use the date format used when the mocked data was created
Settings.setGcCustomDate(mockedCache.getDateFormat());
ParseResult parseResult = cgBase.parseCacheFromText(mockedCache.getData(), 0, null);
- cgCache parsedCache = parseResult.cacheList.get(0);
+ cgCache parsedCache = cgBase.getFirstElementFromSet(parseResult.cacheList);
cgBaseTest.testCompareCaches(mockedCache, parsedCache);
}
Settings.setGcCustomDate(gcCustomDate);
@@ -151,6 +151,6 @@ public class cgBaseTest extends AndroidTestCase {
// to get the same results we have to use the date format used when the mocked data was created
Settings.setGcCustomDate(mockedCache.getDateFormat());
final ParseResult parseResult = cgBase.parseCacheFromText(mockedCache.getData(), 0, null);
- return parseResult.cacheList.get(0);
+ return cgBase.getFirstElementFromSet(parseResult.cacheList);
}
} \ No newline at end of file