848N/Atest1 and test2 contain two different implementations of the same
848N/Aclasses. They are compiled and placed into two different target directories
848N/Aand two jar files test1.jar and test2.jar.
848N/A
848N/AThe same class is in both jars/directories, but returns a different result
848N/Afrom the TestClass.getValue() method. The test does the following
848N/A
848N/A1. copy test1.jar to a working directory and call it test.jar
848N/A
848N/A2. load class and invoke method (checking result)
848N/A
848N/A3. close the loader
848N/A
848N/A4. delete test.jar (check delete succeeds)
848N/A
848N/A5. copy test2.jar to same dir and repeat the test
848N/A
848N/A6. The two tests are then repeated by copying the directories
848N/A test1 and test2.
848N/A
848N/AThe loader also includes a http:// URL in its search path and a http
848N/Aserver is used to serve the required class.
848N/A
848N/AserverRoot is used as the root directory for the http server.