public abstract class TestApplication extends AbstractApplication
| Constructor and Description |
|---|
TestApplication(String name)
Super constructor for all derived classes.
Detects whether application is running within a container or deployed by JNLP (webstart). |
| Modifier and Type | Method and Description |
|---|---|
DomainContext |
getDomainContext() |
<U extends PersistentDomainObject<U>> |
getUser(DomainContext context,
long userId) |
boolean |
isServer() |
void |
setUpClass() |
void |
tearDownClass() |
applyProperties, configureModificationTracker, configurePreferences, configureSecurityManager, createDomainContext, createSession, createSessionInfo, deregisterJdbcDrivers, detectContainer, detectJNLP, doConfigureApplication, doFinishStartup, doInitialize, getCreationTime, getName, getProperties, getProperty, getRunningApplication, getSession, getSessionInfo, getUser, isDeployedByJNLP, isRunningInContainer, logStackdump, register, setDomainContext, setName, setProperties, setSessionInfo, toString, unregister, updateSessionInfoAfterLoginclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waiton, oppublic TestApplication(String name)
name - the application name@AfterClass(alwaysRun=true)
public void tearDownClass()
throws Exception
Exceptionpublic DomainContext getDomainContext()
getDomainContext in interface DomainContextProvidergetDomainContext in class AbstractApplicationpublic boolean isServer()
isServer in class AbstractApplicationpublic <U extends PersistentDomainObject<U>> U getUser(DomainContext context, long userId)
getUser in class AbstractApplicationTentackle - distributed, domain- and model-driven