ossj.common.tck
Class CommonAPIXMLTests

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

public class CommonAPIXMLTests
extends JVTTestBase

CommonAPIXMLTests 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
CommonAPIXMLTests(String name)
          Creates a new CommonAPIXMLTests object.
 
Method Summary
 String addXmlRootElement(String rootElementTag, String xmlDoc)
          DOCUMENT ME!
 Document getDocument(String tag, String xmlString)
          return the Document corresponding to the given tag and XML String
 Element getElement(Document doc, String tagName)
          DOCUMENT ME!
 junit.framework.TestResult run()
          Start the test
 void run(junit.framework.TestResult result)
          Start the test
 void setUp()
          Initialize the test
 void tearDown()
           
 void test_JVTSessionFound()
          TEST test_JVTSessionFound
 void test_XmlEvent()
          TEST test_XmlEvent
 void test_XmlManagedEntityKeyAndValue()
          TEST test_XmlManagedEntityKeyAndValue
 void test_XmlQueryValue()
          TEST test_XmlQueryValue
 
Methods inherited from class ossj.common.tck.JVTTestBase
assertTrue, assertTrue, assertTrueMsg, fail, fail, getEnvironment, getInstanceOf, init, log, log
 
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

CommonAPIXMLTests

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

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

run

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

Overrides:
run in class JVTTestBase
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 JVTTestBase
Parameters:
result - where to put test result

setUp

public void setUp()
Initialize the test

Overrides:
setUp in class junit.framework.TestCase

tearDown

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

test_JVTSessionFound

public void test_JVTSessionFound()
TEST test_JVTSessionFound

PRECONDITION:

Testing Strategy:

Success Conditions:


test_XmlManagedEntityKeyAndValue

public void test_XmlManagedEntityKeyAndValue()
TEST test_XmlManagedEntityKeyAndValue

PRECONDITION:

Testing Strategy:

Success Conditions:


test_XmlQueryValue

public void test_XmlQueryValue()
TEST test_XmlQueryValue

PRECONDITION:

Testing Strategy:

Success Conditions:


test_XmlEvent

public void test_XmlEvent()
TEST test_XmlEvent

PRECONDITION:

Testing Strategy:

Success Conditions:


getDocument

public Document getDocument(String tag,
                            String xmlString)
return the Document corresponding to the given tag and XML String

Parameters:
tag - xml tag
xmlString - xml string to include
Returns:
the Document

getElement

public Element getElement(Document doc,
                          String tagName)
DOCUMENT ME!

Parameters:
doc - DOCUMENT ME!
tagName - DOCUMENT ME!
Returns:
DOCUMENT ME!

addXmlRootElement

public String addXmlRootElement(String rootElementTag,
                                String xmlDoc)
DOCUMENT ME!

Parameters:
rootElementTag - DOCUMENT ME!
xmlDoc - DOCUMENT ME!
Returns:
DOCUMENT ME!


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