aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/cgeo/geocaching/export/ExportTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/cgeo/geocaching/export/ExportTest.java')
-rw-r--r--tests/src/cgeo/geocaching/export/ExportTest.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/src/cgeo/geocaching/export/ExportTest.java b/tests/src/cgeo/geocaching/export/ExportTest.java
new file mode 100644
index 0000000..5d3d137
--- /dev/null
+++ b/tests/src/cgeo/geocaching/export/ExportTest.java
@@ -0,0 +1,19 @@
+package cgeo.geocaching.export;
+
+import cgeo.CGeoTestCase;
+import cgeo.geocaching.LogEntry;
+import cgeo.geocaching.cgCache;
+import cgeo.geocaching.enumerations.LogType;
+
+public class ExportTest extends CGeoTestCase {
+
+ public static void testGSAKExport() {
+ final cgCache cache = new cgCache();
+ cache.setGeocode("GCX1234");
+ final LogEntry log = new LogEntry(1353244820000L, LogType.FOUND_IT, "Hidden in a tree");
+ final StringBuilder logStr = new StringBuilder();
+ FieldnoteExport.appendFieldNote(logStr, cache, log);
+ assertEquals("GCX1234,2012-11-18T14:20:20Z,Found it,\"Hidden in a tree\"\n", logStr.toString());
+ }
+
+}