diff --git a/sshd-core/src/main/java/org/apache/sshd/common/io/BuiltinIoServiceFactoryFactories.java b/sshd-core/src/main/java/org/apache/sshd/common/io/BuiltinIoServiceFactoryFactories.java index 80fd00e8d..04e8451ac 100644 --- a/sshd-core/src/main/java/org/apache/sshd/common/io/BuiltinIoServiceFactoryFactories.java +++ b/sshd-core/src/main/java/org/apache/sshd/common/io/BuiltinIoServiceFactoryFactories.java @@ -34,7 +34,7 @@ */ public enum BuiltinIoServiceFactoryFactories implements NamedFactory, OptionalFeature { NIO2(Nio2ServiceFactoryFactory.class), - MINA("org.apache.sshd.common.io.mina.MinaServiceFactoryFactory"), + MINA("org.apache.sshd.mina.MinaServiceFactoryFactory"), NETTY("org.apache.sshd.netty.NettyIoServiceFactoryFactory"); public static final Set VALUES diff --git a/sshd-core/src/test/java/org/apache/sshd/common/io/BuiltinIoServiceFactoryFactoriesTest.java b/sshd-core/src/test/java/org/apache/sshd/common/io/BuiltinIoServiceFactoryFactoriesTest.java index 411159ed7..43fc0b357 100644 --- a/sshd-core/src/test/java/org/apache/sshd/common/io/BuiltinIoServiceFactoryFactoriesTest.java +++ b/sshd-core/src/test/java/org/apache/sshd/common/io/BuiltinIoServiceFactoryFactoriesTest.java @@ -68,4 +68,19 @@ public void testFromFactoryClass() { assertSame(clazz.getSimpleName(), expected, BuiltinIoServiceFactoryFactories.fromFactoryClass(clazz)); } } + + @Test + public void testClassNames() { + IoServiceFactoryFactory ioServiceProvider = getIoServiceProvider(); + Class providerClass = ioServiceProvider.getClass(); + String providerClassName = providerClass.getName(); + boolean found = false; + for (BuiltinIoServiceFactoryFactories builtin : BuiltinIoServiceFactoryFactories.VALUES) { + if (providerClassName.equals(builtin.getFactoryClassName())) { + found = true; + break; + } + } + assertTrue("No BuiltinIoServiceFactoryFactories match for class name " + providerClassName, found); + } } diff --git a/sshd-mina/pom.xml b/sshd-mina/pom.xml index fcdb73fd0..8630d101d 100644 --- a/sshd-mina/pom.xml +++ b/sshd-mina/pom.xml @@ -124,6 +124,8 @@ **/StrictKexInteroperabilityTest.java **/OpenSSHCertificateTest.java + + >**/DefaultIoServiceFactoryFactoryTest.java org.apache.sshd.util.test.NoIoTestCase