Skip to content
Permalink
Browse files
ARTEMIS-3715 Support testClientID for artemis-maven-plugin
  • Loading branch information
brusdev authored and clebertsuconic committed Mar 15, 2022
1 parent 82069e9 commit f7915a273359622b5c59b3bf7e40003e9f6bf77c
Showing 1 changed file with 5 additions and 2 deletions.
@@ -62,6 +62,9 @@ public class ArtemisCLIPlugin extends ArtemisAbstractPlugin {
@Parameter
private String testURI = null;

@Parameter
private String testClientID = null;

@Parameter
private String testUser = null;

@@ -107,8 +110,8 @@ public void run() {
long timeout = System.currentTimeMillis() + spawnTimeout;
while (System.currentTimeMillis() <= timeout) {
try (ServerLocator locator = ActiveMQClient.createServerLocator(testURI)) {
if (testUser != null && testPassword != null) {
locator.createSessionFactory().createSession(testUser, testPassword, false, false, false, false, 0).close();
if (testUser != null || testPassword != null || testClientID != null) {
locator.createSessionFactory().createSession(testUser, testPassword, false, false, false, false, 0, testClientID).close();
} else {
locator.createSessionFactory().createSession().close();
}

0 comments on commit f7915a2

Please sign in to comment.