Path: blob/master/test/functional/cmdLineTests/URLClassLoaderTests/FindStore/readme.txt
12506 views
1#2# Copyright (c) 2001, 2019 IBM Corp. and others3#4# This program and the accompanying materials are made available under5# the terms of the Eclipse Public License 2.0 which accompanies this6# distribution and is available at https://www.eclipse.org/legal/epl-2.0/7# or the Apache License, Version 2.0 which accompanies this distribution and8# is available at https://www.apache.org/licenses/LICENSE-2.0.9#10# This Source Code may also be made available under the following11# Secondary Licenses when the conditions for such availability set12# forth in the Eclipse Public License, v. 2.0 are satisfied: GNU13# General Public License, version 2 with the GNU Classpath14# Exception [1] and GNU General Public License, version 2 with the15# OpenJDK Assembly Exception [2].16#17# [1] https://www.gnu.org/software/classpath/license.html18# [2] http://openjdk.java.net/legal/assembly-exception.html19#20# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception21#2223These tests check the basic find and store functionality of URLClassLoader with various different classpath configurations2425Note here that "noTimestampChecks" stops the shared classes support from recognising that jar files have been updated2627FindStore.BuildInitial28Builds A.jar B.jar C.Jar and D.jar which will be used to test explicit paths29Builds E.jar F.jar G.jar and H.jar which will be used to test relative paths30Builds I.jar, J.jar K.jar and L.jar which will be used to test the net use paths31Builds class files into M_Classes, N_Classes, O_Classes and P_Classes to test directory paths32All of the data classes will print "CACHED" when they are loaded.3334FindStore.StoreExplicit35Runs A_Main which will cause classes to be loaded from A.jar B.jar C.Jar and D.jar.36The classpath used specifies explicit paths.37Nothing.jar is added as the 0th element of the classpath. This is used for testing classpath matching later.3839FindStore.StoreRelative40Runs E_Main which will cause classes to be loaded from E.jar F.jar G.jar and H.jar.41The classpath used specifies relative paths.42Nothing.jar is added as the 1st element of the classpath. This is used for testing classpath matching later.4344FindStore.StoreNetUse45Runs I_Main which will cause classes to be loaded from I.jar, J.jar K.jar and L.jar.46The classpath used specifies net use paths.47Nothing.jar is added as the 3rd element of the classpath. This is used for testing classpath matching later.4849FindStore.StoreClassfile50Runs M_Main which will cause classes to be loaded from M_Classes, N_Classes, O_Classes and P_Classes.51The classpath used specifies directories.52Nothing.jar is added as the 4th element of the classpath. This is used for testing classpath matching later.5354FindStore.BuildVerify55Rebuilds all of the jar files with similar class files which output "LOCAL" instead of "CACHED" when they are loaded.56The classes are in the VerifyClasses subdirectory5758FindStore.FindExplicit59Runs the JVM with "noTimestampChecks" using the same classpath as StoreExplicit.60Expects that the "CACHED" classes will be loaded.6162FindStore.FindRelative63Runs the JVM with "noTimestampChecks" using the same classpath as StoreRelative.64Expects that the "CACHED" classes will be loaded.6566FindStore.FindNetUse67Runs the JVM with "noTimestampChecks" using the same classpath as StoreNetUse.68Expects that the "CACHED" classes will be loaded.6970FindStore.FindClassfile71Runs the JVM with "noTimestampChecks" using the same classpath as StoreClassFile.72Expects that the "CACHED" classes will be loaded.7374FindStore.FindDiffcpExplicit75Runs the JVM with "noTimestampChecks" using a different classpath to StoreExplicit (Nothing.jar is removed).76Expects that the "CACHED" classes will still be loaded, even though the classpaths don't exactly match7778FindStore.FindDiffcpRelative79Runs the JVM with "noTimestampChecks" using a different classpath to StoreRelative (Nothing.jar is removed).80Expects that the "CACHED" classes will still be loaded, even though the classpaths don't exactly match8182FindStore.FindDiffcpNetUse83Runs the JVM with "noTimestampChecks" using a different classpath to StoreNetUse (Nothing.jar is removed).84Expects that the "CACHED" classes will still be loaded, even though the classpaths don't exactly match8586FindStore.FindDiffcpClassfile87Runs the JVM with "noTimestampChecks" using a different classpath to StoreClassFile (Nothing.jar is removed).88Expects that the "CACHED" classes will still be loaded, even though the classpaths don't exactly match899091