diff options
author | Bananeweizen <bananeweizen@gmx.de> | 2013-04-07 14:45:42 +0200 |
---|---|---|
committer | Bananeweizen <bananeweizen@gmx.de> | 2013-04-07 14:45:42 +0200 |
commit | 97b10e667d2fdfd9abb56be8e5bfaee259e27f65 (patch) | |
tree | d204a06ed665b2cd9ddba70db2995d0fd16a7444 /tests/src/cgeo | |
parent | 154d9869c3972939cff5d95cb2b2343dc5e76309 (diff) | |
download | cgeo-97b10e667d2fdfd9abb56be8e5bfaee259e27f65.zip cgeo-97b10e667d2fdfd9abb56be8e5bfaee259e27f65.tar.gz cgeo-97b10e667d2fdfd9abb56be8e5bfaee259e27f65.tar.bz2 |
fix #2640: Filter out stored caches
Diffstat (limited to 'tests/src/cgeo')
-rw-r--r-- | tests/src/cgeo/geocaching/filter/StateStoredFilterTest.java | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/src/cgeo/geocaching/filter/StateStoredFilterTest.java b/tests/src/cgeo/geocaching/filter/StateStoredFilterTest.java new file mode 100644 index 0000000..2f65a6b --- /dev/null +++ b/tests/src/cgeo/geocaching/filter/StateStoredFilterTest.java @@ -0,0 +1,27 @@ +package cgeo.geocaching.filter; + +import cgeo.CGeoTestCase; +import cgeo.geocaching.Geocache; +import cgeo.geocaching.filter.StateFilter.StateNotStoredFilter; +import cgeo.geocaching.filter.StateFilter.StateStoredFilter; + +public class StateStoredFilterTest extends CGeoTestCase { + + private StateFilter.StateStoredFilter storedFilter; + private StateFilter.StateNotStoredFilter notStoredFilter; + private Geocache cache; + + @Override + protected void setUp() throws Exception { + super.setUp(); + storedFilter = new StateStoredFilter(); + notStoredFilter = new StateNotStoredFilter(); + cache = new Geocache(); + } + + public void testAccepts() { + assertFalse(storedFilter.accepts(cache)); + assertTrue(notStoredFilter.accepts(cache)); + } + +} |