org.exoplatform.commons.testing
Class ContainerBuilder
java.lang.Object
org.exoplatform.commons.testing.ContainerBuilder
public class ContainerBuilder
- extends Object
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.
- Version:
- $Revision$
- Author:
- Julien Viet
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContainerBuilder
public ContainerBuilder()
withRoot
public ContainerBuilder withRoot(String configPath)
withRoot
public ContainerBuilder withRoot(URL configURL)
withPortal
public ContainerBuilder withPortal(String configPath)
withPortal
public ContainerBuilder withPortal(String portalName,
String configPath)
withPortal
public ContainerBuilder withPortal(URL configURL)
withPortal
public ContainerBuilder withPortal(String portalName,
URL configURL)
withLoader
public ContainerBuilder withLoader(ClassLoader loader)
build
public org.exoplatform.container.RootContainer build()
bootstrap
public static org.exoplatform.container.RootContainer bootstrap(URL configurationURL,
String... profiles)
Copyright © 2013 eXo Platform SAS. All Rights Reserved.