|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase org.ogf.graap.wsag.it.WsagTestCase org.ogf.graap.wsag.it.AbstractIntegrationTest
public abstract class AbstractIntegrationTest
Abstract test case for the WSAG4J framework. This test case uses the WSAG4J client API, but the instantiation of the clients is left to the concrete implementations. Multiple WSRF stack implementations can therefore use the same tests.
Field Summary | |
---|---|
static int |
EXPECTED_TEMPLATES_FACTORY_1
number of templates at factory 1 |
static int |
EXPECTED_TEMPLATES_FACTORY_2
number of templates at factory 1 |
Constructor Summary | |
---|---|
protected |
AbstractIntegrationTest(String name)
|
Method Summary | |
---|---|
static AgreementFactoryClient |
getAgreementFactoryClient(String id)
Returns the agreement factory test client with the given id. |
static AgreementFactoryClient[] |
getAgreementFactoryClients()
|
int |
getDefaultFactoryCount()
Returns the default number of expected agreement factories at an endpoint. |
static LoginContext |
getLoginContext()
|
static String |
getUrl()
|
protected void |
setUp()
initializes the agreement factory clients for the test |
static void |
setUrl(String url)
|
protected void |
tearDown()
|
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int EXPECTED_TEMPLATES_FACTORY_1
public static final int EXPECTED_TEMPLATES_FACTORY_2
Constructor Detail |
---|
protected AbstractIntegrationTest(String name)
name
- the test nameMethod Detail |
---|
public static String getUrl()
public static void setUrl(String url)
url
- the url to setprotected void setUp() throws Exception
setUp
in class WsagTestCase
Exception
- indicates an error while initializing thefactory clientsprotected void tearDown() throws Exception
tearDown
in class WsagTestCase
Exception
public static AgreementFactoryClient[] getAgreementFactoryClients()
public static AgreementFactoryClient getAgreementFactoryClient(String id)
id
- the factory id
public static LoginContext getLoginContext() throws Exception
Exception
- indicates a failure loading the login context (keystore)public int getDefaultFactoryCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |