|
||||||||||
| 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
| Constructor Summary | |
|---|---|
OSGiTestHelper()
|
|
| Method Summary | |
|---|---|
org.jboss.virtual.VirtualFile |
assembleBundle(java.lang.String name,
java.lang.String[] resources,
java.lang.Class<?>... packages)
|
org.jboss.virtual.VirtualFile |
assembleBundle(java.lang.String name,
java.lang.String resource,
java.lang.Class<?>... packages)
|
void |
assertBundleLoadClass(Bundle bundle,
java.lang.String expClazz,
boolean success)
|
void |
assertBundleState(int expState,
int wasState)
|
OSGiBootstrapProvider |
getBootstrapProvider()
|
OSGiRuntime |
getDefaultRuntime()
|
OSGiRuntime |
getEmbeddedRuntime()
|
java.lang.String |
getFramework()
|
javax.naming.InitialContext |
getInitialContext()
|
OSGiRuntime |
getRemoteRuntime()
|
java.io.File |
getResourceFile(java.lang.String resource)
Try to discover the File for the test resource |
java.net.URL |
getResourceURL(java.lang.String resource)
Try to discover the URL for the test resource |
java.lang.String |
getServerHost()
|
java.lang.String |
getTargetContainer()
|
java.io.File |
getTestArchiveFile(java.lang.String archive)
Try to discover the File for the deployment archive |
java.lang.String |
getTestArchivePath(java.lang.String archive)
Try to discover the absolute path for the deployment archive |
java.net.URL |
getTestArchiveURL(java.lang.String archive)
Try to discover the URL for the deployment archive |
void |
ungetBootstrapProvider()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OSGiTestHelper()
| Method Detail |
|---|
public OSGiBootstrapProvider getBootstrapProvider()
public void ungetBootstrapProvider()
public OSGiRuntime getDefaultRuntime()
public OSGiRuntime getEmbeddedRuntime()
public OSGiRuntime getRemoteRuntime()
public java.net.URL getResourceURL(java.lang.String resource)
public java.io.File getResourceFile(java.lang.String resource)
public java.net.URL getTestArchiveURL(java.lang.String archive)
public java.lang.String getTestArchivePath(java.lang.String archive)
public java.io.File getTestArchiveFile(java.lang.String archive)
public javax.naming.InitialContext getInitialContext()
throws javax.naming.NamingException
javax.naming.NamingExceptionpublic java.lang.String getServerHost()
public java.lang.String getTargetContainer()
public java.lang.String getFramework()
public org.jboss.virtual.VirtualFile assembleBundle(java.lang.String name,
java.lang.String resource,
java.lang.Class<?>... packages)
throws java.lang.Exception
java.lang.Exception
public org.jboss.virtual.VirtualFile assembleBundle(java.lang.String name,
java.lang.String[] resources,
java.lang.Class<?>... packages)
throws java.lang.Exception
java.lang.Exception
public void assertBundleState(int expState,
int wasState)
public void assertBundleLoadClass(Bundle bundle,
java.lang.String expClazz,
boolean success)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||