|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase org.apache.commons.betwixt.dotbetwixt.TestMsgParser
public class TestMsgParser
Tests the marshalling and unmarshalling of MsgBeans with Betwixt. The problem tested here is that an element without an updater would not process it's attributes correctly even though they had updaters.
Constructor Summary | |
---|---|
TestMsgParser()
|
Method Summary | |
---|---|
static java.lang.String |
getAsXml(MsgBean msg)
Returns the bean as an xml string. |
static MsgBean |
parseMsg(java.lang.String xmlMessage)
Parses the passed in message xml |
protected void |
setUp()
|
void |
testGetAsXml()
|
void |
testParseMsg()
|
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, 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 |
Constructor Detail |
---|
public TestMsgParser()
Method Detail |
---|
protected void setUp() throws java.lang.Exception
setUp
in class junit.framework.TestCase
java.lang.Exception
public void testGetAsXml() throws java.lang.Exception
java.lang.Exception
public void testParseMsg() throws java.lang.Exception
java.lang.Exception
public static final java.lang.String getAsXml(MsgBean msg) throws java.lang.Exception
msg
-
java.lang.Exception
public static final MsgBean parseMsg(java.lang.String xmlMessage) throws java.lang.Exception
xmlMessage
-
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |