本文整理汇总了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);
}
}
}
示例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);
}
示例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());
}
示例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());
}
示例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());
}
示例6: testSerializationSelf
import java.rmi.server.SkeletonNotFoundException; //导入依赖的package包/类
/**
* @tests serialization/deserialization.
*/
public void testSerializationSelf() throws Exception {
SerializationTest.verifySelf(new SkeletonNotFoundException(errorMessage, cause), comparator);
}
示例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);
}