Fixed a typo error "unkown" -> "unknown"

This commit is contained in:
Matteo Baccan 2022-02-14 10:33:13 +01:00 committed by clebertsuconic
parent f0a96628b4
commit dc1c269b36
9 changed files with 9 additions and 9 deletions

View File

@ -225,7 +225,7 @@ public class SCRAMPropertiesLoginModule extends PropertiesLoader implements Audi
SCRAM scram = Arrays.stream(SCRAM.values()) SCRAM scram = Arrays.stream(SCRAM.values())
.filter(v -> v.getName().equals(type)) .filter(v -> v.getName().equals(type))
.findFirst() .findFirst()
.orElseThrow(() -> new IllegalArgumentException("unkown type " + type + .orElseThrow(() -> new IllegalArgumentException("unknown type " + type +
", supported ones are " + getSupportedTypes())); ", supported ones are " + getSupportedTypes()));
return scram; return scram;
} }

View File

@ -152,7 +152,7 @@ public class AmqpNoHearbeatsTest extends AmqpClientTestSupport {
System.exit(-1); System.exit(-1);
} }
} else { } else {
System.err.println("Test " + arg[0] + " unkown"); System.err.println("Test " + arg[0] + " unknown");
System.exit(-2); System.exit(-2);
} }
} }

View File

@ -123,7 +123,7 @@ public class ProtocolsMessageLoadBalancingTest extends ClusterTestBase {
} else if (protocol.equals("CORE")) { } else if (protocol.equals("CORE")) {
return new ActiveMQConnectionFactory("tcp://localhost:" + (61616 + node)); return new ActiveMQConnectionFactory("tcp://localhost:" + (61616 + node));
} else { } else {
Assert.fail("Protocol " + protocol + " unkown"); Assert.fail("Protocol " + protocol + " unknown");
return null; return null;
} }
} }

View File

@ -36,7 +36,7 @@ public class CFUtil {
} else if (protocol.toUpperCase().equals("CORE") || protocol.toUpperCase().equals("ARTEMIS")) { } else if (protocol.toUpperCase().equals("CORE") || protocol.toUpperCase().equals("ARTEMIS")) {
return new org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory(uri); return new org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory(uri);
} else { } else {
throw new IllegalStateException("Unkown:" + protocol); throw new IllegalStateException("Unknown:" + protocol);
} }
} }

View File

@ -87,7 +87,7 @@ public class BridgeTransferingTest extends SmokeTestBase {
} else if (protocol.toUpperCase().equals("CORE") || protocol.toUpperCase().equals("ARTEMIS")) { } else if (protocol.toUpperCase().equals("CORE") || protocol.toUpperCase().equals("ARTEMIS")) {
return new org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory(uri); return new org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory(uri);
} else { } else {
throw new IllegalStateException("Unkown:" + protocol); throw new IllegalStateException("Unknown:" + protocol);
} }
} }

View File

@ -72,7 +72,7 @@ public abstract class AuditLoggerTestBase extends SmokeTestBase {
} else if (protocol.toUpperCase().equals("CORE") || protocol.toUpperCase().equals("ARTEMIS")) { } else if (protocol.toUpperCase().equals("CORE") || protocol.toUpperCase().equals("ARTEMIS")) {
return new org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory(uri); return new org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory(uri);
} else { } else {
throw new IllegalStateException("Unkown:" + protocol); throw new IllegalStateException("Unknown:" + protocol);
} }
} }
} }

View File

@ -119,7 +119,7 @@ public class MMSFactoryTest extends SmokeTestBase {
} else if (protocol.toUpperCase().equals("CORE") || protocol.toUpperCase().equals("ARTEMIS")) { } else if (protocol.toUpperCase().equals("CORE") || protocol.toUpperCase().equals("ARTEMIS")) {
return new org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory(uri); return new org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory(uri);
} else { } else {
throw new IllegalStateException("Unkown:" + protocol); throw new IllegalStateException("Unknown:" + protocol);
} }
} }

View File

@ -128,7 +128,7 @@ public class SoakPagingTest extends SmokeTestBase {
} else if (protocol.toUpperCase().equals("CORE") || protocol.toUpperCase().equals("ARTEMIS")) { } else if (protocol.toUpperCase().equals("CORE") || protocol.toUpperCase().equals("ARTEMIS")) {
return new org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory(uri); return new org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory(uri);
} else { } else {
throw new IllegalStateException("Unkown:" + protocol); throw new IllegalStateException("Unknown:" + protocol);
} }
} }

View File

@ -89,7 +89,7 @@ public class TransferTest extends SmokeTestBase {
} else if (protocol.toUpperCase().equals("CORE") || protocol.toUpperCase().equals("ARTEMIS")) { } else if (protocol.toUpperCase().equals("CORE") || protocol.toUpperCase().equals("ARTEMIS")) {
return new org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory(uri); return new org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory(uri);
} else { } else {
throw new IllegalStateException("Unkown:" + protocol); throw new IllegalStateException("Unknown:" + protocol);
} }
} }