org.exolab.jmscts.test.message.properties
Class PropertyConversionTest
java.lang.Object
|
+--junit.framework.Assert
|
+--junit.framework.TestCase
|
+--org.exolab.jmscts.core.JMSTestCase
|
+--org.exolab.jmscts.core.AbstractConnectionFactoryTestCase
|
+--org.exolab.jmscts.core.AbstractConnectionTestCase
|
+--org.exolab.jmscts.core.AbstractSessionTestCase
|
+--org.exolab.jmscts.core.AbstractMessageTestCase
|
+--org.exolab.jmscts.test.message.properties.PropertyConversionTest
- All Implemented Interfaces:
- ConnectionFactoryTestCase, ConnectionTestCase, JMSTest, MessageTestCase, PropertyValues, SessionTestCase, junit.framework.Test
- public class PropertyConversionTest
- extends AbstractMessageTestCase
- implements PropertyValues
This class tests message property conversion
- Version:
- $Revision: 1.5 $
- Author:
- Tim Anderson
- See Also:
AbstractMessageTestCase
Method Summary |
static junit.framework.Test |
suite()
Sets up the test suite |
void |
testBoolean()
Verifies boolean property conversion |
void |
testByte()
Verifies byte property conversion |
void |
testDouble()
Verifies double property conversion |
void |
testFloat()
Verifies float property conversion |
void |
testInt()
Verifies int property conversion |
void |
testLong()
Verifies long property conversion |
void |
testNullToPrimitive()
Verifies that attempting to read a null as a primitive type is
equivalent to calling the primitive's corresponding valueOf(String)
conversion method with a null value. |
void |
testShort()
Verifies short property conversion |
void |
testStringBoolean()
Verifies string <-> boolean property conversions |
void |
testStringByte()
Verifies string <-> byte property conversions |
void |
testStringDouble()
Verifies string <-> double property conversions |
void |
testStringFloat()
Verifies string <-> float property conversions |
void |
testStringInt()
Verifies string <-> int property conversions |
void |
testStringLong()
Verifies string <-> long property conversions |
void |
testStringObject()
Verifies string <-> object property conversions |
void |
testStringShort()
Verifies string <-> short property conversions |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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 |
Methods inherited from interface junit.framework.Test |
countTestCases, run |
PropertyConversionTest
public PropertyConversionTest(java.lang.String name)
- Construct a new
PropertyConversionTest
- Parameters:
name
- the name of test case
suite
public static junit.framework.Test suite()
- Sets up the test suite
- Returns:
- an instance of this class that may be run by
JMSTestRunner
testBoolean
public void testBoolean()
throws java.lang.Exception
- Verifies boolean property conversion
- Throws:
java.lang.Exception
- for any error
testByte
public void testByte()
throws java.lang.Exception
- Verifies byte property conversion
- Throws:
java.lang.Exception
- for any error
testShort
public void testShort()
throws java.lang.Exception
- Verifies short property conversion
- Throws:
java.lang.Exception
- for any error
testInt
public void testInt()
throws java.lang.Exception
- Verifies int property conversion
- Throws:
java.lang.Exception
- for any error
testLong
public void testLong()
throws java.lang.Exception
- Verifies long property conversion
- Throws:
java.lang.Exception
- for any error
testFloat
public void testFloat()
throws java.lang.Exception
- Verifies float property conversion
- Throws:
java.lang.Exception
- for any error
testDouble
public void testDouble()
throws java.lang.Exception
- Verifies double property conversion
- Throws:
java.lang.Exception
- for any error
testStringObject
public void testStringObject()
throws java.lang.Exception
- Verifies string <-> object property conversions
- Throws:
java.lang.Exception
- for any error
testStringBoolean
public void testStringBoolean()
throws java.lang.Exception
- Verifies string <-> boolean property conversions
- Throws:
java.lang.Exception
- for any error
testStringByte
public void testStringByte()
throws java.lang.Exception
- Verifies string <-> byte property conversions
- Throws:
java.lang.Exception
- for any error
testStringShort
public void testStringShort()
throws java.lang.Exception
- Verifies string <-> short property conversions
- Throws:
java.lang.Exception
- for any error
testStringInt
public void testStringInt()
throws java.lang.Exception
- Verifies string <-> int property conversions
- Throws:
java.lang.Exception
- for any error
testStringLong
public void testStringLong()
throws java.lang.Exception
- Verifies string <-> long property conversions
- Throws:
java.lang.Exception
- for any error
testStringFloat
public void testStringFloat()
throws java.lang.Exception
- Verifies string <-> float property conversions
- Throws:
java.lang.Exception
- for any error
testStringDouble
public void testStringDouble()
throws java.lang.Exception
- Verifies string <-> double property conversions
- Throws:
java.lang.Exception
- for any error
testNullToPrimitive
public void testNullToPrimitive()
throws java.lang.Exception
- Verifies that attempting to read a null as a primitive type is
equivalent to calling the primitive's corresponding valueOf(String)
conversion method with a null value.
- Throws:
java.lang.Exception
- for any error
Copyright © 2001-2004 JMS CTS Team. All Rights Reserved.