Package org.apache.shiro.testing.web
Class AbstractContainerIT
- java.lang.Object
-
- org.apache.shiro.testing.web.AbstractContainerIT
-
public abstract class AbstractContainerIT extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static com.github.mjeanroy.junit.servers.jetty.EmbeddedJetty
jetty
protected static String
TEST_KEYSTORE_PASSWORD
protected static File
TEST_KEYSTORE_PATH
protected static int
tlsPort
protected com.gargoylesoftware.htmlunit.WebClient
webClient
-
Constructor Summary
Constructors Constructor Description AbstractContainerIT()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
beforeTest()
protected static String
getBaseUri()
protected static String
getBasicAuthorizationHeaderValue(String username, String password)
protected static String
getTlsBaseUri()
protected static String
getWarDir()
static void
startContainer()
static void
stopContainer()
-
-
-
Field Detail
-
jetty
protected static com.github.mjeanroy.junit.servers.jetty.EmbeddedJetty jetty
-
tlsPort
protected static int tlsPort
-
webClient
protected final com.gargoylesoftware.htmlunit.WebClient webClient
-
TEST_KEYSTORE_PATH
protected static final File TEST_KEYSTORE_PATH
-
TEST_KEYSTORE_PASSWORD
protected static final String TEST_KEYSTORE_PASSWORD
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AbstractContainerIT
public AbstractContainerIT()
-
-
Method Detail
-
startContainer
public static void startContainer() throws Exception
- Throws:
Exception
-
getBaseUri
protected static String getBaseUri()
-
getTlsBaseUri
protected static String getTlsBaseUri()
-
getBasicAuthorizationHeaderValue
protected static String getBasicAuthorizationHeaderValue(String username, String password) throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
-
beforeTest
public void beforeTest()
-
stopContainer
public static void stopContainer()
-
-