Package java.rmi.server

Examples of java.rmi.server.LogStream


    }
   
    public void testSetOutputStreamBad() throws Exception {
        // Regression test HARMONY-1198
        try {
            LogStream ls = LogStream.log("proba");
            ls.setOutputStream(null);
            fail("Expected NPE");
        } catch (NullPointerException e) {
            // expected
        }
    }
View Full Code Here


        try {
            // set empty default stream to not print garbage to System.out/err
            LogStream.setDefaultStream(
                    new PrintStream(new ByteArrayOutputStream()));
            LogStream ls = LogStream.log("test");

            for (int i = 0; i < invalidPairs.length; ++i) {
                try {
                    ls.write(new byte[] { 1, 1 },
                            invalidPairs[i][0], invalidPairs[i][1]);
                    fail("IndexOutOfBoundsException "
                            + "is not thrown when off = " + invalidPairs[i][0]
                            + ", len = " + invalidPairs[i][1]);
                } catch (IndexOutOfBoundsException e) {
View Full Code Here

TOP

Related Classes of java.rmi.server.LogStream

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.