net.groboclown.util.classes.v1.jdk0.tests
Class TestArrayClassLoader

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

public class TestArrayClassLoader
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
private  class TestArrayClassLoader.NullBytecodeSource
           
 
Field Summary
protected static String BAD_CLASS
           
private static Class THIS_CLASS
           
 
Fields inherited from class junit.framework.TestCase
fName
 
Constructor Summary
TestArrayClassLoader(String name)
           
 
Method Summary
static void main(String[] args)
           
protected  void setUp()
           
protected  ArrayClassLoader setupLoader()
           
static junit.framework.Test suite()
           
protected  void tearDown()
           
 void testAddClassNull1()
           
 void testAddClassNull2()
           
 void testAddClassNull3()
           
 void testInstantiate()
           
 void testLoadClassBad1()
           
 void testLoadClassNull1()
           
 void testSetBytecodeSource()
           
 void testSetBytecodeSourceNull()
           
 
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

BAD_CLASS

protected static final String BAD_CLASS
Constructor Detail

TestArrayClassLoader

public TestArrayClassLoader(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()

testSetBytecodeSource

public void testSetBytecodeSource()

testSetBytecodeSourceNull

public void testSetBytecodeSourceNull()

testAddClassNull1

public void testAddClassNull1()

testAddClassNull2

public void testAddClassNull2()

testAddClassNull3

public void testAddClassNull3()

testLoadClassNull1

public void testLoadClassNull1()
                        throws ClassNotFoundException

testLoadClassBad1

public void testLoadClassBad1()

setupLoader

protected ArrayClassLoader setupLoader()


Written under the LGPL