org.opensubsystems.core.util
Class StringUtilsTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.opensubsystems.core.util.StringUtilsTest
All Implemented Interfaces:
junit.framework.Test

public class StringUtilsTest
extends junit.framework.TestCase

Tests for common operations with strings.

Version:
$Id: StringUtilsTest.java,v 1.4 2007/01/07 06:14:55 bastafidli Exp $
Author:
Miro Halas
Code reviewer:
Miro Halas
Code reviewed:
Initial revision

Constructor Summary
StringUtilsTest(java.lang.String arg0)
          Constructor for StringUtilsTest.
 
Method Summary
protected  void setUp()
          Set up environment for the test case.
protected  void tearDown()
          Restore original environment after the test case.
 void testParseFraction()
          Test parsing of fractions using parseFraction.
 void testParseQuotedStringToStringArray()
          Test parsing of string using parseQuotedStringToStringArray.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringUtilsTest

public StringUtilsTest(java.lang.String arg0)
Constructor for StringUtilsTest.

Parameters:
arg0 - - name of the test
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Set up environment for the test case.

Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception - - an error has occured during setting up test

tearDown

protected void tearDown()
                 throws java.lang.Exception
Restore original environment after the test case.

Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception - - an error has occured during tearing down up test

testParseFraction

public void testParseFraction()
Test parsing of fractions using parseFraction.


testParseQuotedStringToStringArray

public void testParseQuotedStringToStringArray()
                                        throws java.lang.Exception
Test parsing of string using parseQuotedStringToStringArray.

Throws:
java.lang.Exception - - an erro has occured during test


Copyright © 2003 - 2006 OpenSubsystems s.r.o.