public final class Testable extends Object
Modifier and Type | Field and Description |
---|---|
static org.jboss.shrinkwrap.api.ArchivePath |
MARKER_FILE_PATH |
Modifier and Type | Method and Description |
---|---|
static <T extends org.jboss.shrinkwrap.api.Archive<T>> |
archiveToTest(T archive)
Mark the given archive as the archive under test so that the test are running in its context when using the Servlet
protocol.
|
static <T extends org.jboss.shrinkwrap.api.Archive<T>> |
isArchiveToTest(T archive) |
public static final org.jboss.shrinkwrap.api.ArchivePath MARKER_FILE_PATH
public static <T extends org.jboss.shrinkwrap.api.Archive<T>> T archiveToTest(T archive)
Usage Example:
@Deployment
public static EnterpriseArchive create() {
EnterpriseArchive earArchive = ...
WebArchive warArchive = ...
earArchive.addAsModule( Testable.archiveToTest(warArchive) );
return earArchive;
}
public static <T extends org.jboss.shrinkwrap.api.Archive<T>> boolean isArchiveToTest(T archive)
Copyright © 2017 JBoss by Red Hat. All rights reserved.