org.jboss.osgi.spi.junit
Class OSGiTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.jboss.osgi.spi.junit.OSGiTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
IntegrationTest

public abstract class OSGiTest
extends junit.framework.TestCase

An OSGi Test Case

Since:
25-Sep-2008
Author:
Thomas.Diesler@jboss.org

Constructor Summary
OSGiTest()
           
 
Method Summary
protected  OSGiBootstrapProvider createBootstrapProvider()
           
protected  OSGiBootstrapProvider getBootstrapProvider()
           
protected  java.lang.String getLongName()
           
protected  java.io.File getResourceFile(java.lang.String resource)
           
protected  java.net.URL getResourceURL(java.lang.String resource)
           
protected  java.lang.String getShortName()
           
protected  java.io.File getTestArchiveFile(java.lang.String archive)
           
protected  java.net.URL getTestArchiveURL(java.lang.String archive)
           
protected  org.osgi.framework.Bundle installBundle(org.osgi.framework.BundleContext sysContext, java.lang.String bundlePath, boolean start)
           
protected  void setBootstrapProvider(OSGiBootstrapProvider bootProvider)
           
protected  void setUp()
           
protected  void startLogEntryTracking(LogEntryCache entryCache)
           
protected  void stopLogEntryTracking()
           
protected  void tearDown()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OSGiTest

public OSGiTest()
Method Detail

createBootstrapProvider

protected OSGiBootstrapProvider createBootstrapProvider()

getBootstrapProvider

protected OSGiBootstrapProvider getBootstrapProvider()

setBootstrapProvider

protected void setBootstrapProvider(OSGiBootstrapProvider bootProvider)

startLogEntryTracking

protected void startLogEntryTracking(LogEntryCache entryCache)
                              throws java.lang.Exception
Throws:
java.lang.Exception

stopLogEntryTracking

protected void stopLogEntryTracking()
                             throws java.lang.Exception
Throws:
java.lang.Exception

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

getShortName

protected java.lang.String getShortName()

getLongName

protected java.lang.String getLongName()

getResourceURL

protected java.net.URL getResourceURL(java.lang.String resource)

getResourceFile

protected java.io.File getResourceFile(java.lang.String resource)

getTestArchiveFile

protected java.io.File getTestArchiveFile(java.lang.String archive)

getTestArchiveURL

protected java.net.URL getTestArchiveURL(java.lang.String archive)
                                  throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

installBundle

protected org.osgi.framework.Bundle installBundle(org.osgi.framework.BundleContext sysContext,
                                                  java.lang.String bundlePath,
                                                  boolean start)
                                           throws org.osgi.framework.BundleException
Throws:
org.osgi.framework.BundleException


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.