Package org.silverpeas.core.test
Class BasicWarBuilder
- java.lang.Object
-
- org.silverpeas.core.test.WarBuilder<BasicWarBuilder>
-
- org.silverpeas.core.test.BasicWarBuilder
-
- All Implemented Interfaces:
Builder<org.jboss.shrinkwrap.api.spec.WebArchive>
,CommonArchive<CommonWebArchive<BasicWarBuilder>>
,CommonWebArchive<BasicWarBuilder>
- Direct Known Subclasses:
BasicCoreWarBuilder
public class BasicWarBuilder extends WarBuilder<BasicWarBuilder>
A basic war builder that does nothing more that is defined in the abstract class WarBuilder.- Author:
- mmoquillon
-
-
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
BasicWarBuilder(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> BasicWarBuilder
onWarForTestClass(Class<T> test)
Constructs an instance of the basic 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
-
BasicWarBuilder
protected BasicWarBuilder(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> BasicWarBuilder onWarForTestClass(Class<T> test)
Constructs an instance of the basic 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.
-
-