From dc1c269b3633e59e7199e7c87303ead2cc1b2ae5 Mon Sep 17 00:00:00 2001 From: Matteo Baccan Date: Mon, 14 Feb 2022 10:33:13 +0100 Subject: [PATCH] Fixed a typo error "unkown" -> "unknown" --- .../spi/core/security/jaas/SCRAMPropertiesLoginModule.java | 2 +- .../artemis/tests/integration/amqp/AmqpNoHearbeatsTest.java | 2 +- .../crossprotocol/ProtocolsMessageLoadBalancingTest.java | 2 +- .../java/org/apache/activemq/artemis/tests/util/CFUtil.java | 2 +- .../tests/smoke/bridgeTransfer/BridgeTransferingTest.java | 2 +- .../artemis/tests/smoke/logging/AuditLoggerTestBase.java | 2 +- .../activemq/artemis/tests/smoke/mmfactory/MMSFactoryTest.java | 2 +- .../artemis/tests/smoke/replicationflow/SoakPagingTest.java | 2 +- .../activemq/artemis/tests/smoke/transfer/TransferTest.java | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/SCRAMPropertiesLoginModule.java b/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/SCRAMPropertiesLoginModule.java index 7f52f58b35..ec3eb9bc38 100644 --- a/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/SCRAMPropertiesLoginModule.java +++ b/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/SCRAMPropertiesLoginModule.java @@ -225,7 +225,7 @@ public class SCRAMPropertiesLoginModule extends PropertiesLoader implements Audi SCRAM scram = Arrays.stream(SCRAM.values()) .filter(v -> v.getName().equals(type)) .findFirst() - .orElseThrow(() -> new IllegalArgumentException("unkown type " + type + + .orElseThrow(() -> new IllegalArgumentException("unknown type " + type + ", supported ones are " + getSupportedTypes())); return scram; } diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/amqp/AmqpNoHearbeatsTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/amqp/AmqpNoHearbeatsTest.java index 9f155cbd31..104ff2fb5f 100644 --- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/amqp/AmqpNoHearbeatsTest.java +++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/amqp/AmqpNoHearbeatsTest.java @@ -152,7 +152,7 @@ public class AmqpNoHearbeatsTest extends AmqpClientTestSupport { System.exit(-1); } } else { - System.err.println("Test " + arg[0] + " unkown"); + System.err.println("Test " + arg[0] + " unknown"); System.exit(-2); } } diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/crossprotocol/ProtocolsMessageLoadBalancingTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/crossprotocol/ProtocolsMessageLoadBalancingTest.java index a44fe41a5b..5f4d2d8d73 100644 --- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/crossprotocol/ProtocolsMessageLoadBalancingTest.java +++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/crossprotocol/ProtocolsMessageLoadBalancingTest.java @@ -123,7 +123,7 @@ public class ProtocolsMessageLoadBalancingTest extends ClusterTestBase { } else if (protocol.equals("CORE")) { return new ActiveMQConnectionFactory("tcp://localhost:" + (61616 + node)); } else { - Assert.fail("Protocol " + protocol + " unkown"); + Assert.fail("Protocol " + protocol + " unknown"); return null; } } diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/util/CFUtil.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/util/CFUtil.java index 923ddb7a11..bd450d0395 100644 --- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/util/CFUtil.java +++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/util/CFUtil.java @@ -36,7 +36,7 @@ public class CFUtil { } else if (protocol.toUpperCase().equals("CORE") || protocol.toUpperCase().equals("ARTEMIS")) { return new org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory(uri); } else { - throw new IllegalStateException("Unkown:" + protocol); + throw new IllegalStateException("Unknown:" + protocol); } } diff --git a/tests/smoke-tests/src/test/java/org/apache/activemq/artemis/tests/smoke/bridgeTransfer/BridgeTransferingTest.java b/tests/smoke-tests/src/test/java/org/apache/activemq/artemis/tests/smoke/bridgeTransfer/BridgeTransferingTest.java index 5b58857b8e..61a55c7e8c 100644 --- a/tests/smoke-tests/src/test/java/org/apache/activemq/artemis/tests/smoke/bridgeTransfer/BridgeTransferingTest.java +++ b/tests/smoke-tests/src/test/java/org/apache/activemq/artemis/tests/smoke/bridgeTransfer/BridgeTransferingTest.java @@ -87,7 +87,7 @@ public class BridgeTransferingTest extends SmokeTestBase { } else if (protocol.toUpperCase().equals("CORE") || protocol.toUpperCase().equals("ARTEMIS")) { return new org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory(uri); } else { - throw new IllegalStateException("Unkown:" + protocol); + throw new IllegalStateException("Unknown:" + protocol); } } diff --git a/tests/smoke-tests/src/test/java/org/apache/activemq/artemis/tests/smoke/logging/AuditLoggerTestBase.java b/tests/smoke-tests/src/test/java/org/apache/activemq/artemis/tests/smoke/logging/AuditLoggerTestBase.java index 9c346d3ac3..6367d0ef3d 100644 --- a/tests/smoke-tests/src/test/java/org/apache/activemq/artemis/tests/smoke/logging/AuditLoggerTestBase.java +++ b/tests/smoke-tests/src/test/java/org/apache/activemq/artemis/tests/smoke/logging/AuditLoggerTestBase.java @@ -72,7 +72,7 @@ public abstract class AuditLoggerTestBase extends SmokeTestBase { } else if (protocol.toUpperCase().equals("CORE") || protocol.toUpperCase().equals("ARTEMIS")) { return new org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory(uri); } else { - throw new IllegalStateException("Unkown:" + protocol); + throw new IllegalStateException("Unknown:" + protocol); } } } diff --git a/tests/smoke-tests/src/test/java/org/apache/activemq/artemis/tests/smoke/mmfactory/MMSFactoryTest.java b/tests/smoke-tests/src/test/java/org/apache/activemq/artemis/tests/smoke/mmfactory/MMSFactoryTest.java index 95eec1a305..9155926a88 100644 --- a/tests/smoke-tests/src/test/java/org/apache/activemq/artemis/tests/smoke/mmfactory/MMSFactoryTest.java +++ b/tests/smoke-tests/src/test/java/org/apache/activemq/artemis/tests/smoke/mmfactory/MMSFactoryTest.java @@ -119,7 +119,7 @@ public class MMSFactoryTest extends SmokeTestBase { } else if (protocol.toUpperCase().equals("CORE") || protocol.toUpperCase().equals("ARTEMIS")) { return new org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory(uri); } else { - throw new IllegalStateException("Unkown:" + protocol); + throw new IllegalStateException("Unknown:" + protocol); } } diff --git a/tests/smoke-tests/src/test/java/org/apache/activemq/artemis/tests/smoke/replicationflow/SoakPagingTest.java b/tests/smoke-tests/src/test/java/org/apache/activemq/artemis/tests/smoke/replicationflow/SoakPagingTest.java index 2c836ed9fb..2294d45253 100644 --- a/tests/smoke-tests/src/test/java/org/apache/activemq/artemis/tests/smoke/replicationflow/SoakPagingTest.java +++ b/tests/smoke-tests/src/test/java/org/apache/activemq/artemis/tests/smoke/replicationflow/SoakPagingTest.java @@ -128,7 +128,7 @@ public class SoakPagingTest extends SmokeTestBase { } else if (protocol.toUpperCase().equals("CORE") || protocol.toUpperCase().equals("ARTEMIS")) { return new org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory(uri); } else { - throw new IllegalStateException("Unkown:" + protocol); + throw new IllegalStateException("Unknown:" + protocol); } } diff --git a/tests/smoke-tests/src/test/java/org/apache/activemq/artemis/tests/smoke/transfer/TransferTest.java b/tests/smoke-tests/src/test/java/org/apache/activemq/artemis/tests/smoke/transfer/TransferTest.java index 1d64bfd457..292fae0f59 100644 --- a/tests/smoke-tests/src/test/java/org/apache/activemq/artemis/tests/smoke/transfer/TransferTest.java +++ b/tests/smoke-tests/src/test/java/org/apache/activemq/artemis/tests/smoke/transfer/TransferTest.java @@ -89,7 +89,7 @@ public class TransferTest extends SmokeTestBase { } else if (protocol.toUpperCase().equals("CORE") || protocol.toUpperCase().equals("ARTEMIS")) { return new org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory(uri); } else { - throw new IllegalStateException("Unkown:" + protocol); + throw new IllegalStateException("Unknown:" + protocol); } }