ossj.common.tck
Class JVTTestBase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by ossj.common.tck.JVTTestBase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
CommonAPIXMLTests, TestBasics, TestJVTSessionSimple, TestManagedEntityKey, TestMev, XmlTests

public class JVTTestBase
extends junit.framework.TestCase

JVTTestBase Class A Base Class for TTAPIJVTTests This class is both a TT JVT Proxy and a Test Case. The TTAPIJVTTests extends and use the services of this class. The value class implementations used in this class are the one retrieved by calling the make methods on the provider JVT Session Bean

Since:
December 2001
Version:
1.0

Field Summary
static boolean debug
           
 boolean done
           
static int EVENT_TIMEOUT
           
 int howmany_key
           
 int howmany_value
           
static String JMS_FACTORY
           
static String JNDI_FACT_CLASS_NAME
           
static String JNDI_URL
           
static ArrayList jvtSessionList
           
static String LOG_FILE
           
static InitialContext namingContext
           
static int QUOTECHAR
           
 junit.framework.TestResult result
           
 boolean return_failed_only
           
static boolean runonce
           
static String TESTFILES_HOME
           
static String TOPIC_NAME
           
static Util util
           
 
Constructor Summary
JVTTestBase(String name)
           
 
Method Summary
static void assertTrue(String type, boolean c)
          overload to make life easier
static void assertTrue(String attr, String type, boolean c)
          overload to make life easier
static void assertTrueMsg(String msg, boolean c)
          overload to make life easier
static void fail(String type)
          overload to make life easier
static void fail(String attr, String type)
          overload to make life easier
 void getEnvironment()
          Set up the environment
 javax.oss.JVTSession getInstanceOf(String myClass)
          DOCUMENT ME!
 void init()
          Init the env, to be call by all inheritence
 void log(String s)
          Print the string to the log file
 void log(Throwable e)
          print the exception to the log file
 junit.framework.TestResult run()
          Start the test
 void run(junit.framework.TestResult result)
          Start the test
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, 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, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

runonce

public static boolean runonce

debug

public static boolean debug

namingContext

public static InitialContext namingContext

JNDI_FACT_CLASS_NAME

public static String JNDI_FACT_CLASS_NAME

JNDI_URL

public static String JNDI_URL

EVENT_TIMEOUT

public static int EVENT_TIMEOUT

TESTFILES_HOME

public static String TESTFILES_HOME

LOG_FILE

public static String LOG_FILE

JMS_FACTORY

public static String JMS_FACTORY

TOPIC_NAME

public static String TOPIC_NAME

jvtSessionList

public static ArrayList jvtSessionList

util

public static Util util

QUOTECHAR

public static int QUOTECHAR

done

public boolean done

howmany_key

public int howmany_key

howmany_value

public int howmany_value

return_failed_only

public boolean return_failed_only

result

public junit.framework.TestResult result
Constructor Detail

JVTTestBase

public JVTTestBase(String name)
Method Detail

run

public junit.framework.TestResult run()
Start the test

Overrides:
run in class junit.framework.TestCase
Returns:
the test result

run

public void run(junit.framework.TestResult result)
Start the test

Specified by:
run in interface junit.framework.Test
Overrides:
run in class junit.framework.TestCase
Parameters:
result - where to put test result

log

public void log(String s)
Print the string to the log file

Parameters:
s - text to add

log

public void log(Throwable e)
print the exception to the log file

Parameters:
e - exception to trace

getEnvironment

public void getEnvironment()
Set up the environment


init

public void init()
Init the env, to be call by all inheritence


getInstanceOf

public javax.oss.JVTSession getInstanceOf(String myClass)
                                   throws TCKException
DOCUMENT ME!

Parameters:
myClass - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
TCKException - DOCUMENT ME!

assertTrue

public static void assertTrue(String attr,
                              String type,
                              boolean c)
overload to make life easier


assertTrue

public static void assertTrue(String type,
                              boolean c)
overload to make life easier


assertTrueMsg

public static void assertTrueMsg(String msg,
                                 boolean c)
overload to make life easier


fail

public static void fail(String attr,
                        String type)
overload to make life easier


fail

public static void fail(String type)
overload to make life easier



Copyright 2002-2006 The Members of the OSS through Java(TM) Initiative. All rights reserved. Use is subject to license terms.