<NME> StateNonPremiumFilterTest.java
<BEF> ADDFILE
<MSG> fix #1999: Filter "Only non PM caches"
<DFF> @@ -0,0 +1,26 @@
+package cgeo.geocaching.filter;
+
+import cgeo.CGeoTestCase;
+import cgeo.geocaching.cgCache;
+import cgeo.geocaching.filter.StateFilter.StateNonPremiumFilter;
+
+public class StateNonPremiumFilterTest extends CGeoTestCase {
+
+    private StateFilter.StateNonPremiumFilter nonPremiumFilter;
+    private cgCache premiumCache;
+
+    @Override
+    protected void setUp() throws Exception {
+        super.setUp();
+
+        nonPremiumFilter = new StateNonPremiumFilter();
+        premiumCache = new cgCache();
+        premiumCache.setPremiumMembersOnly(true);
+    }
+
+    public void testAccepts() {
+        assertFalse(nonPremiumFilter.accepts(premiumCache));
+        assertTrue(nonPremiumFilter.accepts(new cgCache()));
+    }
+
+}

fix #1999: Filter "Only non PM caches"