org.jboss.osgi.spi.junit
Class OSGiTestSetup

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.extensions.TestDecorator
          extended by junit.extensions.TestSetup
              extended by org.jboss.osgi.spi.junit.OSGiTestSetup
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
IntegrationTestSetup

public class OSGiTestSetup
extends junit.extensions.TestSetup

An OSGi Test Setup

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

Field Summary
 
Fields inherited from class junit.extensions.TestDecorator
fTest
 
Constructor Summary
OSGiTestSetup(java.lang.Class<?> testCase)
           
 
Method Summary
 OSGiBootstrapProvider createBootstrapProvider()
           
 OSGiBootstrapProvider getBootstrapProvider()
           
protected  java.io.File getResourceFile(java.lang.String resource)
           
protected  java.net.URL getResourceURL(java.lang.String resource)
           
 java.io.File getTestArchiveFile(java.lang.String archive)
           
 java.net.URL getTestArchiveURL(java.lang.String archive)
           
 void setBootstrapProvider(OSGiBootstrapProvider bootProvider)
           
protected  void setUp()
           
protected  void tearDown()
           
 
Methods inherited from class junit.extensions.TestSetup
run
 
Methods inherited from class junit.extensions.TestDecorator
basicRun, countTestCases, getTest, 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

OSGiTestSetup

public OSGiTestSetup(java.lang.Class<?> testCase)
Method Detail

createBootstrapProvider

public OSGiBootstrapProvider createBootstrapProvider()

getBootstrapProvider

public OSGiBootstrapProvider getBootstrapProvider()

setBootstrapProvider

public void setBootstrapProvider(OSGiBootstrapProvider bootProvider)

setUp

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

tearDown

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

getResourceURL

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

getResourceFile

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

getTestArchiveFile

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

getTestArchiveURL

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


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