ossj.common.tck.tests
Class XmlTests

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

public class XmlTests
extends JVTTestBase

XmlTests Class Implement the XML Mesaging Mandatory Test of the JSR144 specification.

Version:
1.12

Field Summary
 boolean done
           
 junit.framework.TestResult result
           
 
Fields inherited from class ossj.common.tck.JVTTestBase
debug, EVENT_TIMEOUT, howmany_key, howmany_value, JMS_FACTORY, JNDI_FACT_CLASS_NAME, JNDI_URL, jvtSessionList, LOG_FILE, namingContext, QUOTECHAR, return_failed_only, runonce, TESTFILES_HOME, TOPIC_NAME, util
 
Constructor Summary
XmlTests(String name)
          Creates a new CommonAPIXMLTests object.
 
Method Summary
 void setUp()
          Initialize every test
static junit.framework.TestSuite suite()
          Build the suite of test
 void tearDown()
           
 void test_Negative_xml_query_NullQuery()
          Query managed entities using null query type
Success if querry(null) throws OssIllegalArgumentException
 void test_Negative_xml_update_NullUpv()
          Update procedure using null type
Success if update(null) throws OssIllegalArgumentException
 void test_Positive_xml_getEventTypes()
          Verify that the JVT support at least one event type.
For each Event type, verify also the corresponding EventPropertyDescriptor using the factory.
 void test_xml_GetManagedEntityTypes_ContainsACTIVATE()
          getManagedEntityTypes, instantiated from TestBasics
verify that the JVT support at least one managed Entity type using getManagedEntityTypes
 void test_xml_GetQueryTypes_IsNotNull()
          verify that JVT support at least one query type using getNamedQueryTypes.
getNamedQueryTypes instantiated from TestBasics
 void test_xml_GetSupportedOperations_IsSubsetOfJVTSessionOption()
          GetSupportedOperations instantiated from TestBasics.
just call getSupportedOptionalOperations
 void test_xml_GetUpvTypes_IsNotNull()
          verify that JVT support at least one query type using getUpdateProcedureTypes.
getUpdateProcedureTypes instantiated from TestBasics
 void test_xml_Queue_JndiName()
          Test if the given JNDI name follows: System/System1/ApplicationType/Common/Application/1-2;1-2;ReferenceImplementation/Comp/name or System/System1/ApplicationType/Common/Application/1-2;1-2;ReferenceImplementation/Resource/name
 
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
 

Field Detail

done

public boolean done

result

public junit.framework.TestResult result
Constructor Detail

XmlTests

public XmlTests(String name)
         throws Exception
Creates a new CommonAPIXMLTests object.

Parameters:
name - the test name
Throws:
Exception - any
Method Detail

setUp

public void setUp()
Initialize every test

Overrides:
setUp in class junit.framework.TestCase

tearDown

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

suite

public static junit.framework.TestSuite suite()
                                       throws Exception
Build the suite of test

Returns:
the test suite
Throws:
Exception - ...

test_xml_Queue_JndiName

public void test_xml_Queue_JndiName()
                             throws Exception
Test if the given JNDI name follows: System/System1/ApplicationType/Common/Application/1-2;1-2;ReferenceImplementation/Comp/name or System/System1/ApplicationType/Common/Application/1-2;1-2;ReferenceImplementation/Resource/name

Throws:
Exception

test_xml_GetManagedEntityTypes_ContainsACTIVATE

public void test_xml_GetManagedEntityTypes_ContainsACTIVATE()
                                                     throws Exception
getManagedEntityTypes, instantiated from TestBasics
verify that the JVT support at least one managed Entity type using getManagedEntityTypes

Success if the the return array is not null and not empty

Throws:
Exception

test_xml_GetQueryTypes_IsNotNull

public void test_xml_GetQueryTypes_IsNotNull()
                                      throws Exception
verify that JVT support at least one query type using getNamedQueryTypes.
getNamedQueryTypes instantiated from TestBasics

Success if the the return array is not null and not empty

Throws:
Exception

test_xml_GetUpvTypes_IsNotNull

public void test_xml_GetUpvTypes_IsNotNull()
                                    throws Exception
verify that JVT support at least one query type using getUpdateProcedureTypes.
getUpdateProcedureTypes instantiated from TestBasics

Success if the the return array is not null

Throws:
Exception

test_xml_GetSupportedOperations_IsSubsetOfJVTSessionOption

public void test_xml_GetSupportedOperations_IsSubsetOfJVTSessionOption()
                                                                throws Exception
GetSupportedOperations instantiated from TestBasics.
just call getSupportedOptionalOperations

Success if no exceptiuon is thrown.

Throws:
Exception

test_Negative_xml_query_NullQuery

public void test_Negative_xml_query_NullQuery()
                                       throws Exception
Query managed entities using null query type
Success if querry(null) throws OssIllegalArgumentException

Throws:
Exception - DOCUMENT ME!
TCKException - DOCUMENT ME!

test_Negative_xml_update_NullUpv

public void test_Negative_xml_update_NullUpv()
                                      throws Exception
Update procedure using null type
Success if update(null) throws OssIllegalArgumentException

Throws:
Exception - DOCUMENT ME!
TCKException - DOCUMENT ME!

test_Positive_xml_getEventTypes

public void test_Positive_xml_getEventTypes()
                                     throws Exception
Verify that the JVT support at least one event type.
For each Event type, verify also the corresponding EventPropertyDescriptor using the factory.
Success
if getEventTypes return no null and at least 1 event type and if (getEventDescriptor) for each type return a valid event propertyDescriptor (correct event type value) and if makeEvent(type) do not throw any exception and returnan instance of the desired event type

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.