public abstract class AbstractITest extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static int |
ATTEMPT_COUNT |
protected static long |
ATTEMPT_DELAY |
protected static String |
authentication |
protected static String |
authHeader |
protected static String |
baseGwUri |
protected static String |
baseInvUri |
protected static String |
baseMetricsUri |
protected com.squareup.okhttp.OkHttpClient |
client |
protected static String |
hawkularFeedId |
protected static String |
hawkularHost |
protected static int |
hawkularHttpPort |
protected static int |
hawkularManagementPort |
protected static String |
managementPasword |
protected static String |
managementUser |
protected com.fasterxml.jackson.databind.ObjectMapper |
mapper |
protected static String |
tenantId |
protected static String |
testPasword |
protected static String |
testUser |
protected static Object |
waitForAccountsLock |
protected static File |
wfHome |
| Constructor and Description |
|---|
AbstractITest() |
| Modifier and Type | Method and Description |
|---|---|
void |
after() |
protected void |
assertNodeAttributeEquals(org.jboss.as.controller.client.ModelControllerClient mcc,
org.jboss.dmr.ModelNode addressActual,
String attributeName,
String expectedAttributeValue) |
protected void |
assertNodeEquals(org.jboss.as.controller.client.ModelControllerClient mcc,
org.jboss.dmr.ModelNode addressActual,
Class<?> caller,
String expectedNodeFileName) |
protected void |
assertNodeEquals(org.jboss.as.controller.client.ModelControllerClient mcc,
org.jboss.dmr.ModelNode addressActual,
Class<?> caller,
String expectedNodeFileName,
boolean saveActual) |
protected void |
assertResourceCount(org.jboss.as.controller.client.ModelControllerClient mcc,
org.jboss.dmr.ModelNode address,
String childType,
int expectedCount) |
protected void |
assertResourceExists(org.jboss.as.controller.client.ModelControllerClient mcc,
org.jboss.dmr.ModelNode address,
boolean expectedExists) |
protected void |
assertResourceNotInInventory(String listPath,
Predicate<org.hawkular.inventory.api.model.Resource> predicate,
int attemptCount,
long attemptDelay) |
protected static String |
assertWelcomeResponse(String msg) |
void |
before() |
protected org.hawkular.inventory.api.model.Resource |
getResource(String listPath,
Predicate<org.hawkular.inventory.api.model.Resource> predicate) |
protected org.hawkular.inventory.api.model.Resource |
getResource(String listPath,
Predicate<org.hawkular.inventory.api.model.Resource> predicate,
int attemptCount,
long attemptDelay) |
protected List<org.hawkular.inventory.api.model.Resource> |
getResources(String path,
int minCount) |
protected List<org.hawkular.inventory.api.model.Resource> |
getResources(String path,
int minCount,
int attemptCount,
long attemptDelay) |
protected String |
getWithRetries(String url) |
protected String |
getWithRetries(String url,
int attemptCount,
long attemptDelay) |
protected com.squareup.okhttp.Request.Builder |
newAuthRequest() |
protected static org.jboss.as.controller.client.ModelControllerClient |
newModelControllerClient(String host,
int managementPort) |
static String |
readNode(Class<?> caller,
String nodeFileName) |
protected void |
waitForAccountsAndInventory() |
static void |
writeNode(Class<?> caller,
org.jboss.dmr.ModelNode node,
String nodeFileName) |
protected static final int ATTEMPT_COUNT
protected static final long ATTEMPT_DELAY
protected static final String authentication
protected static final String baseMetricsUri
protected static final String baseGwUri
protected static final String baseInvUri
protected static final String hawkularHost
protected static final int hawkularHttpPort
protected static final String managementPasword
protected static final int hawkularManagementPort
protected static final String managementUser
protected static final String testPasword
protected static final String testUser
protected static final String tenantId
protected static final String authHeader
protected static final String hawkularFeedId
protected static final File wfHome
protected static final Object waitForAccountsLock
protected com.squareup.okhttp.OkHttpClient client
protected com.fasterxml.jackson.databind.ObjectMapper mapper
public static String readNode(Class<?> caller, String nodeFileName) throws IOException
IOExceptionpublic static void writeNode(Class<?> caller, org.jboss.dmr.ModelNode node, String nodeFileName) throws UnsupportedEncodingException, FileNotFoundException
public void before()
public void after()
protected void assertNodeAttributeEquals(org.jboss.as.controller.client.ModelControllerClient mcc,
org.jboss.dmr.ModelNode addressActual,
String attributeName,
String expectedAttributeValue)
protected void assertNodeEquals(org.jboss.as.controller.client.ModelControllerClient mcc,
org.jboss.dmr.ModelNode addressActual,
Class<?> caller,
String expectedNodeFileName)
protected void assertNodeEquals(org.jboss.as.controller.client.ModelControllerClient mcc,
org.jboss.dmr.ModelNode addressActual,
Class<?> caller,
String expectedNodeFileName,
boolean saveActual)
protected void assertResourceCount(org.jboss.as.controller.client.ModelControllerClient mcc,
org.jboss.dmr.ModelNode address,
String childType,
int expectedCount)
throws IOException
IOExceptionprotected void assertResourceExists(org.jboss.as.controller.client.ModelControllerClient mcc,
org.jboss.dmr.ModelNode address,
boolean expectedExists)
throws IOException
IOExceptionprotected org.hawkular.inventory.api.model.Resource getResource(String listPath, Predicate<org.hawkular.inventory.api.model.Resource> predicate) throws Throwable
Throwableprotected org.hawkular.inventory.api.model.Resource getResource(String listPath, Predicate<org.hawkular.inventory.api.model.Resource> predicate, int attemptCount, long attemptDelay) throws Throwable
Throwableprotected List<org.hawkular.inventory.api.model.Resource> getResources(String path, int minCount) throws Throwable
Throwableprotected List<org.hawkular.inventory.api.model.Resource> getResources(String path, int minCount, int attemptCount, long attemptDelay) throws Throwable
Throwableprotected String getWithRetries(String url, int attemptCount, long attemptDelay) throws Throwable
Throwableprotected void assertResourceNotInInventory(String listPath, Predicate<org.hawkular.inventory.api.model.Resource> predicate, int attemptCount, long attemptDelay) throws Throwable
Throwableprotected com.squareup.okhttp.Request.Builder newAuthRequest()
protected static org.jboss.as.controller.client.ModelControllerClient newModelControllerClient(String host, int managementPort)
Copyright © 2015–2016 Red Hat, Inc.. All rights reserved.