org.springframework.batch.support
Class PropertiesConverterTests

java.lang.Object
  extended by TestCase
      extended by org.springframework.batch.support.PropertiesConverterTests

public class PropertiesConverterTests
extends TestCase

Unit tests for PropertiesConverter

Author:
Robert Kasanicky

Constructor Summary
PropertiesConverterTests()
           
 
Method Summary
 void testInvalidConversion()
          Converting a String to Properties and back does not return equal String! See PropertiesConverter javadoc for more details.
 void testPropertiesToStringNull()
          Null or empty properties should be converted to empty String
 void testRegularConversionWithComma()
          Check that Properties can be comma delimited.
 void testRegularConversionWithCommaAndNewline()
          Check that Properties can be newline delimited.
 void testRegularConversionWithCommaAndWhitespace()
          Check that Properties can be comma delimited with extra whitespace.
 void testStringToPropertiesNull()
          Null String should be converted to empty Properties
 void testTwoWayRegularConversion()
          Check that Properties can be converted to String and back correctly.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesConverterTests

public PropertiesConverterTests()
Method Detail

testTwoWayRegularConversion

public void testTwoWayRegularConversion()
Check that Properties can be converted to String and back correctly.


testRegularConversionWithComma

public void testRegularConversionWithComma()
Check that Properties can be comma delimited.


testRegularConversionWithCommaAndWhitespace

public void testRegularConversionWithCommaAndWhitespace()
Check that Properties can be comma delimited with extra whitespace.


testRegularConversionWithCommaAndNewline

public void testRegularConversionWithCommaAndNewline()
Check that Properties can be newline delimited.


testInvalidConversion

public void testInvalidConversion()
Converting a String to Properties and back does not return equal String! See PropertiesConverter javadoc for more details.


testStringToPropertiesNull

public void testStringToPropertiesNull()
Null String should be converted to empty Properties


testPropertiesToStringNull

public void testPropertiesToStringNull()
Null or empty properties should be converted to empty String



Copyright © 2008 SpringSource. All Rights Reserved.