Repository: activemq-artemis Updated Branches: refs/heads/master e202240cc -> d2539e516
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/7c275cdb/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/security/LDAPSecurityTest.java ---------------------------------------------------------------------- diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/security/LDAPSecurityTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/security/LDAPSecurityTest.java index 41f6ab9..166f4cf 100644 --- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/security/LDAPSecurityTest.java +++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/security/LDAPSecurityTest.java @@ -97,10 +97,9 @@ public class LDAPSecurityTest extends AbstractLdapTestUnit { testDir = temporaryFolder.getRoot().getAbsolutePath(); } - @SuppressWarnings("unchecked") @Test public void testRunning() throws Exception { - Hashtable env = new Hashtable(); + Hashtable<String, String> env = new Hashtable<>(); env.put(Context.PROVIDER_URL, "ldap://localhost:1024"); env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory"); env.put(Context.SECURITY_AUTHENTICATION, "simple"); @@ -108,12 +107,12 @@ public class LDAPSecurityTest extends AbstractLdapTestUnit { env.put(Context.SECURITY_CREDENTIALS, CREDENTIALS); DirContext ctx = new InitialDirContext(env); - HashSet set = new HashSet(); + HashSet<String> set = new HashSet<>(); - NamingEnumeration list = ctx.list("ou=system"); + NamingEnumeration<NameClassPair> list = ctx.list("ou=system"); while (list.hasMore()) { - NameClassPair ncp = (NameClassPair) list.next(); + NameClassPair ncp = list.next(); set.add(ncp.getName()); } http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/7c275cdb/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/security/LegacyLDAPSecuritySettingPluginListenerTest.java ---------------------------------------------------------------------- diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/security/LegacyLDAPSecuritySettingPluginListenerTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/security/LegacyLDAPSecuritySettingPluginListenerTest.java index 8f237ab..0127b79 100644 --- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/security/LegacyLDAPSecuritySettingPluginListenerTest.java +++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/security/LegacyLDAPSecuritySettingPluginListenerTest.java @@ -102,17 +102,16 @@ public class LegacyLDAPSecuritySettingPluginListenerTest extends AbstractLdapTes testDir = temporaryFolder.getRoot().getAbsolutePath(); } - @SuppressWarnings("unchecked") @Test public void testRunning() throws Exception { DirContext ctx = getContext(); - HashSet set = new HashSet(); + HashSet<String> set = new HashSet<>(); - NamingEnumeration list = ctx.list("ou=system"); + NamingEnumeration<NameClassPair> list = ctx.list("ou=system"); while (list.hasMore()) { - NameClassPair ncp = (NameClassPair) list.next(); + NameClassPair ncp = list.next(); set.add(ncp.getName()); } @@ -124,7 +123,7 @@ public class LegacyLDAPSecuritySettingPluginListenerTest extends AbstractLdapTes } private DirContext getContext() throws NamingException { - Hashtable env = new Hashtable(); + Hashtable<String, String> env = new Hashtable<>(); env.put(Context.PROVIDER_URL, "ldap://localhost:1024"); env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory"); env.put(Context.SECURITY_AUTHENTICATION, "simple"); http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/7c275cdb/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/security/LegacyLDAPSecuritySettingPluginTest.java ---------------------------------------------------------------------- diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/security/LegacyLDAPSecuritySettingPluginTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/security/LegacyLDAPSecuritySettingPluginTest.java index 672d4c9..ed899a9 100644 --- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/security/LegacyLDAPSecuritySettingPluginTest.java +++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/security/LegacyLDAPSecuritySettingPluginTest.java @@ -96,10 +96,9 @@ public class LegacyLDAPSecuritySettingPluginTest extends AbstractLdapTestUnit { testDir = temporaryFolder.getRoot().getAbsolutePath(); } - @SuppressWarnings("unchecked") @Test public void testRunning() throws Exception { - Hashtable env = new Hashtable(); + Hashtable<String, String> env = new Hashtable<>(); env.put(Context.PROVIDER_URL, "ldap://localhost:1024"); env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory"); env.put(Context.SECURITY_AUTHENTICATION, "simple"); @@ -107,12 +106,12 @@ public class LegacyLDAPSecuritySettingPluginTest extends AbstractLdapTestUnit { env.put(Context.SECURITY_CREDENTIALS, CREDENTIALS); DirContext ctx = new InitialDirContext(env); - HashSet set = new HashSet(); + HashSet<String> set = new HashSet<>(); - NamingEnumeration list = ctx.list("ou=system"); + NamingEnumeration<NameClassPair> list = ctx.list("ou=system"); while (list.hasMore()) { - NameClassPair ncp = (NameClassPair) list.next(); + NameClassPair ncp = list.next(); set.add(ncp.getName()); } http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/7c275cdb/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/server/ConnectionLimitTest.java ---------------------------------------------------------------------- diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/server/ConnectionLimitTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/server/ConnectionLimitTest.java index 67c478c..f2a59be 100644 --- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/server/ConnectionLimitTest.java +++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/server/ConnectionLimitTest.java @@ -42,10 +42,10 @@ public class ConnectionLimitTest extends ActiveMQTestBase { public void setUp() throws Exception { super.setUp(); - Map nettyParams = new HashMap(); + Map<String, Object> nettyParams = new HashMap<>(); nettyParams.put(TransportConstants.CONNECTIONS_ALLOWED, 1); - Map invmParams = new HashMap(); + Map<String, Object> invmParams = new HashMap<>(); invmParams.put(org.apache.activemq.artemis.core.remoting.impl.invm.TransportConstants.CONNECTIONS_ALLOWED, 1); Configuration configuration = createBasicConfig().addAcceptorConfiguration(new TransportConfiguration(NETTY_ACCEPTOR_FACTORY, nettyParams)).addAcceptorConfiguration(new TransportConfiguration(INVM_ACCEPTOR_FACTORY, invmParams)); http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/7c275cdb/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/StompTestBase.java ---------------------------------------------------------------------- diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/StompTestBase.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/StompTestBase.java index 3c42b3d..4e024ed 100644 --- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/StompTestBase.java +++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/stomp/StompTestBase.java @@ -98,7 +98,7 @@ public abstract class StompTestBase extends ActiveMQTestBase { private Channel channel; - private BlockingQueue priorityQueue; + private BlockingQueue<String> priorityQueue; private EventLoopGroup group; @@ -108,7 +108,7 @@ public abstract class StompTestBase extends ActiveMQTestBase { @Before public void setUp() throws Exception { super.setUp(); - priorityQueue = new ArrayBlockingQueue(1000); + priorityQueue = new ArrayBlockingQueue<>(1000); if (autoCreateServer) { server = createServer(); addServer(server.getActiveMQServer()); @@ -271,7 +271,7 @@ public abstract class StompTestBase extends ActiveMQTestBase { } public String receiveFrame(long timeOut) throws Exception { - String msg = (String) priorityQueue.poll(timeOut, TimeUnit.MILLISECONDS); + String msg = priorityQueue.poll(timeOut, TimeUnit.MILLISECONDS); return msg; } http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/7c275cdb/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/message/SimpleJMSMapMessage.java ---------------------------------------------------------------------- diff --git a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/message/SimpleJMSMapMessage.java b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/message/SimpleJMSMapMessage.java index f216420..5176d0a 100644 --- a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/message/SimpleJMSMapMessage.java +++ b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/message/SimpleJMSMapMessage.java @@ -31,7 +31,7 @@ public class SimpleJMSMapMessage extends SimpleJMSMessage implements MapMessage // Attributes ---------------------------------------------------- - protected Map content; + protected Map<String, Object> content; protected boolean bodyReadOnly = false; @@ -40,7 +40,7 @@ public class SimpleJMSMapMessage extends SimpleJMSMessage implements MapMessage // Constructors -------------------------------------------------- public SimpleJMSMapMessage() { - content = new HashMap(); + content = new HashMap<>(); } // MapMessage implementation ------------------------------------- @@ -472,7 +472,7 @@ public class SimpleJMSMapMessage extends SimpleJMSMessage implements MapMessage @Override public Enumeration getMapNames() throws JMSException { - return Collections.enumeration(new HashMap(content).keySet()); + return Collections.enumeration(new HashMap<>(content).keySet()); } http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/7c275cdb/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/tools/container/InVMContext.java ---------------------------------------------------------------------- diff --git a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/tools/container/InVMContext.java b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/tools/container/InVMContext.java index 7fa6faf..d2fe70a 100644 --- a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/tools/container/InVMContext.java +++ b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/tools/container/InVMContext.java @@ -29,6 +29,7 @@ import javax.naming.Binding; import javax.naming.Context; import javax.naming.Name; import javax.naming.NameAlreadyBoundException; +import javax.naming.NameClassPair; import javax.naming.NameNotFoundException; import javax.naming.NameParser; import javax.naming.NamingEnumeration; @@ -152,17 +153,17 @@ public class InVMContext implements Context, Serializable { } @Override - public NamingEnumeration list(final Name name) throws NamingException { + public NamingEnumeration<NameClassPair> list(final Name name) throws NamingException { throw new UnsupportedOperationException(); } @Override - public NamingEnumeration list(final String name) throws NamingException { + public NamingEnumeration<NameClassPair> list(final String name) throws NamingException { throw new UnsupportedOperationException(); } @Override - public NamingEnumeration listBindings(final Name name) throws NamingException { + public NamingEnumeration<Binding> listBindings(final Name name) throws NamingException { throw new UnsupportedOperationException(); } http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/7c275cdb/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/tools/container/InVMInitialContextFactory.java ---------------------------------------------------------------------- diff --git a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/tools/container/InVMInitialContextFactory.java b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/tools/container/InVMInitialContextFactory.java index 76bc649..b68f667 100644 --- a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/tools/container/InVMInitialContextFactory.java +++ b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/tools/container/InVMInitialContextFactory.java @@ -32,7 +32,7 @@ public class InVMInitialContextFactory implements InitialContextFactory { // Static -------------------------------------------------------- - private static Map initialContexts; + private static Map<Integer, Context> initialContexts; static { InVMInitialContextFactory.reset(); @@ -59,7 +59,7 @@ public class InVMInitialContextFactory implements InitialContextFactory { // Public -------------------------------------------------------- @Override - public Context getInitialContext(final Hashtable environment) throws NamingException { + public Context getInitialContext(final Hashtable<?, ?> environment) throws NamingException { // try first in the environment passed as argument ... String s = (String) environment.get(Constants.SERVER_INDEX_PROPERTY_NAME); @@ -107,7 +107,7 @@ public class InVMInitialContextFactory implements InitialContextFactory { } public static void reset() { - InVMInitialContextFactory.initialContexts = new HashMap(); + InVMInitialContextFactory.initialContexts = new HashMap<>(); } // Package protected --------------------------------------------- http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/7c275cdb/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/tools/container/InVMInitialContextFactoryBuilder.java ---------------------------------------------------------------------- diff --git a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/tools/container/InVMInitialContextFactoryBuilder.java b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/tools/container/InVMInitialContextFactoryBuilder.java index 66eba9f..21d5c2f 100644 --- a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/tools/container/InVMInitialContextFactoryBuilder.java +++ b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/tools/container/InVMInitialContextFactoryBuilder.java @@ -41,7 +41,7 @@ public class InVMInitialContextFactoryBuilder implements InitialContextFactoryBu // InitialContextFactoryBuilder implementation -------------------------------------------------- @Override - public InitialContextFactory createInitialContextFactory(final Hashtable environment) throws NamingException { + public InitialContextFactory createInitialContextFactory(final Hashtable<?, ?> environment) throws NamingException { InitialContextFactory icf = null; http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/7c275cdb/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/tools/container/NonSerializableFactory.java ---------------------------------------------------------------------- diff --git a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/tools/container/NonSerializableFactory.java b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/tools/container/NonSerializableFactory.java index ee67b63..04c7e18 100644 --- a/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/tools/container/NonSerializableFactory.java +++ b/tests/jms-tests/src/test/java/org/apache/activemq/artemis/jms/tests/tools/container/NonSerializableFactory.java @@ -89,7 +89,7 @@ public final class NonSerializableFactory implements ObjectFactory { public Object getObjectInstance(final Object obj, final Name name, final Context nameCtx, - final Hashtable env) throws Exception { + final Hashtable<?, ?> env) throws Exception { Reference ref = (Reference) obj; RefAddr addr = ref.get("nns"); String key = (String) addr.getContent(); http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/7c275cdb/tests/joram-tests/src/test/java/org/objectweb/jtests/jms/conform/message/MessageTypeTest.java ---------------------------------------------------------------------- diff --git a/tests/joram-tests/src/test/java/org/objectweb/jtests/jms/conform/message/MessageTypeTest.java b/tests/joram-tests/src/test/java/org/objectweb/jtests/jms/conform/message/MessageTypeTest.java index 3c4878a..56e1337 100644 --- a/tests/joram-tests/src/test/java/org/objectweb/jtests/jms/conform/message/MessageTypeTest.java +++ b/tests/joram-tests/src/test/java/org/objectweb/jtests/jms/conform/message/MessageTypeTest.java @@ -235,7 +235,7 @@ public class MessageTypeTest extends PTPTestCase { @Test public void testObjectMessage_2() { try { - Vector vector = new Vector(); + Vector<Object> vector = new Vector<>(); vector.add("pi"); vector.add(new Double(3.14159)); http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/7c275cdb/tests/joram-tests/src/test/java/org/objectweb/jtests/jms/conform/message/headers/MessageHeaderTest.java ---------------------------------------------------------------------- diff --git a/tests/joram-tests/src/test/java/org/objectweb/jtests/jms/conform/message/headers/MessageHeaderTest.java b/tests/joram-tests/src/test/java/org/objectweb/jtests/jms/conform/message/headers/MessageHeaderTest.java index 1d051eb..559827f 100644 --- a/tests/joram-tests/src/test/java/org/objectweb/jtests/jms/conform/message/headers/MessageHeaderTest.java +++ b/tests/joram-tests/src/test/java/org/objectweb/jtests/jms/conform/message/headers/MessageHeaderTest.java @@ -171,7 +171,7 @@ public class MessageHeaderTest extends PTPTestCase { try { admin.createQueue("anotherQueue"); - Hashtable props = new Hashtable<>(); + Hashtable<String, String> props = new Hashtable<>(); props.put(Context.INITIAL_CONTEXT_FACTORY, ActiveMQInitialContextFactory.class.getName()); props.put("queue.anotherQueue", "anotherQueue"); http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/7c275cdb/tests/joram-tests/src/test/java/org/objectweb/jtests/jms/framework/PTPTestCase.java ---------------------------------------------------------------------- diff --git a/tests/joram-tests/src/test/java/org/objectweb/jtests/jms/framework/PTPTestCase.java b/tests/joram-tests/src/test/java/org/objectweb/jtests/jms/framework/PTPTestCase.java index c4ac06d..833e475 100644 --- a/tests/joram-tests/src/test/java/org/objectweb/jtests/jms/framework/PTPTestCase.java +++ b/tests/joram-tests/src/test/java/org/objectweb/jtests/jms/framework/PTPTestCase.java @@ -115,7 +115,7 @@ public abstract class PTPTestCase extends JMSTestCase { admin.createQueueConnectionFactory(PTPTestCase.QCF_NAME); admin.createQueue(PTPTestCase.QUEUE_NAME); - Hashtable props = new Hashtable<>(); + Hashtable<String, String> props = new Hashtable<>(); props.put(Context.INITIAL_CONTEXT_FACTORY, ActiveMQInitialContextFactory.class.getCanonicalName()); props.put("connectionFactory." + PTPTestCase.QCF_NAME, "tcp://127.0.0.1:61616?type=QUEUE_CF"); props.put("queue." + PTPTestCase.QUEUE_NAME, PTPTestCase.QUEUE_NAME); http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/7c275cdb/tests/joram-tests/src/test/java/org/objectweb/jtests/jms/framework/PubSubTestCase.java ---------------------------------------------------------------------- diff --git a/tests/joram-tests/src/test/java/org/objectweb/jtests/jms/framework/PubSubTestCase.java b/tests/joram-tests/src/test/java/org/objectweb/jtests/jms/framework/PubSubTestCase.java index d606e23..ab6c4d8 100644 --- a/tests/joram-tests/src/test/java/org/objectweb/jtests/jms/framework/PubSubTestCase.java +++ b/tests/joram-tests/src/test/java/org/objectweb/jtests/jms/framework/PubSubTestCase.java @@ -115,7 +115,7 @@ public abstract class PubSubTestCase extends JMSTestCase { admin.createTopicConnectionFactory(PubSubTestCase.TCF_NAME); admin.createTopic(PubSubTestCase.TOPIC_NAME); - Hashtable props = new Hashtable<>(); + Hashtable<String, String> props = new Hashtable<>(); props.put(Context.INITIAL_CONTEXT_FACTORY, ActiveMQInitialContextFactory.class.getCanonicalName()); props.put("connectionFactory." + PubSubTestCase.TCF_NAME, "tcp://127.0.0.1:61616?type=TOPIC_CF"); props.put("topic." + PubSubTestCase.TOPIC_NAME, PubSubTestCase.TOPIC_NAME); http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/7c275cdb/tests/joram-tests/src/test/java/org/objectweb/jtests/jms/framework/UnifiedTestCase.java ---------------------------------------------------------------------- diff --git a/tests/joram-tests/src/test/java/org/objectweb/jtests/jms/framework/UnifiedTestCase.java b/tests/joram-tests/src/test/java/org/objectweb/jtests/jms/framework/UnifiedTestCase.java index 39abba5..367cfec 100644 --- a/tests/joram-tests/src/test/java/org/objectweb/jtests/jms/framework/UnifiedTestCase.java +++ b/tests/joram-tests/src/test/java/org/objectweb/jtests/jms/framework/UnifiedTestCase.java @@ -165,7 +165,7 @@ public abstract class UnifiedTestCase extends JMSTestCase { admin.createQueue(UnifiedTestCase.QUEUE_NAME); admin.createTopic(UnifiedTestCase.TOPIC_NAME); - Hashtable props = new Hashtable<>(); + Hashtable<String, String> props = new Hashtable<>(); props.put(Context.INITIAL_CONTEXT_FACTORY, ActiveMQInitialContextFactory.class.getCanonicalName()); props.put("connectionFactory." + UnifiedTestCase.CF_NAME, "tcp://127.0.0.1:61616"); props.put("connectionFactory." + UnifiedTestCase.QCF_NAME, "tcp://127.0.0.1:61616?type=QUEUE_CF"); http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/7c275cdb/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/journal/impl/SequentialFileFactoryTestBase.java ---------------------------------------------------------------------- diff --git a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/journal/impl/SequentialFileFactoryTestBase.java b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/journal/impl/SequentialFileFactoryTestBase.java index 5ec0d07..a3da5fa 100644 --- a/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/journal/impl/SequentialFileFactoryTestBase.java +++ b/tests/unit-tests/src/test/java/org/apache/activemq/artemis/tests/unit/core/journal/impl/SequentialFileFactoryTestBase.java @@ -66,7 +66,7 @@ public abstract class SequentialFileFactoryTestBase extends ActiveMQTestBase { @Test public void listFilesOnNonExistentFolder() throws Exception { SequentialFileFactory fileFactory = createFactory("./target/dontexist"); - List list = fileFactory.listFiles("tmp"); + List<String> list = fileFactory.listFiles("tmp"); Assert.assertNotNull(list); Assert.assertEquals(0, list.size()); }
