aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/cgeo/geocaching/connector/ConnectorFactoryTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/cgeo/geocaching/connector/ConnectorFactoryTest.java')
-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() {