public abstract class OSGiTest extends Object
OSGiTestHelper.| Modifier and Type | Field and Description |
|---|---|
org.junit.rules.TestName |
testName |
| Constructor and Description |
|---|
OSGiTest() |
| Modifier and Type | Method and Description |
|---|---|
protected org.jboss.shrinkwrap.api.spec.JavaArchive |
assembleArchive(String name,
String[] resources,
Class<?>... packages)
|
protected org.jboss.shrinkwrap.api.spec.JavaArchive |
assembleArchive(String name,
String resource,
Class<?>... packages)
|
protected void |
assertBundleState(int expState,
int wasState)
Delegates to
OSGiTestHelper.assertBundleState(int, int) |
protected Class<?> |
assertLoadClass(org.osgi.framework.Bundle bundle,
String className)
Delegates to
OSGiTestHelper.assertLoadClass(Bundle, String) |
protected void |
assertLoadClass(org.osgi.framework.Bundle bundle,
String className,
org.osgi.framework.Bundle exporter)
|
protected void |
assertLoadClassFail(org.osgi.framework.Bundle bundle,
String className)
Delegates to
OSGiTestHelper.assertLoadClassFail(Bundle, String) |
protected String |
getFrameworkName()
Delegates to
OSGiTestHelper.getFrameworkName() |
protected String |
getLongName()
Get the the FQN of this test class.
|
protected File |
getResourceFile(String resource)
Delegates to
OSGiTestHelper.getResourceFile(String) |
protected URL |
getResourceURL(String resource)
Delegates to
OSGiTestHelper.getResourceURL(String) |
protected String |
getServerHost()
Delegates to
OSGiTestHelper.getServerHost() |
protected String |
getShortName()
Get the last token in the FQN of this test class.
|
protected String |
getTargetContainer()
Delegates to
OSGiTestHelper.getTargetContainer() |
protected File |
getTestArchiveFile(String archive)
Delegates to
OSGiTestHelper.getTestArchiveFile(String) |
protected String |
getTestArchivePath(String archive)
Delegates to
OSGiTestHelper.getTestArchivePath(String) |
protected URL |
getTestArchiveURL(String archive)
Delegates to
OSGiTestHelper.getTestArchiveURL(String) |
void |
setUp()
Writes a a debug start messge
|
void |
tearDown()
Writes a a debug stop messge
|
protected InputStream |
toInputStream(org.jboss.shrinkwrap.api.Archive<?> archive)
Delegates to
OSGiTestHelper.toInputStream(Archive) |
protected org.jboss.osgi.vfs.VirtualFile |
toVirtualFile(org.jboss.shrinkwrap.api.Archive<?> archive)
Delegates to
OSGiTestHelper.toVirtualFile(Archive) |
protected String getShortName()
protected String getLongName()
protected URL getResourceURL(String resource)
OSGiTestHelper.getResourceURL(String)protected File getResourceFile(String resource)
OSGiTestHelper.getResourceFile(String)protected URL getTestArchiveURL(String archive)
OSGiTestHelper.getTestArchiveURL(String)protected String getTestArchivePath(String archive)
OSGiTestHelper.getTestArchivePath(String)protected File getTestArchiveFile(String archive)
OSGiTestHelper.getTestArchiveFile(String)protected String getServerHost()
OSGiTestHelper.getServerHost()protected String getTargetContainer()
OSGiTestHelper.getTargetContainer()protected String getFrameworkName()
OSGiTestHelper.getFrameworkName()protected org.jboss.shrinkwrap.api.spec.JavaArchive assembleArchive(String name, String resource, Class<?>... packages) throws Exception
Exceptionprotected org.jboss.shrinkwrap.api.spec.JavaArchive assembleArchive(String name, String[] resources, Class<?>... packages) throws Exception
Exceptionprotected org.jboss.osgi.vfs.VirtualFile toVirtualFile(org.jboss.shrinkwrap.api.Archive<?> archive)
throws IOException,
MalformedURLException
OSGiTestHelper.toVirtualFile(Archive)IOExceptionMalformedURLExceptionprotected InputStream toInputStream(org.jboss.shrinkwrap.api.Archive<?> archive) throws IOException, MalformedURLException
OSGiTestHelper.toInputStream(Archive)IOExceptionMalformedURLExceptionprotected void assertBundleState(int expState,
int wasState)
OSGiTestHelper.assertBundleState(int, int)protected Class<?> assertLoadClass(org.osgi.framework.Bundle bundle, String className)
OSGiTestHelper.assertLoadClass(Bundle, String)protected void assertLoadClassFail(org.osgi.framework.Bundle bundle,
String className)
OSGiTestHelper.assertLoadClassFail(Bundle, String)protected void assertLoadClass(org.osgi.framework.Bundle bundle,
String className,
org.osgi.framework.Bundle exporter)
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.