|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.jcoderz.commons.TestCase
org.jcoderz.commons.ServerTestCase
public class ServerTestCase
Test cases which subclasses this class will be run inside an ejb server vm, without transaction. Just implement subclasses as any other tests.
| Constructor Summary | |
|---|---|
ServerTestCase()
|
|
| Method Summary | |
|---|---|
protected CommonsTestRunnerSessionInterface |
createTestSession()
Returns a connection to the test runner session bean. |
static String |
getTestServletUrl(String path,
String optionalParams)
|
static File |
getWeblogicDomainDir()
Returns the path to the web logic domains directory. |
void |
runBare()
Overrides runbare to run this test in the ejb server. |
void |
runBareAtServer()
Runs this test case at the server by calling TestCase's run. |
| Methods inherited from class org.jcoderz.commons.TestCase |
|---|
getBaseDir, getHostName, getSuite, hasTestCases |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runTest, setName, setUp, tearDown, 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, failNotEquals, failNotSame, failSame |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ServerTestCase()
| Method Detail |
|---|
public static File getWeblogicDomainDir()
public void runBare()
throws Throwable
runBare in class TestCaseThrowable - if any exception is thrown
public void runBareAtServer()
throws Throwable
Throwable - if any exception is thrown
public static String getTestServletUrl(String path,
String optionalParams)
throws Exception
Exception
protected CommonsTestRunnerSessionInterface createTestSession()
throws NamingException,
CreateException,
RemoteException
NamingException - when the lookup to the
CommonsTestRunnerSession bean fails.
CreateException - when the creation of the bean fail.s
RemoteException - when a remote connection problem occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||