net.groboclown.util.classes.v1.tests
Class TestClassUtil

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--net.groboclown.util.classes.v1.tests.TestClassUtil
All Implemented Interfaces:
junit.framework.Test

public class TestClassUtil
extends junit.framework.TestCase

Just like util.http.tests, this uses the Sourceforge account to ensure that the URLs work correctly. It loads the sample applet "BeliefOfTheDay" to make sure that this is able to load classes remotely. As insurance, this also tests to make sure that the same applet is not in the current classpath.


Inner Class Summary
static class TestClassUtil.InnerClass
           
 
Field Summary
private static String BELIEF_CLASS
           
private static String BELIEF_JAR
           
private static Class THIS_CLASS
           
 
Fields inherited from class junit.framework.TestCase
fName
 
Constructor Summary
TestClassUtil(String name)
           
 
Method Summary
static void main(String[] args)
           
protected  void setUp()
           
protected  ClassUtil startTest()
           
static junit.framework.Test suite()
           
protected  void tearDown()
           
 void testCreateObject1()
           
 void testCreateObject2()
           
 void testCreateObject3()
           
 void testFlush()
           
 void testGetClass1()
           
 void testGetClass2()
           
 void testInstantiate()
           
 void tsetIsJdk2Compatible()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

THIS_CLASS

private static final Class THIS_CLASS

BELIEF_CLASS

private static final String BELIEF_CLASS

BELIEF_JAR

private static final String BELIEF_JAR
Constructor Detail

TestClassUtil

public TestClassUtil(String name)
Method Detail

suite

public static junit.framework.Test suite()

main

public static void main(String[] args)

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class junit.framework.TestCase

tearDown

protected void tearDown()
                 throws Exception
Overrides:
tearDown in class junit.framework.TestCase

testInstantiate

public void testInstantiate()

testGetClass1

public void testGetClass1()

testGetClass2

public void testGetClass2()

testFlush

public void testFlush()

testCreateObject1

public void testCreateObject1()

testCreateObject2

public void testCreateObject2()

testCreateObject3

public void testCreateObject3()

tsetIsJdk2Compatible

public void tsetIsJdk2Compatible()

startTest

protected ClassUtil startTest()


Written under the LGPL