javautils
Class ClassesTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--javautils.ClassesTest
All Implemented Interfaces:
junit.framework.Test

public class ClassesTest
extends junit.framework.TestCase

A [JUnit] test for Classes.


Constructor Summary
ClassesTest()
           
 
Method Summary
 void testAsObjectType()
          Tests that the Classes.asObjectType(java.lang.Class)-method recognizes the primitive types.
 void testClassForName()
          Tests that the Class.forName(java.lang.String)-method does not recognize the primitive type boolean.
 void testForName()
          Tests that the Classes.forName(java.lang.String)-method also recognizes the primitives types.
 
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

ClassesTest

public ClassesTest()
Method Detail

testClassForName

public void testClassForName()

Tests that the Class.forName(java.lang.String)-method does not recognize the primitive type boolean. The intention is to make sure that the complexity of the Classes.forName(java.lang.String)-method is justified.


testForName

public void testForName()

Tests that the Classes.forName(java.lang.String)-method also recognizes the primitives types.


testAsObjectType

public void testAsObjectType()

Tests that the Classes.asObjectType(java.lang.Class)-method recognizes the primitive types.