aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/cgeo/geocaching/test
diff options
context:
space:
mode:
authorBananeweizen <Bananeweizen@gmx.de>2012-12-26 12:59:14 +0100
committerBananeweizen <Bananeweizen@gmx.de>2012-12-26 12:59:14 +0100
commite29b64e963af24f9c85c12ea110bf5255ef6fbec (patch)
treee7e4ffbebed28023d3c1f6a42f6a1910fb1f6646 /tests/src/cgeo/geocaching/test
parentc29c80e9b8cccc552e6747dbcaf0c5738fadd92a (diff)
downloadcgeo-e29b64e963af24f9c85c12ea110bf5255ef6fbec.zip
cgeo-e29b64e963af24f9c85c12ea110bf5255ef6fbec.tar.gz
cgeo-e29b64e963af24f9c85c12ea110bf5255ef6fbec.tar.bz2
code cleanup: remove debug code
* fixed some more issues of Findbugs and CodePro
Diffstat (limited to 'tests/src/cgeo/geocaching/test')
-rw-r--r--tests/src/cgeo/geocaching/test/RegExPerformanceTest.java2
-rw-r--r--tests/src/cgeo/geocaching/test/mock/MockedCache.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/src/cgeo/geocaching/test/RegExPerformanceTest.java b/tests/src/cgeo/geocaching/test/RegExPerformanceTest.java
index b9f8138..5e46445 100644
--- a/tests/src/cgeo/geocaching/test/RegExPerformanceTest.java
+++ b/tests/src/cgeo/geocaching/test/RegExPerformanceTest.java
@@ -124,7 +124,7 @@ public class RegExPerformanceTest extends TestCase {
for (int j = 0; j < iterations; j++) {
BaseUtils.getMatch(page, pattern, true, "");
}
- return (System.currentTimeMillis() - start);
+ return System.currentTimeMillis() - start;
}
diff --git a/tests/src/cgeo/geocaching/test/mock/MockedCache.java b/tests/src/cgeo/geocaching/test/mock/MockedCache.java
index 352c34d..8517c81 100644
--- a/tests/src/cgeo/geocaching/test/mock/MockedCache.java
+++ b/tests/src/cgeo/geocaching/test/mock/MockedCache.java
@@ -70,7 +70,7 @@ public abstract class MockedCache implements ICache {
return BaseUtils.replaceWhitespace(buffer.toString());
} catch (IOException e) {
- e.printStackTrace();
+ Assert.fail(e.getMessage());
} finally {
IOUtils.closeQuietly(is);
IOUtils.closeQuietly(br);