Package org.silverpeas.core.test
Class BasicCoreWarBuilder
- java.lang.Object
-
- org.silverpeas.core.test.WarBuilder<BasicWarBuilder>
-
- org.silverpeas.core.test.BasicWarBuilder
-
- org.silverpeas.core.test.BasicCoreWarBuilder
-
- All Implemented Interfaces:
Builder<org.jboss.shrinkwrap.api.spec.WebArchive>
,CommonArchive<CommonWebArchive<BasicWarBuilder>>
,CommonWebArchive<BasicWarBuilder>
public class BasicCoreWarBuilder extends BasicWarBuilder
The minimal configuration to set in order to start an integration test with core module dependencies.- Author:
- Yohann Chastagnier
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.silverpeas.core.test.WarBuilder
WarBuilder.TestFocus<T extends WarBuilder<T>>
-
Nested classes/interfaces inherited from interface org.silverpeas.core.test.CommonArchive
CommonArchive.OnShrinkWrapWar
-
-
Field Summary
-
Fields inherited from class org.silverpeas.core.test.WarBuilder
jarLibForPersistence, mavenDependencies, mavenDependenciesWithoutTransitivity, webParts
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BasicCoreWarBuilder(Class<T> test)
Constructs a war builder for the specified test class.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> BasicCoreWarBuilder
onWarForTestClass(Class<T> test)
Constructs an instance of the basic core war archive builder for the specified test class.-
Methods inherited from class org.silverpeas.core.test.WarBuilder
addAsResource, addAsResource, addAsWebInfResource, addAsWebInfResource, addClasses, addMavenDependencies, addMavenDependenciesWithoutTransitivity, addMavenDependenciesWithPersistence, addPackages, addWebListener, applyManually, build, contains, contains, createMavenDependencies, createMavenDependenciesWithPersistence, deleteClasses, initJcrSchema, onLibsToInclude, testFocusedOn
-
-
-
-
Constructor Detail
-
BasicCoreWarBuilder
protected BasicCoreWarBuilder(Class<T> test)
Constructs a war builder for the specified test class. It will load all the resources in the same packages of the specified test class.- Type Parameters:
T
- the concrete type of the test- Parameters:
test
- the class of the test for which a war archive will be build.
-
-
Method Detail
-
onWarForTestClass
public static <T> BasicCoreWarBuilder onWarForTestClass(Class<T> test)
Constructs an instance of the basic core war archive builder for the specified test class.- Type Parameters:
T
- the type of the test.- Parameters:
test
- the test class for which a war will be built. Any resources located in the same package of the test will be loaded into the war.- Returns:
- a basic builder of the war archive.
-
-