From 62f7a80ad800a8c650e8c3547248fa5453080004 Mon Sep 17 00:00:00 2001 From: Michael Keppler Date: Wed, 25 Dec 2013 21:33:20 +0100 Subject: findbugs: prohibit access to internal collections --- tests/src/cgeo/geocaching/connector/ConnectorFactoryTest.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests') 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 connectors = ConnectorFactory.getConnectors(); assertNotNull(connectors); - assertTrue(connectors.length > 0); // unknown connector must exist + assertFalse(connectors.isEmpty()); // unknown connector must exist } public static void testCanHandle() { -- cgit v1.1