Package org.silverpeas.web.test
Class SilverpeasJcrInitialization
- java.lang.Object
-
- org.silverpeas.web.test.SilverpeasJcrInitialization
-
- All Implemented Interfaces:
EventListener,javax.servlet.ServletContextListener
public class SilverpeasJcrInitialization extends Object implements javax.servlet.ServletContextListener
In order to initialize the JCR that can be used in integration tests, this listener MUST be defined into the web.xml of the archive built of an integration test with arquillian + Wildfly.At server starting, when the context of the integration is initialized, all the tasks required to initialize the JCR for the integration tests are performed. The requirement is the dependencies on the JCR have to be satisfied.
By default, this listener is added onto the war archive used in the integration tests by the
WarBuilder4Webobject.- Author:
- silveryocha
-
-
Constructor Summary
Constructors Constructor Description SilverpeasJcrInitialization()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcontextDestroyed(javax.servlet.ServletContextEvent sce)voidcontextInitialized(javax.servlet.ServletContextEvent sce)
-
-
-
Method Detail
-
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent sce)
- Specified by:
contextInitializedin interfacejavax.servlet.ServletContextListener
-
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent sce)
- Specified by:
contextDestroyedin interfacejavax.servlet.ServletContextListener
-
-