public class PhotonAppWebTestRule
extends com.helger.web.scope.mock.WebScopeTestRule
| Constructor and Description |
|---|
PhotonAppWebTestRule()
Ctor using the default storage path from
ScopeTestRule |
PhotonAppWebTestRule(File aPath)
Ctor with an arbitrary path
|
PhotonAppWebTestRule(File aDataPath,
String sServletContextPath)
Ctor with an arbitrary path
|
| Modifier and Type | Method and Description |
|---|---|
void |
after() |
void |
before() |
File |
getDataPath() |
String |
getServletContextPath() |
PhotonAppWebTestRule |
setDeleteAllData(boolean bDeleteAllData)
Delete the directories with data and servlet context path before each
iteration?
|
public PhotonAppWebTestRule()
ScopeTestRulepublic PhotonAppWebTestRule(@Nonnull File aPath)
aPath - The data AND servlet context path to be used. May not be
null.@Nonnull @Nonempty public final String getServletContextPath()
null.@Nonnull public final PhotonAppWebTestRule setDeleteAllData(boolean bDeleteAllData)
bDeleteAllData - true to delete them in before(),
false if not.public void before()
before in class com.helger.web.scope.mock.WebScopeTestRulepublic void after()
after in class com.helger.web.scope.mock.WebScopeTestRuleCopyright © 2014–2023 Philip Helger. All rights reserved.