org.plasma.common.test
Class PlasmaTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.plasma.common.test.PlasmaTest
All Implemented Interfaces:
junit.framework.Test

public abstract class PlasmaTest
extends junit.framework.TestCase


Field Summary
protected  org.apache.commons.logging.Log log
           
 
Constructor Summary
PlasmaTest()
           
PlasmaTest(String name)
           
 
Method Summary
static void assertEquals(Object exp, Object was)
           
 byte[] getContent(InputStream source)
           
protected  InitialContext getInitialContext()
          Get the client's env context
protected  InitialContext getInitialContext(String clientName)
          Get the client's env context for a given name.
 MBeanServerConnection getServer()
          Get the MBeanServerConnection from JNDI
static String getServerHost()
           
 boolean hasJDK15()
           
 boolean isTargetJBoss()
          True, if -Djbossws.integration.target=jboss??
 boolean isTargetTomcat()
          True, if -Djbossws.integration.target=tomcat
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, 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, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected org.apache.commons.logging.Log log
Constructor Detail

PlasmaTest

public PlasmaTest()

PlasmaTest

public PlasmaTest(String name)
Method Detail

getServer

public MBeanServerConnection getServer()
                                throws NamingException
Get the MBeanServerConnection from JNDI

Throws:
NamingException

isTargetJBoss

public boolean isTargetJBoss()
True, if -Djbossws.integration.target=jboss??


isTargetTomcat

public boolean isTargetTomcat()
True, if -Djbossws.integration.target=tomcat


getInitialContext

protected InitialContext getInitialContext(String clientName)
                                    throws NamingException
Get the client's env context for a given name.

Throws:
NamingException

getInitialContext

protected InitialContext getInitialContext()
                                    throws NamingException
Get the client's env context

Throws:
NamingException

hasJDK15

public boolean hasJDK15()

getServerHost

public static String getServerHost()

assertEquals

public static void assertEquals(Object exp,
                                Object was)

getContent

public byte[] getContent(InputStream source)
                  throws IOException
Throws:
IOException


Copyright © 2013. All rights reserved.