|
||||||||||
| 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
|
| Constructor Summary | |
|---|---|
OSGiTestHelper()
|
|
| Method Summary | |
|---|---|
org.jboss.shrinkwrap.api.spec.JavaArchive |
assembleArchive(String name,
String[] resources,
Class<?>... packages)
|
org.jboss.shrinkwrap.api.spec.JavaArchive |
assembleArchive(String name,
String resource,
Class<?>... packages)
|
void |
assertBundleState(int expState,
int wasState)
|
Class<?> |
assertLoadClass(org.osgi.framework.Bundle bundle,
String className)
|
void |
assertLoadClass(org.osgi.framework.Bundle bundle,
String className,
org.osgi.framework.Bundle exporter)
|
void |
assertLoadClassFail(org.osgi.framework.Bundle bundle,
String className)
|
String |
getFrameworkName()
|
InitialContext |
getInitialContext()
|
File |
getResourceFile(String resource)
Try to discover the File for the test resource |
URL |
getResourceURL(String resource)
Try to discover the URL for the test resource |
String |
getServerHost()
|
String |
getTargetContainer()
|
File |
getTestArchiveFile(String archive)
Try to discover the File for the deployment archive |
String |
getTestArchivePath(String archive)
Try to discover the absolute path for the deployment archive |
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
| Constructor Detail |
|---|
public OSGiTestHelper()
| Method Detail |
|---|
public URL getResourceURL(String resource)
public File getResourceFile(String resource)
public URL getTestArchiveURL(String archive)
public String getTestArchivePath(String archive)
public File getTestArchiveFile(String archive)
public InitialContext getInitialContext()
throws NamingException
NamingExceptionpublic String getServerHost()
public String getTargetContainer()
public String getFrameworkName()
public org.jboss.shrinkwrap.api.spec.JavaArchive assembleArchive(String name,
String resource,
Class<?>... packages)
throws Exception
Exception
public 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 void assertBundleState(int expState,
int wasState)
public Class<?> assertLoadClass(org.osgi.framework.Bundle bundle,
String className)
public void assertLoadClassFail(org.osgi.framework.Bundle bundle,
String className)
public 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 | |||||||||