ossj.common.tck.tests
Class TestManagedEntityKey

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.TestManagedEntityKey
All Implemented Interfaces:
junit.framework.Test

public class TestManagedEntityKey
extends JVTTestBase

This test checks basic functionality of the TestManagedEntityKey

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
TestManagedEntityKey(String name)
          Creates new testJVTActivationSession
 
Method Summary
protected  void setUp()
           
static junit.framework.TestSuite suite()
          build the test Suite.
protected  void tearDown()
           
 void test_GetApplicationContext()
          Verify the ApplicationContext attribute of the key implementation.
 void test_GetApplicationDN()
          Verify the ApplicationDN attribute of the key implementation.
 void test_GetPrimaryKey()
          Verify the primaryKey attribute of the key implementation.
 void test_GetType()
          Verify the type attribute of the key implementation.
 void test_KeyCloneEquals()
          Verify the Aimplementation of the clone and equals meethods.
Expected Result:
a = b.clone()
a.equals(a) == true
b.equals(b) == true
a.equals(b) == true
b.equals(a) == true
 void test_MakePrimaryKey()
          Verify the key factory of the key implementation.
 void test_SetMakeApplicationContext()
          Verify the ApplicationContext attribute of the key implementation.
 void test_SetPrimaryKeyIsNull()
          Verify the primaryKey attribute of the key implementation.
 void test_SetTypeIsNull()
          Verify the type attribute of the key implementation.
 
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

TestManagedEntityKey

public TestManagedEntityKey(String name)
                     throws Exception
Creates new testJVTActivationSession

Throws:
Exception
Method Detail

suite

public static junit.framework.TestSuite suite()
build the test Suite.

Returns:
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_GetApplicationContext

public void test_GetApplicationContext()
                                throws Exception
Verify the ApplicationContext attribute of the key implementation. It shall be a ApplicationContext class or derived from it.
Success if getApplicaitonContext return a no null and the the object of ApplicationContext Type

Throws:
Exception

test_SetMakeApplicationContext

public void test_SetMakeApplicationContext()
                                    throws Exception
Verify the ApplicationContext attribute of the key implementation.
Success if setApplicationContext(makeApplicationContext) doesn't throw any Exception ad getApplicaitonConetxt == value used to set ApplicationContext

Throws:
Exception

test_GetApplicationDN

public void test_GetApplicationDN()
                           throws Exception
Verify the ApplicationDN attribute of the key implementation. It shall not be null.

Throws:
Exception

test_GetPrimaryKey

public void test_GetPrimaryKey()
                        throws Exception
Verify the primaryKey attribute of the key implementation. It shall not be null.

Throws:
Exception

test_GetType

public void test_GetType()
                  throws Exception
Verify the type attribute of the key implementation. It shall not be null.

Throws:
Exception

test_MakePrimaryKey

public void test_MakePrimaryKey()
                         throws Exception
Verify the key factory of the key implementation. The generated key shall not be null. And the call to set(make) shall not thorw any exception

Throws:
Exception

test_SetPrimaryKeyIsNull

public void test_SetPrimaryKeyIsNull()
                              throws Exception
Verify the primaryKey attribute of the key implementation. It shall not support the attribution of a null value.

Throws:
Exception

test_SetTypeIsNull

public void test_SetTypeIsNull()
                        throws Exception
Verify the type attribute of the key implementation. It shall not support the attribution of a null value.

Throws:
Exception

test_KeyCloneEquals

public void test_KeyCloneEquals()
                         throws Exception
Verify the Aimplementation of the clone and equals meethods.
Expected Result:
a = b.clone()
a.equals(a) == true
b.equals(b) == true
a.equals(b) == true
b.equals(a) == true

Throws:
Exception


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