Package org.tentackle.test.pdo
Class TestApplication
- java.lang.Object
-
- org.tentackle.app.AbstractApplication
-
- org.tentackle.test.pdo.TestApplication
-
- All Implemented Interfaces:
org.tentackle.pdo.DomainContextProvider,org.tentackle.session.SessionProvider
public abstract class TestApplication extends org.tentackle.app.AbstractApplicationBase class for tests that must run as an application.- Author:
- harald
-
-
Constructor Summary
Constructors Constructor Description TestApplication(java.lang.String name)Creates a test application.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.tentackle.pdo.DomainContextgetDomainContext()<U extends org.tentackle.pdo.PersistentDomainObject<U>>
UgetUser(org.tentackle.pdo.DomainContext context, long userId)booleanisServer()voidsetUpClass()protected voidstartup()voidtearDownClass()-
Methods inherited from class org.tentackle.app.AbstractApplication
cleanup, configure, configureModificationTracker, configurePreferences, configureSecurityManager, createDomainContext, createSession, createSessionInfo, finishStartup, getCommandLine, getCreationTime, getName, getProperties, getProperty, getRunningApplication, getSession, getSessionInfo, getUser, initialize, isSystemExitNecessaryToStop, logStackdump, register, setDomainContext, setName, setProperties, setSessionInfo, start, start, stop, stop, toString, unregister
-
-
-
-
Method Detail
-
setUpClass
@BeforeClass(alwaysRun=true) public void setUpClass() throws java.lang.Exception- Throws:
java.lang.Exception
-
tearDownClass
@AfterClass(alwaysRun=true) public void tearDownClass() throws java.lang.Exception- Throws:
java.lang.Exception
-
getDomainContext
public org.tentackle.pdo.DomainContext getDomainContext()
- Specified by:
getDomainContextin interfaceorg.tentackle.pdo.DomainContextProvider- Overrides:
getDomainContextin classorg.tentackle.app.AbstractApplication
-
isServer
public boolean isServer()
- Specified by:
isServerin classorg.tentackle.app.AbstractApplication
-
startup
protected void startup()
- Specified by:
startupin classorg.tentackle.app.AbstractApplication
-
getUser
public <U extends org.tentackle.pdo.PersistentDomainObject<U>> U getUser(org.tentackle.pdo.DomainContext context, long userId)- Specified by:
getUserin classorg.tentackle.app.AbstractApplication
-
-