当前位置: 首页>>代码示例>>Java>>正文


Java SkeletonNotFoundException类代码示例

本文整理汇总了Java中java.rmi.server.SkeletonNotFoundException的典型用法代码示例。如果您正苦于以下问题:Java SkeletonNotFoundException类的具体用法?Java SkeletonNotFoundException怎么用?Java SkeletonNotFoundException使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


SkeletonNotFoundException类属于java.rmi.server包,在下文中一共展示了SkeletonNotFoundException类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setSkeleton

import java.rmi.server.SkeletonNotFoundException; //导入依赖的package包/类
/**
 * Discovers and sets the appropriate skeleton for the impl.
 */
public void setSkeleton(Remote impl) throws RemoteException {
    if (!withoutSkeletons.containsKey(impl.getClass())) {
        try {
            skel = Util.createSkeleton(impl);
        } catch (SkeletonNotFoundException e) {
            /*
             * Ignore exception for skeleton class not found, because a
             * skeleton class is not necessary with the 1.2 stub protocol.
             * Remember that this impl's class does not have a skeleton
             * class so we don't waste time searching for it again.
             */
            withoutSkeletons.put(impl.getClass(), null);
        }
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:19,代码来源:UnicastServerRef.java

示例2: setUp

import java.rmi.server.SkeletonNotFoundException; //导入依赖的package包/类
/**
 * Sets up the fixture, for example, open a network connection. This method
 * is called before a test is executed.
 */
@Override
protected void setUp() {
    errorMessage = "Skeleton Not Found";
    causeMessage = "Caused Exception";
    cause = new SkeletonNotFoundException(causeMessage);
}
 
开发者ID:shannah,项目名称:cn1,代码行数:11,代码来源:SkeletonNotFoundExceptionTest.java

示例3: assertDeserialized

import java.rmi.server.SkeletonNotFoundException; //导入依赖的package包/类
public void assertDeserialized(Serializable initial,
        Serializable deserialized) {

    SerializationTest.THROWABLE_COMPARATOR.assertDeserialized(initial, deserialized);

    SkeletonNotFoundException initEx = (SkeletonNotFoundException) initial;
    SkeletonNotFoundException desrEx = (SkeletonNotFoundException) deserialized;

    assertEquals(initEx.getMessage(), desrEx.getMessage());
    assertEquals(initEx.getCause().getMessage(), desrEx.getCause().getMessage());
}
 
开发者ID:shannah,项目名称:cn1,代码行数:12,代码来源:SkeletonNotFoundExceptionTest.java

示例4: test_Constructor_String

import java.rmi.server.SkeletonNotFoundException; //导入依赖的package包/类
/**
 * @tests java.rmi.server.SkeletonNotFoundException#SkeletonNotFoundException(String)
 */
public void test_Constructor_String() {
    SkeletonNotFoundException e = new SkeletonNotFoundException(errorMessage);
    assertTrue(e instanceof java.rmi.RemoteException);
    assertEquals(errorMessage, e.getMessage());
}
 
开发者ID:shannah,项目名称:cn1,代码行数:9,代码来源:SkeletonNotFoundExceptionTest.java

示例5: test_Constructor_String_Exception

import java.rmi.server.SkeletonNotFoundException; //导入依赖的package包/类
/**
 * @tests java.rmi.server.SkeletonNotFoundException#SkeletonNotFoundException(String,Exception)
 */
public void test_Constructor_String_Exception() {
    SkeletonNotFoundException e = new SkeletonNotFoundException(errorMessage, cause);
    assertEquals(cause.getMessage(), e.getCause().getMessage());
}
 
开发者ID:shannah,项目名称:cn1,代码行数:8,代码来源:SkeletonNotFoundExceptionTest.java

示例6: testSerializationSelf

import java.rmi.server.SkeletonNotFoundException; //导入依赖的package包/类
/**
 * @tests serialization/deserialization.
 */
public void testSerializationSelf() throws Exception {

    SerializationTest.verifySelf(new SkeletonNotFoundException(errorMessage, cause), comparator);
}
 
开发者ID:shannah,项目名称:cn1,代码行数:8,代码来源:SkeletonNotFoundExceptionTest.java

示例7: testSerializationCompatibility

import java.rmi.server.SkeletonNotFoundException; //导入依赖的package包/类
/**
 * @tests serialization/deserialization compatibility with RI.
 */
public void testSerializationCompatibility() throws Exception {

    SerializationTest.verifyGolden(this, new SkeletonNotFoundException(errorMessage, cause), comparator);
}
 
开发者ID:shannah,项目名称:cn1,代码行数:8,代码来源:SkeletonNotFoundExceptionTest.java


注:本文中的java.rmi.server.SkeletonNotFoundException类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。