org.jcoderz.commons.types
Class YearMonthTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.jcoderz.commons.types.YearMonthTest
All Implemented Interfaces:
Test

public class YearMonthTest
extends TestCase

Tests the YearMonth class.

Author:
Andreas Mandel

Constructor Summary
YearMonthTest()
           
 
Method Summary
 void testFromStringNegative()
          Tests the fromString method (negative).
 void testFromStringPositive()
          Tests the fromString method (positive).
 void testToPeriod()
          Test the to period method.
 
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, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

YearMonthTest

public YearMonthTest()
Method Detail

testFromStringPositive

public final void testFromStringPositive()
Tests the fromString method (positive).


testFromStringNegative

public final void testFromStringNegative()
Tests the fromString method (negative).


testToPeriod

public final void testToPeriod()
                        throws Exception
Test the to period method.

Throws:
Exception - in case of a testcase error.


Copyright 2007 The jCoderZ Project.