org.springframework.batch.support
Class PropertiesConverterTests

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.springframework.batch.support.PropertiesConverterTests
All Implemented Interfaces:
junit.framework.Test

public class PropertiesConverterTests
extends junit.framework.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 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
 

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.