Installed.java revision 0
4005N/A/*
4248N/A * Copyright 2001 Sun Microsystems, Inc. All Rights Reserved.
4005N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4005N/A *
4005N/A * This code is free software; you can redistribute it and/or modify it
4005N/A * under the terms of the GNU General Public License version 2 only, as
4005N/A * published by the Free Software Foundation.
4005N/A *
4005N/A * This code is distributed in the hope that it will be useful, but WITHOUT
4005N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4005N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
4005N/A * version 2 for more details (a copy is included in the LICENSE file that
4005N/A * accompanied this code).
4005N/A *
4005N/A * You should have received a copy of the GNU General Public License version
4005N/A * 2 along with this work; if not, write to the Free Software Foundation,
4005N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4005N/A *
4005N/A * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
4005N/A * CA 95054 USA or visit www.sun.com if you need additional information or
4005N/A * have any questions.
4005N/A */
4005N/A
4005N/A/* @test
4005N/A * @bug 4418673
4005N/A * @summary verify that with the java.rmi.server.RMIClassLoaderSpi system
4005N/A * property not set, the first provider located through java.util.ServiceLoader
4005N/A * (which should be "TestProvider2") will be used by the RMIClassLoader API.
4005N/A * @author Peter Jones
4005N/A *
4005N/A * @library ../../../testlibrary
4005N/A * @build TestLibrary
5551N/A * @build Installed
4005N/A * @build ServiceConfiguration
4005N/A * @build TestProvider
4005N/A * @build TestProvider2
4005N/A * @run main/othervm/policy=security.policy Installed
4005N/A */
4005N/A
4005N/Apublic class Installed {
4005N/A public static void main(String[] args) throws Exception {
4005N/A
4005N/A ServiceConfiguration.installServiceConfigurationFile();
4005N/A
4005N/A TestProvider.exerciseTestProvider(
4005N/A TestProvider2.loadClassReturn,
4005N/A TestProvider2.loadProxyClassReturn,
4005N/A TestProvider2.getClassLoaderReturn,
4005N/A TestProvider2.getClassAnnotationReturn,
4005N/A TestProvider2.invocations);
4005N/A }
4005N/A}
4005N/A