Package java.rmi

Examples of java.rmi.UnknownHostException


    /**
     * {@link java.rmi.UnknownHostException#UnknownHostException(java.lang.String, java.lang.Exception)}.
     */
    public void testUnknownHostExceptionStringException() {
        NullPointerException npe = new NullPointerException();
        UnknownHostException e = new UnknownHostException("fixture", npe);
        assertTrue(e.getMessage().indexOf("fixture") > -1);
        assertSame(npe, e.getCause());
        assertSame(npe, e.detail);
    }
View Full Code Here


    /**
     * {@link java.rmi.UnknownHostException#UnknownHostException(java.lang.String)}.
     */
    public void testUnknownHostExceptionString() {
        UnknownHostException e = new UnknownHostException("fixture");
        assertEquals("fixture", e.getMessage());
        assertNull(e.getCause());
        assertNull(e.detail);
    }
View Full Code Here

TOP

Related Classes of java.rmi.UnknownHostException

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.