org.jcoderz.commons.types.samples
Class TestEnumTest

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

public class TestEnumTest
extends TestCase

Test generated enum type

Author:
Andreas Mandel

Constructor Summary
TestEnumTest()
           
 
Method Summary
 void testFromInt()
          Test the fromInt method.
 void testFromIntThrowsRuntimeException()
          Test failure of fromInt method.
 void testFromStringThrowsRuntimeException()
          Test failure of fromString method.
 void testToInt()
          Test the toInt method.
 void testToString()
          Test the toString method.
 void testValueMap()
          Test the fromInt 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

TestEnumTest

public TestEnumTest()
Method Detail

testFromInt

public void testFromInt()
                 throws Throwable
Test the fromInt method.

Throws:
Throwable - in case of any error.

testToInt

public void testToInt()
               throws Throwable
Test the toInt method.

Throws:
Throwable - in case of any error.

testToString

public void testToString()
                  throws Throwable
Test the toString method.

Throws:
Throwable - in case of any error.

testFromIntThrowsRuntimeException

public void testFromIntThrowsRuntimeException()
                                       throws Throwable
Test failure of fromInt method.

Throws:
Throwable - in case of any error.

testFromStringThrowsRuntimeException

public void testFromStringThrowsRuntimeException()
                                          throws Throwable
Test failure of fromString method.

Throws:
Throwable - in case of any error.

testValueMap

public void testValueMap()
                  throws Throwable
Test the fromInt method.

Throws:
Throwable - in case of any error.


Copyright 2007 The jCoderZ Project.