org.jboss.osgi.spi.junit
Class IntegrationTestHelper

java.lang.Object
  extended by org.jboss.osgi.spi.junit.OSGiTestHelper
      extended by org.jboss.osgi.spi.junit.IntegrationTestHelper

public class IntegrationTestHelper
extends OSGiTestHelper

An integration test helper that deals with test deployment/undeployment, etc.

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

Constructor Summary
IntegrationTestHelper(OSGiBootstrapProvider bootProvider)
           
 
Method Summary
 void deploy(java.lang.String archive)
           
 void deploy(java.net.URL archive)
           
 RemoteBundle deployBundle(java.lang.String archive)
           
 RemoteFramework getRemoteFramework()
           
 javax.management.MBeanServerConnection getServer()
           
 java.lang.String getServerHost()
           
static boolean isRemoteIntegration()
           
 boolean isTargetJBoss50()
           
protected  void startRemoteLogEntryTracking(LogEntryCache logEntryCache)
           
protected  void stopRemoteLogEntryTracking()
           
 void undeploy(java.lang.String archive)
           
 void undeploy(java.net.URL archive)
           
 void undeployBundle(java.lang.String archive)
           
 
Methods inherited from class org.jboss.osgi.spi.junit.OSGiTestHelper
createBootstrapProvider, getBootstrapProvider, getResourceFile, getResourceURL, getTestArchiveDir, getTestArchiveFile, getTestArchiveURL, getTestResourcesDir, installBundle, setBootstrapProvider, startLogEntryTracking, stopLogEntryTracking
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegrationTestHelper

public IntegrationTestHelper(OSGiBootstrapProvider bootProvider)
Method Detail

startRemoteLogEntryTracking

protected void startRemoteLogEntryTracking(LogEntryCache logEntryCache)
                                    throws java.lang.Exception
Throws:
java.lang.Exception

stopRemoteLogEntryTracking

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

deploy

public void deploy(java.lang.String archive)
            throws java.lang.Exception
Throws:
java.lang.Exception

deploy

public void deploy(java.net.URL archive)
            throws java.lang.Exception
Throws:
java.lang.Exception

undeploy

public void undeploy(java.lang.String archive)
              throws java.lang.Exception
Throws:
java.lang.Exception

undeploy

public void undeploy(java.net.URL archive)
              throws java.lang.Exception
Throws:
java.lang.Exception

isTargetJBoss50

public boolean isTargetJBoss50()

getServer

public javax.management.MBeanServerConnection getServer()

deployBundle

public RemoteBundle deployBundle(java.lang.String archive)
                          throws java.lang.Exception
Throws:
java.lang.Exception

undeployBundle

public void undeployBundle(java.lang.String archive)
                    throws java.lang.Exception
Throws:
java.lang.Exception

getRemoteFramework

public RemoteFramework getRemoteFramework()
                                   throws java.lang.Exception
Throws:
java.lang.Exception

isRemoteIntegration

public static boolean isRemoteIntegration()

getServerHost

public java.lang.String getServerHost()


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