|
||||||||||
| 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.shrinkwrap.api.Archive<?> |
assembleArchive(String name,
String[] resources,
Class<?>... packages)
|
org.jboss.shrinkwrap.api.Archive<?> |
assembleArchive(String name,
String resource,
Class<?>... packages)
|
void |
assertBundleState(int expState,
int wasState)
|
Class<?> |
assertLoadClass(Bundle bundle,
String className)
|
void |
assertLoadClassFail(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 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 |
| 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.Archive<?> assembleArchive(String name,
String resource,
Class<?>... packages)
throws Exception
Exception
public org.jboss.shrinkwrap.api.Archive<?> assembleArchive(String name,
String[] resources,
Class<?>... packages)
throws IOException
IOException
public static VirtualFile toVirtualFile(org.jboss.shrinkwrap.api.Archive archive)
throws IOException,
MalformedURLException
IOException
MalformedURLException
public void assertBundleState(int expState,
int wasState)
public Class<?> assertLoadClass(Bundle bundle,
String className)
public void assertLoadClassFail(Bundle bundle,
String className)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||