Package org.exoplatform.commons.testing
Class ContainerBuilder
java.lang.Object
org.exoplatform.commons.testing.ContainerBuilder
An helper for building a root container and a portal container. I have done several attempt to make easily and safe root/portal container boot for unit test. This one is my best attempt so far.
Note that the portal container are booted in the order they are declared first.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.exoplatform.container.RootContainerorg.exoplatform.container.RootContainerbuild()withLoader(ClassLoader loader) withPortal(String configPath) withPortal(String portalName, String configPath) withPortal(String portalName, URL configURL) withPortal(URL configURL)
-
Constructor Details
-
ContainerBuilder
public ContainerBuilder()
-
-
Method Details
-
withRoot
-
withRoot
-
withPortal
-
withPortal
-
withPortal
-
withPortal
-
withLoader
-
build
public org.exoplatform.container.RootContainer build() -
bootstrap
-