< prev index next >

test/sun/rmi/runtime/Log/6409194/NoConsoleOutput.java

Print this page




  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /* @test
  25  * @bug 6409194
  26  * @summary There should be no console output caused by the RMI
  27  * implementation's logging, except as explicitly configured in the
  28  * logging properties file, if none of the legacy sun.rmi.*.logLevel
  29  * system properties are set.
  30  *
  31  * @author Peter Jones
  32  *
  33  * @library ../../../../../java/rmi/testlibrary




  34  * @build TestLibrary JavaVM
  35  * @run main/othervm NoConsoleOutput
  36  */
  37 
  38 import java.io.ByteArrayOutputStream;
  39 import java.io.File;
  40 import java.rmi.Remote;
  41 import java.rmi.RemoteException;
  42 import java.rmi.registry.LocateRegistry;
  43 import java.rmi.registry.Registry;
  44 import java.rmi.server.UnicastRemoteObject;
  45 
  46 public class NoConsoleOutput {
  47 
  48     public static void main(String[] args) throws Exception {
  49         System.err.println("\nRegression test for bug 6409194\n");
  50 
  51         /*
  52          * Exdecute a subprocess VM that does a bunch of RMI activity
  53          * with a logging configuration file that does not specify a




  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /* @test
  25  * @bug 6409194
  26  * @summary There should be no console output caused by the RMI
  27  * implementation's logging, except as explicitly configured in the
  28  * logging properties file, if none of the legacy sun.rmi.*.logLevel
  29  * system properties are set.
  30  *
  31  * @author Peter Jones
  32  *
  33  * @library ../../../../../java/rmi/testlibrary
  34  * @modules java.rmi/sun.rmi.registry
  35  *          java.rmi/sun.rmi.server
  36  *          java.rmi/sun.rmi.transport
  37  *          java.rmi/sun.rmi.transport.tcp
  38  * @build TestLibrary JavaVM
  39  * @run main/othervm NoConsoleOutput
  40  */
  41 
  42 import java.io.ByteArrayOutputStream;
  43 import java.io.File;
  44 import java.rmi.Remote;
  45 import java.rmi.RemoteException;
  46 import java.rmi.registry.LocateRegistry;
  47 import java.rmi.registry.Registry;
  48 import java.rmi.server.UnicastRemoteObject;
  49 
  50 public class NoConsoleOutput {
  51 
  52     public static void main(String[] args) throws Exception {
  53         System.err.println("\nRegression test for bug 6409194\n");
  54 
  55         /*
  56          * Exdecute a subprocess VM that does a bunch of RMI activity
  57          * with a logging configuration file that does not specify a


< prev index next >