ARTEMIS-3605 Fix RestDeserializationTest

This commit is contained in:
Domenico Francesco Bruscino 2021-12-14 15:58:49 +01:00 committed by clebertsuconic
parent 182334359c
commit ca1accc202
1 changed files with 2 additions and 0 deletions

View File

@ -21,6 +21,7 @@ import java.io.IOException;
import java.io.InputStream;
import org.apache.activemq.artemis.tests.util.JMSTestBase;
import org.eclipse.jetty.security.DefaultAuthenticatorFactory;
import org.eclipse.jetty.server.Connector;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.ServerConnector;
@ -82,6 +83,7 @@ public class RestTestBase extends JMSTestBase {
webapp.setContextPath("/" + contextPath);
}
webapp.setWar(warFile.getAbsolutePath());
webapp.getSecurityHandler().setAuthenticatorFactory(new DefaultAuthenticatorFactory());
handlers.addHandler(webapp);
return webapp;