Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Roldan Betancort2009-05-20 14:52:31 -0400
committerVictor Roldan Betancort2009-05-20 14:52:31 -0400
commita4a7bc418b553e0d1092caffd574787b592d4f90 (patch)
tree5a63fe81f96177d6f008836383a16b2f346ffc88 /plugins/org.eclipse.net4j.jms.tests
parente87578beb3393762ec4175a6ec8eb1a1aab9ee17 (diff)
downloadcdo-a4a7bc418b553e0d1092caffd574787b592d4f90.tar.gz
cdo-a4a7bc418b553e0d1092caffd574787b592d4f90.tar.xz
cdo-a4a7bc418b553e0d1092caffd574787b592d4f90.zip
[272193] [UI] Externalize Strings (Net4j)
https://bugs.eclipse.org/bugs/show_bug.cgi?id=272193
Diffstat (limited to 'plugins/org.eclipse.net4j.jms.tests')
-rw-r--r--plugins/org.eclipse.net4j.jms.tests/src/org/eclipse/net4j/jms/tests/JMSSeparatedTest.java24
-rw-r--r--plugins/org.eclipse.net4j.jms.tests/src/org/eclipse/net4j/jms/tests/JMSTest.java24
2 files changed, 24 insertions, 24 deletions
diff --git a/plugins/org.eclipse.net4j.jms.tests/src/org/eclipse/net4j/jms/tests/JMSSeparatedTest.java b/plugins/org.eclipse.net4j.jms.tests/src/org/eclipse/net4j/jms/tests/JMSSeparatedTest.java
index db72e24196..08100d24ca 100644
--- a/plugins/org.eclipse.net4j.jms.tests/src/org/eclipse/net4j/jms/tests/JMSSeparatedTest.java
+++ b/plugins/org.eclipse.net4j.jms.tests/src/org/eclipse/net4j/jms/tests/JMSSeparatedTest.java
@@ -50,8 +50,8 @@ public class JMSSeparatedTest
try
{
Context context = init();
- ConnectionFactory connectionFactory = (ConnectionFactory)context.lookup("net4j.jms.ConnectionFactory");
- Destination destination = (Destination)context.lookup("StockTopic");
+ ConnectionFactory connectionFactory = (ConnectionFactory)context.lookup("net4j.jms.ConnectionFactory"); //$NON-NLS-1$
+ Destination destination = (Destination)context.lookup("StockTopic"); //$NON-NLS-1$
Connection connection = connectionFactory.createConnection();
Session session = connection.createSession(true, 0);
@@ -59,15 +59,15 @@ public class JMSSeparatedTest
MessageProducer publisher = session.createProducer(destination);
MessageConsumer subscriber1 = session.createConsumer(destination);
MessageConsumer subscriber2 = session.createConsumer(destination);
- subscriber1.setMessageListener(new MessageLogger("subscriber1"));
- subscriber2.setMessageListener(new MessageLogger("subscriber2"));
+ subscriber1.setMessageListener(new MessageLogger("subscriber1")); //$NON-NLS-1$
+ subscriber2.setMessageListener(new MessageLogger("subscriber2")); //$NON-NLS-1$
connection.start();
- publisher.send(session.createObjectMessage("Message 1"));
- publisher.send(session.createObjectMessage("Message 2"));
- publisher.send(session.createObjectMessage("Message 3"));
- publisher.send(session.createObjectMessage("Message 4"));
+ publisher.send(session.createObjectMessage("Message 1")); //$NON-NLS-1$
+ publisher.send(session.createObjectMessage("Message 2")); //$NON-NLS-1$
+ publisher.send(session.createObjectMessage("Message 3")); //$NON-NLS-1$
+ publisher.send(session.createObjectMessage("Message 4")); //$NON-NLS-1$
session.commit();
}
@@ -109,11 +109,11 @@ public class JMSSeparatedTest
Net4jUtil.prepareContainer(clientContainer);
TCPUtil.prepareContainer(clientContainer);
- IConnector connector = TCPUtil.getConnector(clientContainer, "localhost");
+ IConnector connector = TCPUtil.getConnector(clientContainer, "localhost"); //$NON-NLS-1$
IJMSAdmin admin = JMSAdminUtil.createAdmin(connector);
- admin.createQueue("StockQueue");
- admin.createTopic("StockTopic");
+ admin.createQueue("StockQueue"); //$NON-NLS-1$
+ admin.createTopic("StockTopic"); //$NON-NLS-1$
return new JMSInitialContext(clientContainer);
}
@@ -135,7 +135,7 @@ public class JMSSeparatedTest
try
{
Object object = ((ObjectMessage)message).getObject();
- IOUtil.OUT().println("\n------> MESSAGE for " + name + ": " + object + "\n");
+ IOUtil.OUT().println("\n------> MESSAGE for " + name + ": " + object + "\n"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
message.acknowledge();
}
catch (JMSException ex)
diff --git a/plugins/org.eclipse.net4j.jms.tests/src/org/eclipse/net4j/jms/tests/JMSTest.java b/plugins/org.eclipse.net4j.jms.tests/src/org/eclipse/net4j/jms/tests/JMSTest.java
index f39c2bed94..af49184b3c 100644
--- a/plugins/org.eclipse.net4j.jms.tests/src/org/eclipse/net4j/jms/tests/JMSTest.java
+++ b/plugins/org.eclipse.net4j.jms.tests/src/org/eclipse/net4j/jms/tests/JMSTest.java
@@ -49,8 +49,8 @@ public class JMSTest
try
{
Context context = init();
- ConnectionFactory connectionFactory = (ConnectionFactory)context.lookup("net4j.jms.ConnectionFactory");
- Destination destination = (Destination)context.lookup("StockTopic");
+ ConnectionFactory connectionFactory = (ConnectionFactory)context.lookup("net4j.jms.ConnectionFactory"); //$NON-NLS-1$
+ Destination destination = (Destination)context.lookup("StockTopic"); //$NON-NLS-1$
Connection connection = connectionFactory.createConnection();
Session session = connection.createSession(true, 0);
@@ -58,15 +58,15 @@ public class JMSTest
MessageProducer publisher = session.createProducer(destination);
MessageConsumer subscriber1 = session.createConsumer(destination);
MessageConsumer subscriber2 = session.createConsumer(destination);
- subscriber1.setMessageListener(new MessageLogger("subscriber1"));
- subscriber2.setMessageListener(new MessageLogger("subscriber2"));
+ subscriber1.setMessageListener(new MessageLogger("subscriber1")); //$NON-NLS-1$
+ subscriber2.setMessageListener(new MessageLogger("subscriber2")); //$NON-NLS-1$
connection.start();
- publisher.send(session.createObjectMessage("Message 1"));
- publisher.send(session.createObjectMessage("Message 2"));
- publisher.send(session.createObjectMessage("Message 3"));
- publisher.send(session.createObjectMessage("Message 4"));
+ publisher.send(session.createObjectMessage("Message 1")); //$NON-NLS-1$
+ publisher.send(session.createObjectMessage("Message 2")); //$NON-NLS-1$
+ publisher.send(session.createObjectMessage("Message 3")); //$NON-NLS-1$
+ publisher.send(session.createObjectMessage("Message 4")); //$NON-NLS-1$
session.commit();
}
@@ -94,11 +94,11 @@ public class JMSTest
JMSServerUtil.prepareContainer(container);
TCPUtil.getAcceptor(container, null);
- IConnector connector = TCPUtil.getConnector(container, "localhost");
+ IConnector connector = TCPUtil.getConnector(container, "localhost"); //$NON-NLS-1$
IJMSAdmin admin = JMSAdminUtil.createAdmin(connector);
- admin.createQueue("StockQueue");
- admin.createTopic("StockTopic");
+ admin.createQueue("StockQueue"); //$NON-NLS-1$
+ admin.createTopic("StockTopic"); //$NON-NLS-1$
return new JMSInitialContext(container);
}
@@ -120,7 +120,7 @@ public class JMSTest
try
{
Object object = ((ObjectMessage)message).getObject();
- IOUtil.OUT().println("\n------> MESSAGE for " + name + ": " + object + "\n");
+ IOUtil.OUT().println("\n------> MESSAGE for " + name + ": " + object + "\n"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
message.acknowledge();
}
catch (JMSException ex)

Back to the top