aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/cgeo/geocaching/connector
diff options
context:
space:
mode:
authorMichael Keppler <bananeweizen@gmx.de>2013-12-25 21:33:20 +0100
committerMichael Keppler <bananeweizen@gmx.de>2013-12-25 21:33:20 +0100
commit62f7a80ad800a8c650e8c3547248fa5453080004 (patch)
treed5d8ab3dddee764797beb317459cd289aa402443 /tests/src/cgeo/geocaching/connector
parent8767705910606ef4a82a0dbd62be3a09ba5615ac (diff)
downloadcgeo-62f7a80ad800a8c650e8c3547248fa5453080004.zip
cgeo-62f7a80ad800a8c650e8c3547248fa5453080004.tar.gz
cgeo-62f7a80ad800a8c650e8c3547248fa5453080004.tar.bz2
findbugs: prohibit access to internal collections
Diffstat (limited to 'tests/src/cgeo/geocaching/connector')
-rw-r--r--tests/src/cgeo/geocaching/connector/ConnectorFactoryTest.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/src/cgeo/geocaching/connector/ConnectorFactoryTest.java b/tests/src/cgeo/geocaching/connector/ConnectorFactoryTest.java
index ca396e1..e41e316 100644
--- a/tests/src/cgeo/geocaching/connector/ConnectorFactoryTest.java
+++ b/tests/src/cgeo/geocaching/connector/ConnectorFactoryTest.java
@@ -5,12 +5,14 @@ import cgeo.geocaching.connector.oc.OCConnector;
import cgeo.geocaching.test.AbstractResourceInstrumentationTestCase;
import cgeo.geocaching.test.mock.GC1ZXX2;
+import java.util.Collection;
+
public class ConnectorFactoryTest extends AbstractResourceInstrumentationTestCase {
public static void testGetConnectors() {
- final IConnector[] connectors = ConnectorFactory.getConnectors();
+ final Collection<IConnector> connectors = ConnectorFactory.getConnectors();
assertNotNull(connectors);
- assertTrue(connectors.length > 0); // unknown connector must exist
+ assertFalse(connectors.isEmpty()); // unknown connector must exist
}
public static void testCanHandle() {