xmlBlaster 2.1.0 API

org.xmlBlaster.test.classtest.key
Class MsgKeyFactoryTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.custommonkey.xmlunit.XMLTestCase
              extended by org.xmlBlaster.test.classtest.key.MsgKeyFactoryTest
All Implemented Interfaces:
junit.framework.Test, org.custommonkey.xmlunit.XMLConstants, org.custommonkey.xmlunit.XSLTConstants

public class MsgKeyFactoryTest
extends org.custommonkey.xmlunit.XMLTestCase

Test I_MsgKeyFactory implementations.

 java -Djava.compiler= junit.textui.TestRunner -noloading org.xmlBlaster.test.classtest.key.MsgKeyFactoryTest
 

See Also:
MsgKeySaxFactory, the xmlBlaster access interface requirement

Field Summary
private  java.lang.String currImpl
           
private  I_MsgKeyFactory factory
           
protected  Global glob
           
(package private) static I_MsgKeyFactory[] IMPL
           
private static java.util.logging.Logger log
           
private  java.lang.String ME
           
 
Fields inherited from interface org.custommonkey.xmlunit.XSLTConstants
XSLT_END, XSLT_IDENTITY_TEMPLATE, XSLT_START, XSLT_STRIP_WHITESPACE, XSLT_XML_OUTPUT_NOINDENT
 
Fields inherited from interface org.custommonkey.xmlunit.XMLConstants
CLOSE_NODE, END_CDATA, END_COMMENT, END_PROCESSING_INSTRUCTION, OPEN_END_NODE, OPEN_START_NODE, START_CDATA, START_COMMENT, START_DOCTYPE, START_PROCESSING_INSTRUCTION, XML_DECLARATION, XMLNS_PREFIX, XPATH_ATTRIBUTE_IDENTIFIER, XPATH_CHARACTER_NODE_IDENTIFIER, XPATH_COMMENT_IDENTIFIER, XPATH_NODE_INDEX_END, XPATH_NODE_INDEX_START, XPATH_PROCESSING_INSTRUCTION_IDENTIFIER, XPATH_SEPARATOR
 
Constructor Summary
MsgKeyFactoryTest(Global glob, java.lang.String name, int currImpl)
           
 
Method Summary
static void main(java.lang.String[] args)
           java org.xmlBlaster.test.classtest.key.MsgKeyFactoryTest
protected  void setUp()
           
static junit.framework.Test suite()
          Method is used by TestRunner to load these tests
protected  void tearDown()
           
 void testDefault()
          Tests empty xml string
 void testEmbeddedKeyTag()
          Tests client side PublishKey.
 void testGetReturnKey()
          Tests client side GetReturnKey.
 void testParse()
          Tries with all known tags
 void testPublishKey()
          Tests client side PublishKey.
 void testToXml()
          Test toXml (parse - createXml - parse again - test)
 void testUpdateKey()
          Tests client side UpdateKey.
 
Methods inherited from class org.custommonkey.xmlunit.XMLTestCase
assertNodeTestPasses, assertNodeTestPasses, assertNotXpathExists, assertNotXpathExists, assertXMLEqual, assertXMLEqual, assertXMLEqual, assertXMLEqual, assertXMLEqual, assertXMLEqual, assertXMLEqual, assertXMLEqual, assertXMLEqual, assertXMLIdentical, assertXMLIdentical, assertXMLIdentical, assertXMLNotEqual, assertXMLNotEqual, assertXMLNotEqual, assertXMLNotEqual, assertXMLNotEqual, assertXMLNotEqual, assertXMLValid, assertXMLValid, assertXMLValid, assertXMLValid, assertXpathEvaluatesTo, assertXpathEvaluatesTo, assertXpathExists, assertXpathExists, assertXpathNotExists, assertXpathNotExists, assertXpathsEqual, assertXpathsEqual, assertXpathsEqual, assertXpathsEqual, assertXpathsNotEqual, assertXpathsNotEqual, assertXpathsNotEqual, assertXpathsNotEqual, assertXpathValuesEqual, assertXpathValuesEqual, assertXpathValuesEqual, assertXpathValuesEqual, assertXpathValuesNotEqual, assertXpathValuesNotEqual, assertXpathValuesNotEqual, assertXpathValuesNotEqual, compareXML, compareXML, compareXML, compareXML, compareXML, setControlParser, setIgnoreWhitespace, setTestParser
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, 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, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ME

private java.lang.String ME

glob

protected final Global glob

log

private static java.util.logging.Logger log

currImpl

private java.lang.String currImpl

factory

private I_MsgKeyFactory factory

IMPL

static I_MsgKeyFactory[] IMPL
Constructor Detail

MsgKeyFactoryTest

public MsgKeyFactoryTest(Global glob,
                         java.lang.String name,
                         int currImpl)
Method Detail

setUp

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

testParse

public void testParse()
Tries with all known tags


testDefault

public void testDefault()
Tests empty xml string


testToXml

public void testToXml()
Test toXml (parse - createXml - parse again - test)


testPublishKey

public void testPublishKey()
Tests client side PublishKey.


testGetReturnKey

public void testGetReturnKey()
Tests client side GetReturnKey.


testUpdateKey

public void testUpdateKey()
Tests client side UpdateKey.


testEmbeddedKeyTag

public void testEmbeddedKeyTag()
Tests client side PublishKey.


tearDown

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

suite

public static junit.framework.Test suite()
Method is used by TestRunner to load these tests


main

public static void main(java.lang.String[] args)
  java org.xmlBlaster.test.classtest.key.MsgKeyFactoryTest
 


xmlBlaster 2.1.0 API

Copyright © 1999-2011 The xmlBlaster.org contributers.