< prev index next >

test/sun/rmi/runtime/Log/checkLogging/CheckLogging.java

Print this page




  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  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 4402649
  26  * @summary RMI should use new logging APIs. Unit test to exercise
  27  * RMI's use of the java.util.logging API.
  28  * @author Laird Dornin
  29  *
  30  * @library ../../../../../java/rmi/testlibrary




  31  * @build TestLibrary
  32  * @run main/othervm CheckLogging
  33  */
  34 
  35 import java.util.logging.Level;
  36 import java.util.logging.LogRecord;
  37 import java.util.logging.Logger;
  38 import java.util.logging.SimpleFormatter;
  39 import java.util.logging.StreamHandler;
  40 
  41 import java.io.ByteArrayOutputStream;
  42 import java.io.IOException;
  43 import java.io.PrintStream;
  44 import java.io.OutputStream;
  45 
  46 import java.rmi.RemoteException;
  47 import java.rmi.Remote;
  48 import java.rmi.Naming;
  49 import java.rmi.registry.LocateRegistry;
  50 import java.rmi.server.LogStream;




  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  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 4402649
  26  * @summary RMI should use new logging APIs. Unit test to exercise
  27  * RMI's use of the java.util.logging API.
  28  * @author Laird Dornin
  29  *
  30  * @library ../../../../../java/rmi/testlibrary
  31  * @modules java.rmi/sun.rmi.registry
  32  *          java.rmi/sun.rmi.server
  33  *          java.rmi/sun.rmi.transport
  34  *          java.rmi/sun.rmi.transport.tcp
  35  * @build TestLibrary
  36  * @run main/othervm CheckLogging
  37  */
  38 
  39 import java.util.logging.Level;
  40 import java.util.logging.LogRecord;
  41 import java.util.logging.Logger;
  42 import java.util.logging.SimpleFormatter;
  43 import java.util.logging.StreamHandler;
  44 
  45 import java.io.ByteArrayOutputStream;
  46 import java.io.IOException;
  47 import java.io.PrintStream;
  48 import java.io.OutputStream;
  49 
  50 import java.rmi.RemoteException;
  51 import java.rmi.Remote;
  52 import java.rmi.Naming;
  53 import java.rmi.registry.LocateRegistry;
  54 import java.rmi.server.LogStream;


< prev index next >