org.apache.tapestry.coerce
Class TestValueConverter

java.lang.Object
  extended by BaseComponentTestCase
      extended by org.apache.tapestry.coerce.TestValueConverter

public class TestValueConverter
extends BaseComponentTestCase

Tests for ValueConverterImpl.

Since:
4.0
Author:
Howard M. Lewis Ship

Constructor Summary
TestValueConverter()
           
 
Method Summary
 void testAlreadyCorrectPrimitiveType()
          Check that primitive types are converted to equivalent wrapper classes for the assignable check.
 void testAlreadyCorrectType()
           
 void testConverterFound()
           
 void testConverterFoundForNullValue()
           
 void testInvalidStringToNumber()
           
 void testNoConverter()
           
 void testNoConverterFoundForNullValue()
           
 void testNoConverterPrimitive()
          Verify that the message generated for a primtive type identifies the wrapper class.
 void testNumberToNumber()
           
 void testStringToNonNumericPrimitive()
           
 void testStringToNumberPrimitive()
           
 void testStringToNumberWrapper()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestValueConverter

public TestValueConverter()
Method Detail

testAlreadyCorrectType

public void testAlreadyCorrectType()

testAlreadyCorrectPrimitiveType

public void testAlreadyCorrectPrimitiveType()
Check that primitive types are converted to equivalent wrapper classes for the assignable check. Ok, maybe we should check all the primitive types.


testNoConverter

public void testNoConverter()

testNoConverterPrimitive

public void testNoConverterPrimitive()
Verify that the message generated for a primtive type identifies the wrapper class.


testConverterFound

public void testConverterFound()

testConverterFoundForNullValue

public void testConverterFoundForNullValue()

testNoConverterFoundForNullValue

public void testNoConverterFoundForNullValue()

testStringToNumberPrimitive

public void testStringToNumberPrimitive()

testStringToNumberWrapper

public void testStringToNumberWrapper()

testInvalidStringToNumber

public void testInvalidStringToNumber()

testStringToNonNumericPrimitive

public void testStringToNonNumericPrimitive()

testNumberToNumber

public void testNumberToNumber()


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.