Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2018-10-12 15:36:29 -0400
committerslewis2018-10-12 15:36:29 -0400
commitb16f4f6b0245cc185cbeff351c424407ff889cb3 (patch)
tree60d3b9d46d1af63fc383431bcc902d614a02a1c5
parent5ebd0b5b0e2e8f17886b62337e7e9065dafb72ce (diff)
downloadorg.eclipse.ecf-b16f4f6b0245cc185cbeff351c424407ff889cb3.tar.gz
org.eclipse.ecf-b16f4f6b0245cc185cbeff351c424407ff889cb3.tar.xz
org.eclipse.ecf-b16f4f6b0245cc185cbeff351c424407ff889cb3.zip
Fix for bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=540082
added test case Change-Id: I0000000000000000000000000000000000000000
-rw-r--r--tests/bundles/org.eclipse.ecf.tests.core/src/org/eclipse/ecf/tests/core/util/OSGIObjectStreamTest.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/bundles/org.eclipse.ecf.tests.core/src/org/eclipse/ecf/tests/core/util/OSGIObjectStreamTest.java b/tests/bundles/org.eclipse.ecf.tests.core/src/org/eclipse/ecf/tests/core/util/OSGIObjectStreamTest.java
index 352ffbfe3..f70463488 100644
--- a/tests/bundles/org.eclipse.ecf.tests.core/src/org/eclipse/ecf/tests/core/util/OSGIObjectStreamTest.java
+++ b/tests/bundles/org.eclipse.ecf.tests.core/src/org/eclipse/ecf/tests/core/util/OSGIObjectStreamTest.java
@@ -156,4 +156,13 @@ public class OSGIObjectStreamTest extends TestCase {
ITestEnum desTestEnum = (ITestEnum) serializeDeserialize(testEnum);
assertEquals(desTestEnum.getColumnType().name(),testEnum.getColumnType().name());
}
+
+ public void testException() throws Exception {
+ String messageString = "test";
+ Exception except = new Exception(messageString);
+ Object deserializedExcept = serializeDeserialize(except);
+ // Same class
+ assertEquals(except.getClass(),deserializedExcept.getClass());
+ assertTrue(((Exception) deserializedExcept).getMessage().equals(messageString));
+ }
}

Back to the top