Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
joram
joram
Commits
3f08faea
Commit
3f08faea
authored
Oct 05, 2017
by
afreyssin
Browse files
Minor changes.
parent
a4410fb6
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/src/joram/bridgerest/BridgeRestTest6.java
View file @
3f08faea
...
...
@@ -79,6 +79,9 @@ public class BridgeRestTest6 extends TestCase implements MessageListener {
AdminModule
.
executeXMLAdmin
(
"joramAdmin.xml"
);
else
admin
();
System
.
out
.
println
(
"admin config ok"
);
Thread
.
sleep
(
1000
);
test
();
}
catch
(
Throwable
exc
)
{
...
...
@@ -118,9 +121,7 @@ public class BridgeRestTest6 extends TestCase implements MessageListener {
Queue
distQueue
=
new
RestDistributionQueue
()
.
setHost
(
"localhost"
)
.
setPort
(
8989
)
.
setPeriod
(
1000
)
.
setIdleTimeout
(
10
)
.
setBatch
(
true
)
.
create
(
0
,
"distQueue"
,
"foreignQueue"
);
distQueue
.
setFreeWriting
();
System
.
out
.
println
(
"joram distribution queue = "
+
distQueue
);
...
...
@@ -140,9 +141,6 @@ public class BridgeRestTest6 extends TestCase implements MessageListener {
jndiCtx
.
close
();
AdminModule
.
disconnect
();
System
.
out
.
println
(
"admin config ok"
);
Thread
.
sleep
(
1000
);
}
// public void test() throws Exception {
...
...
@@ -241,7 +239,7 @@ public class BridgeRestTest6 extends TestCase implements MessageListener {
String
current
=
"Message number #"
+
nbmsg
;
String
txt
=
((
TextMessage
)
msg
).
getText
();
System
.
out
.
println
(
txt
);
//
System.out.println(txt);
if
(!
current
.
equals
(
txt
))
{
// Verify if it is a duplicate due to the server's failure.
if
((
previous
==
null
)
||
(!
previous
.
equals
(
txt
)))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment