org.davesag.generica.test
Class StringUtilsTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.davesag.generica.test.StringUtilsTest
All Implemented Interfaces:
Serializable, Test

public class StringUtilsTest
extends TestCase
implements Serializable

StringUtilsTest is collection of all of the tests on the StringUtils.

Since:
Generica 1.0
Version:
CVS Revision $Id: StringUtilsTest.java,v 1.21 2004/04/06 15:40:42 davesag Exp $
Author:
Dave Sag http://www.davesag.com
See Also:
Serialized Form

Constructor Summary
StringUtilsTest()
          null constructor
StringUtilsTest(String name)
          constructor that takes a test name
 
Method Summary
static Test suite()
          test suite
 void testComplexFixSorts()
          tests that we can turn a complex sort string into a hibernate ready sort command.
 void testGetIpNumberLocalhost()
          tests that we can get an ip number for localhost
 void testListActors()
          tests that we can get a list of actors from a param string.
 void testListPresenters()
          tests that we can get a list of presenters from a param string.
 void testNullToBlank()
          a quick test that the nullToBlank method works.
 void testParseBlankParam()
          tests that parsing a blank param string returns an empty Map.
 void testParseComplexParam()
          tests that we can parse complex params.
 void testParseComplexParamWithWhiteSpace()
          tests that we can parse complex params.
 void testParseNullParam()
          tests that parsing a null param string returns an empty Map.
 void testParseSimpleNonDefaultParam()
          tests that we can parse simple params.
 void testParseSimpleParam()
          tests that we can parse simple params.
 void testParsingComplexPresentationParam()
          tests that parsing a complex presentation param works okay.
 void testParsingMoreComplexPresentationParam()
          tests that parsing a more complex presentation param works okay.
 void testParsingSimpleListParam()
          tests that parsing a simple list param works okay.
 void testParsingSimplePresentationParam()
          tests that parsing a simple presentation param works okay.
 void testSimpleFixSorts()
          tests that we can turn a simple sort string into a hibernate ready sort command.
 String toString()
          test name
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown
 
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

StringUtilsTest

public StringUtilsTest()
null constructor


StringUtilsTest

public StringUtilsTest(String name)
constructor that takes a test name

Parameters:
name - the name of this suite of tests
Method Detail

testNullToBlank

public void testNullToBlank()
a quick test that the nullToBlank method works.


testParseSimpleParam

public void testParseSimpleParam()
tests that we can parse simple params.


testParseSimpleNonDefaultParam

public void testParseSimpleNonDefaultParam()
tests that we can parse simple params.


testParseComplexParam

public void testParseComplexParam()
tests that we can parse complex params.


testParseComplexParamWithWhiteSpace

public void testParseComplexParamWithWhiteSpace()
tests that we can parse complex params.


testParseNullParam

public void testParseNullParam()
tests that parsing a null param string returns an empty Map.


testParseBlankParam

public void testParseBlankParam()
tests that parsing a blank param string returns an empty Map.


testParsingSimplePresentationParam

public void testParsingSimplePresentationParam()
tests that parsing a simple presentation param works okay.


testParsingComplexPresentationParam

public void testParsingComplexPresentationParam()
tests that parsing a complex presentation param works okay.


testParsingMoreComplexPresentationParam

public void testParsingMoreComplexPresentationParam()
tests that parsing a more complex presentation param works okay.


testParsingSimpleListParam

public void testParsingSimpleListParam()
tests that parsing a simple list param works okay. If this works and the presentation param tests worked then it is fair to assume that all the complex tests would work for this too as they all use the same code under the hood.


testSimpleFixSorts

public void testSimpleFixSorts()
tests that we can turn a simple sort string into a hibernate ready sort command.


testComplexFixSorts

public void testComplexFixSorts()
tests that we can turn a complex sort string into a hibernate ready sort command.


testGetIpNumberLocalhost

public void testGetIpNumberLocalhost()
tests that we can get an ip number for localhost


testListPresenters

public void testListPresenters()
tests that we can get a list of presenters from a param string.


testListActors

public void testListActors()
tests that we can get a list of actors from a param string.


suite

public static Test suite()
test suite

Returns:
suite of tests

toString

public String toString()
test name

Returns:
name of test


Dave Sag Generica API version 0.5.9 - (prerelease) Copyright 2003 - 2004 Dave Sag.