|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.osgi.testing.OSGiTest
public abstract class OSGiTest
An abstract OSGi Test.
A convenience wrapper for the functionality provided by OSGiTestHelper.
| Constructor Summary | |
|---|---|
OSGiTest()
|
|
| Method Summary | |
|---|---|
protected org.jboss.shrinkwrap.api.spec.JavaArchive |
assembleArchive(String name,
String[] resources,
Class<?>... packages)
Delegates to OSGiTestHelper.assembleArchive(String, String[], Class...) |
protected org.jboss.shrinkwrap.api.spec.JavaArchive |
assembleArchive(String name,
String resource,
Class<?>... packages)
Delegates to OSGiTestHelper.assembleArchive(String, String, Class...) |
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)
Delegates to OSGiTestHelper.assertLoadClass(Bundle, String, Bundle) |
protected void |
assertLoadClassFail(org.osgi.framework.Bundle bundle,
String className)
Delegates to OSGiTestHelper.assertLoadClassFail(Bundle, String) |
protected String |
getFrameworkName()
Delegates to OSGiTestHelper.getFrameworkName() |
protected InitialContext |
getInitialContext()
Delegates to OSGiTestHelper.getInitialContext() |
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) |
protected OSGiTestHelper |
getTestHelper()
Get the test helper used by this test Overwrite if you need to supply another helper i.e. |
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) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OSGiTest()
| Method Detail |
|---|
protected OSGiTestHelper getTestHelper()
public void setUp()
throws Exception
Exception
public void tearDown()
throws Exception
Exceptionprotected 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 InitialContext getInitialContext()
throws NamingException
OSGiTestHelper.getInitialContext()
NamingExceptionprotected 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
OSGiTestHelper.assembleArchive(String, String, Class...)
Exception
protected org.jboss.shrinkwrap.api.spec.JavaArchive assembleArchive(String name,
String[] resources,
Class<?>... packages)
throws Exception
OSGiTestHelper.assembleArchive(String, String[], Class...)
Exception
protected org.jboss.osgi.vfs.VirtualFile toVirtualFile(org.jboss.shrinkwrap.api.Archive<?> archive)
throws IOException,
MalformedURLException
OSGiTestHelper.toVirtualFile(Archive)
IOException
MalformedURLException
protected InputStream toInputStream(org.jboss.shrinkwrap.api.Archive<?> archive)
throws IOException,
MalformedURLException
OSGiTestHelper.toInputStream(Archive)
IOException
MalformedURLException
protected 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)
OSGiTestHelper.assertLoadClass(Bundle, String, Bundle)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||