ossj.common.tck.tests
Class TestBasics

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by ossj.common.tck.JVTTestBase
              extended by ossj.common.tck.tests.TestBasics
All Implemented Interfaces:
junit.framework.Test

public class TestBasics
extends JVTTestBase

This test checks basic functionality of the JVTSession and the JVTActivationSessionHome as it is needed by all other test suites

Version:
1.1

Field Summary
 
Fields inherited from class ossj.common.tck.JVTTestBase
debug, done, EVENT_TIMEOUT, howmany_key, howmany_value, JMS_FACTORY, JNDI_FACT_CLASS_NAME, JNDI_URL, jvtSessionList, LOG_FILE, namingContext, QUOTECHAR, result, return_failed_only, runonce, TESTFILES_HOME, TOPIC_NAME, util
 
Constructor Summary
TestBasics(String name)
          Creates new testJVTActivationSession
 
Method Summary
protected  void setUp()
           
static junit.framework.TestSuite suite()
          Basic tests: all the test from this class.
protected  void tearDown()
           
 void test_GetInitialContext()
          verify if the InitialContext can be created.
 void test_GetJVTSession()
          tries to get an JVTActivationSession implementation
 void test_GetLegalKeys()
          Verify the key factory using the given supported managed entity types.
 void test_GetTopicSubscriber()
          Test if the declared Topic is reachable and validate the JNDI name used for the factory and topic.
 
Methods inherited from class ossj.common.tck.JVTTestBase
assertTrue, assertTrue, assertTrueMsg, fail, fail, getEnvironment, getInstanceOf, init, log, log, run, run
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, runBare, runTest, setName, 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
 

Constructor Detail

TestBasics

public TestBasics(String name)
           throws Exception
Creates new testJVTActivationSession

Throws:
Exception
Method Detail

suite

public static junit.framework.TestSuite suite()
                                       throws Exception
Basic tests: And tests from TestJVTSessionSimple

Returns:
DOCUMENT ME!
Throws:
Exception - DOCUMENT ME!

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

tearDown

protected void tearDown()
Overrides:
tearDown in class junit.framework.TestCase

test_GetInitialContext

public void test_GetInitialContext()
                            throws Exception
verify if the InitialContext can be created.
Validate the connection with the AS.

Throws:
Exception - DOCUMENT ME!

test_GetJVTSession

public void test_GetJVTSession()
                        throws Exception
tries to get an JVTActivationSession implementation

Throws:
Exception

test_GetTopicSubscriber

public void test_GetTopicSubscriber()
                             throws Exception
Test if the declared Topic is reachable and validate the JNDI name used for the factory and topic.

Throws:
Exception - DOCUMENT ME!

test_GetLegalKeys

public void test_GetLegalKeys()
                       throws Exception
Verify the key factory using the given supported managed entity types.

Throws:
Exception - DOCUMENT ME!


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