NameDateSize

..14-Dec-201718

CloseTest.javaH A D14-Dec-20177.4 KiB

Common.javaH A D14-Dec-20173.2 KiB

GetResourceAsStream.javaH A D14-Dec-20174.8 KiB

READMEH A D14-Dec-2017817

serverRoot/H14-Dec-20173

test1/H14-Dec-20173

test2/H14-Dec-20173

README

1test1 and test2 contain two different implementations of the same
2classes. They are compiled and placed into two different target directories
3and two jar files test1.jar and test2.jar.
4
5The same class is in both jars/directories, but returns a different result
6from the TestClass.getValue() method. The test does the following
7
81. copy test1.jar to a working directory and call it test.jar
9
102. load class and invoke method (checking result)
11
123. close the loader
13
144. delete test.jar (check delete succeeds)
15
165. copy test2.jar to same dir and repeat the test
17
186. The two tests are then repeated by copying the directories
19   test1 and test2.
20
21The loader also includes a http:// URL in its search path and a http
22server is used to serve the required class.
23
24serverRoot is used as the root directory for the http server.
25