Skip to content

Commit

Permalink
Fix typos in log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
pzygielo committed Feb 5, 2022
1 parent f4d082a commit 33f77af
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
* Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2022 Contributors to Eclipse Foundation. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
Expand Down Expand Up @@ -1704,7 +1705,7 @@ public void recoverAckTest() throws Fault {

// Create JMSContext with CLIENT_ACKNOWLEDGE
TestUtil.logMsg(
"Close JMSContext with CLIENT_ACKNOWLEDGE and create comsumer/producer");
"Close JMSContext with CLIENT_ACKNOWLEDGE and create consumer/producer");
context = cf.createContext(user, password, JMSContext.CLIENT_ACKNOWLEDGE);

// Create JMSConsumer from JMSContext
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
* Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2022 Contributors to Eclipse Foundation. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
Expand Down Expand Up @@ -1241,7 +1242,7 @@ public void createSharedDurableConsumerTest1() throws Fault {
durableSubscriptionName);

TestUtil
.logMsg("Try and receive a message from comsumer1 (should get NONE)");
.logMsg("Try and receive a message from consumer1 (should get NONE)");
actTextMessage = (TextMessage) consumer.receive(timeout);
if (actTextMessage != null) {
TestUtil.logErr("Consumer1 received a message (FAIL)");
Expand All @@ -1251,7 +1252,7 @@ public void createSharedDurableConsumerTest1() throws Fault {
}

TestUtil
.logMsg("Try and receive a message from comsumer2 (should get NONE)");
.logMsg("Try and receive a message from consumer2 (should get NONE)");
actTextMessage = (TextMessage) consumer2.receive(timeout);
if (actTextMessage != null) {
TestUtil.logErr("Consumer2 received a message (FAIL)");
Expand Down Expand Up @@ -1478,7 +1479,7 @@ public void createSharedDurableConsumerTest3() throws Fault {
durableSubscriptionName);

TestUtil
.logMsg("Try and receive a message from comsumer1 (should get NONE)");
.logMsg("Try and receive a message from consumer1 (should get NONE)");
actTextMessage = (TextMessage) consumer.receive(timeout);
if (actTextMessage != null) {
TestUtil.logErr("Consumer1 received a message (FAIL)");
Expand All @@ -1488,7 +1489,7 @@ public void createSharedDurableConsumerTest3() throws Fault {
}

TestUtil
.logMsg("Try and receive a message from comsumer2 (should get NONE)");
.logMsg("Try and receive a message from consumer2 (should get NONE)");
actTextMessage = (TextMessage) consumer2.receive(timeout);
if (actTextMessage != null) {
TestUtil.logErr("Consumer2 received a message (FAIL)");
Expand Down
9 changes: 5 additions & 4 deletions src/com/sun/ts/tests/jms/core20/sessiontests/Client.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
* Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2022 Contributors to Eclipse Foundation. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
Expand Down Expand Up @@ -1778,7 +1779,7 @@ public void createSharedDurableConsumerTopicTest1() throws Fault {
durableSubscriptionName);

TestUtil
.logMsg("Try and receive a message from comsumer1 (should get NONE)");
.logMsg("Try and receive a message from consumer1 (should get NONE)");
actTextMessage = (TextMessage) consumer.receive(timeout);
if (actTextMessage != null) {
TestUtil.logErr("Consumer1 received a message (FAIL)");
Expand All @@ -1788,7 +1789,7 @@ public void createSharedDurableConsumerTopicTest1() throws Fault {
}

TestUtil
.logMsg("Try and receive a message from comsumer2 (should get NONE)");
.logMsg("Try and receive a message from consumer2 (should get NONE)");
actTextMessage = (TextMessage) consumer2.receive(timeout);
if (actTextMessage != null) {
TestUtil.logErr("Consumer2 received a message (FAIL)");
Expand Down Expand Up @@ -2025,7 +2026,7 @@ public void createSharedDurableConsumerTopicTest3() throws Fault {
durableSubscriptionName);

TestUtil
.logMsg("Try and receive a message from comsumer1 (should get NONE)");
.logMsg("Try and receive a message from consumer1 (should get NONE)");
actTextMessage = (TextMessage) consumer.receive(timeout);
if (actTextMessage != null) {
TestUtil.logErr("Consumer1 received a message (FAIL)");
Expand All @@ -2035,7 +2036,7 @@ public void createSharedDurableConsumerTopicTest3() throws Fault {
}

TestUtil
.logMsg("Try and receive a message from comsumer2 (should get NONE)");
.logMsg("Try and receive a message from consumer2 (should get NONE)");
actTextMessage = (TextMessage) consumer2.receive(timeout);
if (actTextMessage != null) {
TestUtil.logErr("Consumer2 received a message (FAIL)");
Expand Down

0 comments on commit 33f77af

Please sign in to comment.