Skip to content
Permalink
Browse files
ARTEMIS-3808 fix tests
  • Loading branch information
jbertram authored and clebertsuconic committed May 25, 2022
1 parent b3640c9 commit 3c6f42b12ab8e6ecb39c3121615e0de373d990f1
Showing 2 changed files with 14 additions and 4 deletions.
@@ -42,6 +42,7 @@

import org.apache.activemq.artemis.api.config.ActiveMQDefaultConfiguration;
import org.apache.activemq.artemis.api.core.ActiveMQBuffer;
import org.apache.activemq.artemis.api.core.ActiveMQException;
import org.apache.activemq.artemis.api.core.ActiveMQIllegalStateException;
import org.apache.activemq.artemis.api.core.ActiveMQTimeoutException;
import org.apache.activemq.artemis.api.core.JsonUtil;
@@ -4337,7 +4338,7 @@ public void testRestartEmbeddedWebServerTimeout() throws Exception {

ActiveMQServerControl serverControl = createManagementControl();
try {
serverControl.restartEmbeddedWebServer(10);
serverControl.restartEmbeddedWebServer(1);
fail();
} catch (ActiveMQTimeoutException e) {
// expected
@@ -4356,10 +4357,10 @@ public void testRestartEmbeddedWebServerException() throws Exception {

ActiveMQServerControl serverControl = createManagementControl();
try {
serverControl.restartEmbeddedWebServer(10);
serverControl.restartEmbeddedWebServer(1000);
fail();
} catch (ActiveMQIllegalStateException e) {
assertEquals(message, e.getMessage());
} catch (ActiveMQException e) {
assertSame("Unexpected cause", startException, e.getCause());
}
}

@@ -45,6 +45,15 @@ public void testScaleDownWithOutConnector() throws Exception {
public void testScaleDownWithConnector() throws Exception {
}

// the proxy will not work on these tests, ignoring the tests
@Override
public void testRestartEmbeddedWebServerException() throws Exception {
}

@Override
public void testRestartEmbeddedWebServerTimeout() throws Exception {
}



@Override

0 comments on commit 3c6f42b

Please sign in to comment.