|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.osgi.testing.OSGiTestHelper
public class OSGiTestHelper
An OSGi Test Helper
| Field Summary | |
|---|---|
static String |
SYSPROP_TEST_ARCHIVE_DIRECTORY
|
static String |
SYSPROP_TEST_RESOURCES_DIRECTORY
|
| Method Summary | |
|---|---|
static org.jboss.shrinkwrap.api.spec.JavaArchive |
assembleArchive(String name,
String[] resources,
Class<?>... packages)
|
static org.jboss.shrinkwrap.api.spec.JavaArchive |
assembleArchive(String name,
String resource,
Class<?>... packages)
|
static void |
assertBundleState(int expState,
int wasState)
|
static Class<?> |
assertLoadClass(org.osgi.framework.Bundle bundle,
String className)
|
static void |
assertLoadClass(org.osgi.framework.Bundle bundle,
String className,
org.osgi.framework.Bundle exporter)
|
static void |
assertLoadClassFail(org.osgi.framework.Bundle bundle,
String className)
|
static String |
getFrameworkName()
|
static File |
getResourceFile(String resource)
Try to discover the File for the test resource |
static URL |
getResourceURL(String resource)
Try to discover the URL for the test resource |
static String |
getServerHost()
|
static String |
getTargetContainer()
|
static File |
getTestArchiveFile(String archive)
Try to discover the File for the deployment archive |
static String |
getTestArchivePath(String archive)
Try to discover the absolute path for the deployment archive |
static URL |
getTestArchiveURL(String archive)
Try to discover the URL for the deployment archive |
static InputStream |
toInputStream(org.jboss.shrinkwrap.api.Archive<?> archive)
|
static org.jboss.osgi.vfs.VirtualFile |
toVirtualFile(org.jboss.shrinkwrap.api.Archive<?> archive)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String SYSPROP_TEST_RESOURCES_DIRECTORY
public static final String SYSPROP_TEST_ARCHIVE_DIRECTORY
| Method Detail |
|---|
public static URL getResourceURL(String resource)
public static File getResourceFile(String resource)
public static URL getTestArchiveURL(String archive)
public static String getTestArchivePath(String archive)
public static File getTestArchiveFile(String archive)
public static String getServerHost()
public static String getTargetContainer()
public static String getFrameworkName()
public static org.jboss.shrinkwrap.api.spec.JavaArchive assembleArchive(String name,
String resource,
Class<?>... packages)
throws Exception
Exception
public static org.jboss.shrinkwrap.api.spec.JavaArchive assembleArchive(String name,
String[] resources,
Class<?>... packages)
throws IOException
IOException
public static org.jboss.osgi.vfs.VirtualFile toVirtualFile(org.jboss.shrinkwrap.api.Archive<?> archive)
throws IOException,
MalformedURLException
IOException
MalformedURLException
public static InputStream toInputStream(org.jboss.shrinkwrap.api.Archive<?> archive)
throws IOException
IOException
public static void assertBundleState(int expState,
int wasState)
public static Class<?> assertLoadClass(org.osgi.framework.Bundle bundle,
String className)
public static void assertLoadClassFail(org.osgi.framework.Bundle bundle,
String className)
public static void assertLoadClass(org.osgi.framework.Bundle bundle,
String className,
org.osgi.framework.Bundle exporter)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||