org.jboss.osgi.spi.junit
Class IntegrationTestSetup

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
                  extended by org.jboss.osgi.spi.junit.IntegrationTestSetup
All Implemented Interfaces:
junit.framework.Test

public class IntegrationTestSetup
extends OSGiTestSetup

A test setup that deploys/undeploys archives

Since:
14-Oct-2004
Author:
Thomas.Diesler@jboss.org

Field Summary
 
Fields inherited from class junit.extensions.TestDecorator
fTest
 
Constructor Summary
IntegrationTestSetup(java.lang.Class<?> testClass, java.lang.String archiveList)
           
 
Method Summary
 java.io.File getArchiveFile(java.lang.String archive)
           
 java.net.URL getArchiveURL(java.lang.String archive)
           
 javax.management.MBeanServerConnection getServer()
           
 java.lang.String getServerHost()
           
 boolean isRemoteIntegration()
           
 boolean isTargetJBoss50()
           
protected  void setUp()
           
protected  void tearDown()
           
 
Methods inherited from class org.jboss.osgi.spi.junit.OSGiTestSetup
createBootstrapProvider, getBootstrapProvider, getResourceFile, getResourceURL, getTestArchiveFile, getTestArchiveURL, setBootstrapProvider
 
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

IntegrationTestSetup

public IntegrationTestSetup(java.lang.Class<?> testClass,
                            java.lang.String archiveList)
Method Detail

getArchiveFile

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

getArchiveURL

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

isRemoteIntegration

public boolean isRemoteIntegration()

isTargetJBoss50

public boolean isTargetJBoss50()

getServer

public javax.management.MBeanServerConnection getServer()

getServerHost

public java.lang.String getServerHost()

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class OSGiTestSetup
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class OSGiTestSetup
Throws:
java.lang.Exception


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