org.ops4j.pax.drone.spi.junit
Class DroneTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.ops4j.pax.drone.spi.junit.DroneTestCase
All Implemented Interfaces:
junit.framework.Test

public abstract class DroneTestCase
extends junit.framework.TestCase

User: Toni Menzel (tonit) Date: May 28, 2008

This wiil be instantiated by the local junit runner as well as inside inside the OSGi Container. (where the actual test will run)


Field Summary
static java.lang.String DRONE_SPI_JUNIT_URL
           
 DroneContext droneContext
          Will be injected inside the framework
 
Constructor Summary
DroneTestCase()
           
 
Method Summary
protected abstract  ConnectorConfiguration configure()
           
protected  ConnectorConfiguration getConfiguration()
           
 void runBare()
          Instantiates a single runner per call.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runTest, setName, setUp, tearDown, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DRONE_SPI_JUNIT_URL

public static final java.lang.String DRONE_SPI_JUNIT_URL
See Also:
Constant Field Values

droneContext

public DroneContext droneContext
Will be injected inside the framework

Constructor Detail

DroneTestCase

public DroneTestCase()
Method Detail

configure

protected abstract ConnectorConfiguration configure()

getConfiguration

protected final ConnectorConfiguration getConfiguration()

runBare

public void runBare()
             throws java.lang.Throwable
Instantiates a single runner per call. Slow but max. side-effect free. Hence, the underlying builder should make sure that the drone will not be rebuild each rime (does not change)

Overrides:
runBare in class junit.framework.TestCase
Throws:
java.lang.Throwable


Copyright © 2008. All Rights Reserved.