aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/cgeo/geocaching/test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/cgeo/geocaching/test')
-rw-r--r--tests/src/cgeo/geocaching/test/RegExPerformanceTest.java3
-rw-r--r--tests/src/cgeo/geocaching/test/RegExRealPerformanceTest.java3
-rw-r--r--tests/src/cgeo/geocaching/test/WhitespaceTest.java5
-rw-r--r--tests/src/cgeo/geocaching/test/mock/GC1ZXX2.java2
-rw-r--r--tests/src/cgeo/geocaching/test/mock/GC2CJPF.java4
-rw-r--r--tests/src/cgeo/geocaching/test/mock/GC3XX5J.java2
6 files changed, 6 insertions, 13 deletions
diff --git a/tests/src/cgeo/geocaching/test/RegExPerformanceTest.java b/tests/src/cgeo/geocaching/test/RegExPerformanceTest.java
index ec84824..d71f489 100644
--- a/tests/src/cgeo/geocaching/test/RegExPerformanceTest.java
+++ b/tests/src/cgeo/geocaching/test/RegExPerformanceTest.java
@@ -18,7 +18,7 @@ import junit.framework.TestCase;
* Test class to compare the performance of two regular expressions on given data.
* Can be used to improve the time needed to parse the cache data
* Run As "JUnit Test"
- *
+ *
* @author blafoo
*/
public class RegExPerformanceTest extends TestCase {
@@ -69,7 +69,6 @@ public class RegExPerformanceTest extends TestCase {
public final static Pattern PATTERN_DESCRIPTION_OLD = Pattern.compile("<span id=\"ctl00_ContentBody_LongDescription\"[^>]*>" + "(.*)</span>[^<]*</div>[^<]*<p>[^<]*</p>[^<]*<p>[^<]*<strong>\\W*Additional Hints</strong>", Pattern.CASE_INSENSITIVE);
public final static Pattern PATTERN_DESCRIPTION = Pattern.compile("<span id=\"ctl00_ContentBody_LongDescription\">(.*?)</span>[^<]*</div>[^<]*<p>[^<]*</p>[^<]*<p>[^<]*<strong>\\W*Additional Hints</strong>");
-
public final static List<MockedCache> MOCKED_CACHES;
static {
MOCKED_CACHES = Arrays.asList(new GC2CJPF(), new GC1ZXX2(), new GC2JVEH(), new GC3XX5J());
diff --git a/tests/src/cgeo/geocaching/test/RegExRealPerformanceTest.java b/tests/src/cgeo/geocaching/test/RegExRealPerformanceTest.java
index 07c4c95..1793722 100644
--- a/tests/src/cgeo/geocaching/test/RegExRealPerformanceTest.java
+++ b/tests/src/cgeo/geocaching/test/RegExRealPerformanceTest.java
@@ -1,6 +1,5 @@
package cgeo.geocaching.test;
-
import cgeo.geocaching.utils.Log;
import android.test.AndroidTestCase;
@@ -10,7 +9,7 @@ import java.util.List;
/**
* Test class to compare the performance of two regular expressions on given data.
* Can be used to improve the time needed to parse the cache data
- *
+ *
* @author blafoo
*/
public class RegExRealPerformanceTest extends AndroidTestCase {
diff --git a/tests/src/cgeo/geocaching/test/WhitespaceTest.java b/tests/src/cgeo/geocaching/test/WhitespaceTest.java
index 6138755..5e792d9 100644
--- a/tests/src/cgeo/geocaching/test/WhitespaceTest.java
+++ b/tests/src/cgeo/geocaching/test/WhitespaceTest.java
@@ -1,6 +1,5 @@
package cgeo.geocaching.test;
-
import cgeo.geocaching.utils.BaseUtils;
import cgeo.geocaching.utils.Log;
@@ -12,7 +11,7 @@ import java.util.regex.Pattern;
/**
* This test is meant for performance measurements of different whitespace replacement implementations.
* It does not test semantical correctness.
- *
+ *
*/
public class WhitespaceTest extends AbstractResourceInstrumentationTestCase {
@@ -28,7 +27,7 @@ public class WhitespaceTest extends AbstractResourceInstrumentationTestCase {
/**
* The place for the implementation to prove that the new version of replaceWhitespace is faster than
* BaseUtils.replaceWhitespace()
- *
+ *
* @param data
* @return
*/
diff --git a/tests/src/cgeo/geocaching/test/mock/GC1ZXX2.java b/tests/src/cgeo/geocaching/test/mock/GC1ZXX2.java
index d92e450..1e4b527 100644
--- a/tests/src/cgeo/geocaching/test/mock/GC1ZXX2.java
+++ b/tests/src/cgeo/geocaching/test/mock/GC1ZXX2.java
@@ -12,7 +12,6 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
-
public class GC1ZXX2 extends MockedCache {
public GC1ZXX2() {
@@ -108,7 +107,6 @@ public class GC1ZXX2 extends MockedCache {
return new MockedLazyInitializedList<String>(attributes);
}
-
@Override
public Map<LogType, Integer> getLogCounts() {
final Map<LogType, Integer> logCounts = new HashMap<LogType, Integer>();
diff --git a/tests/src/cgeo/geocaching/test/mock/GC2CJPF.java b/tests/src/cgeo/geocaching/test/mock/GC2CJPF.java
index 107384f..8b65d43 100644
--- a/tests/src/cgeo/geocaching/test/mock/GC2CJPF.java
+++ b/tests/src/cgeo/geocaching/test/mock/GC2CJPF.java
@@ -13,7 +13,6 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
-
public class GC2CJPF extends MockedCache {
public GC2CJPF() {
@@ -39,6 +38,7 @@ public class GC2CJPF extends MockedCache {
public String getOwnerDisplayName() {
return "Tom03";
}
+
@Override
public String getOwnerUserId() {
return getOwnerDisplayName();
@@ -99,7 +99,7 @@ public class GC2CJPF extends MockedCache {
/*
* (non-Javadoc)
- *
+ *
* @see cgeo.geocaching.test.mock.MockedCache#isOwn()
*/
@Override
diff --git a/tests/src/cgeo/geocaching/test/mock/GC3XX5J.java b/tests/src/cgeo/geocaching/test/mock/GC3XX5J.java
index b598cfa..ae3c87d 100644
--- a/tests/src/cgeo/geocaching/test/mock/GC3XX5J.java
+++ b/tests/src/cgeo/geocaching/test/mock/GC3XX5J.java
@@ -12,7 +12,6 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
-
public class GC3XX5J extends MockedCache {
public GC3XX5J() {
@@ -111,7 +110,6 @@ public class GC3XX5J extends MockedCache {
return new MockedLazyInitializedList<String>(attributes);
}
-
@Override
public Map<LogType, Integer> getLogCounts() {
final Map<LogType, Integer> logCounts = new HashMap<LogType, Integer>();