summaryrefslogtreecommitdiff
path: root/java/test/Ice/slicing/exceptions/TestI.java
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2009-03-24 12:31:31 -0230
committerMatthew Newhook <matthew@zeroc.com>2009-03-24 12:31:31 -0230
commit4cc5d77c383b6c91c3af9fe44df9687bb9b15580 (patch)
tree64ce3d6cf35b15497de50f298f7225a8c72f64b6 /java/test/Ice/slicing/exceptions/TestI.java
parentMerge commit 'origin/R3_3_branch' (diff)
downloadice-4cc5d77c383b6c91c3af9fe44df9687bb9b15580.tar.bz2
ice-4cc5d77c383b6c91c3af9fe44df9687bb9b15580.tar.xz
ice-4cc5d77c383b6c91c3af9fe44df9687bb9b15580.zip
Merged android-testsuite branch.
Diffstat (limited to 'java/test/Ice/slicing/exceptions/TestI.java')
-rw-r--r--java/test/Ice/slicing/exceptions/TestI.java171
1 files changed, 171 insertions, 0 deletions
diff --git a/java/test/Ice/slicing/exceptions/TestI.java b/java/test/Ice/slicing/exceptions/TestI.java
new file mode 100644
index 00000000000..cd26ea02403
--- /dev/null
+++ b/java/test/Ice/slicing/exceptions/TestI.java
@@ -0,0 +1,171 @@
+// **********************************************************************
+//
+// Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved.
+//
+// This copy of Ice is licensed to you under the terms described in the
+// ICE_LICENSE file included in this distribution.
+//
+// **********************************************************************
+
+package test.Ice.slicing.exceptions;
+
+import test.Ice.slicing.exceptions.server.Test.Base;
+import test.Ice.slicing.exceptions.server.Test.KnownDerived;
+import test.Ice.slicing.exceptions.server.Test.KnownIntermediate;
+import test.Ice.slicing.exceptions.server.Test.KnownMostDerived;
+import test.Ice.slicing.exceptions.server.Test.UnknownDerived;
+import test.Ice.slicing.exceptions.server.Test.UnknownIntermediate;
+import test.Ice.slicing.exceptions.server.Test.UnknownMostDerived1;
+import test.Ice.slicing.exceptions.server.Test.UnknownMostDerived2;
+import test.Ice.slicing.exceptions.server.Test._TestIntfDisp;
+
+public final class TestI extends _TestIntfDisp
+{
+ public
+ TestI(Ice.ObjectAdapter adapter)
+ {
+ _adapter = adapter;
+ }
+
+ public void
+ shutdown(Ice.Current current)
+ {
+ _adapter.getCommunicator().shutdown();
+ }
+
+ public void
+ baseAsBase(Ice.Current current)
+ throws Base
+ {
+ Base b = new Base();
+ b.b = "Base.b";
+ throw b;
+ }
+
+ public void
+ unknownDerivedAsBase(Ice.Current current)
+ throws Base
+ {
+ UnknownDerived d = new UnknownDerived();
+ d.b = "UnknownDerived.b";
+ d.ud = "UnknownDerived.ud";
+ throw d;
+ }
+
+ public void
+ knownDerivedAsBase(Ice.Current current)
+ throws Base
+ {
+ KnownDerived d = new KnownDerived();
+ d.b = "KnownDerived.b";
+ d.kd = "KnownDerived.kd";
+ throw d;
+ }
+
+ public void
+ knownDerivedAsKnownDerived(Ice.Current current)
+ throws KnownDerived
+ {
+ KnownDerived d = new KnownDerived();
+ d.b = "KnownDerived.b";
+ d.kd = "KnownDerived.kd";
+ throw d;
+ }
+
+ public void
+ unknownIntermediateAsBase(Ice.Current current)
+ throws Base
+ {
+ UnknownIntermediate ui = new UnknownIntermediate();
+ ui.b = "UnknownIntermediate.b";
+ ui.ui = "UnknownIntermediate.ui";
+ throw ui;
+ }
+
+ public void
+ knownIntermediateAsBase(Ice.Current current)
+ throws Base
+ {
+ KnownIntermediate ki = new KnownIntermediate();
+ ki.b = "KnownIntermediate.b";
+ ki.ki = "KnownIntermediate.ki";
+ throw ki;
+ }
+
+ public void
+ knownMostDerivedAsBase(Ice.Current current)
+ throws Base
+ {
+ KnownMostDerived kmd = new KnownMostDerived();
+ kmd.b = "KnownMostDerived.b";
+ kmd.ki = "KnownMostDerived.ki";
+ kmd.kmd = "KnownMostDerived.kmd";
+ throw kmd;
+ }
+
+ public void
+ knownIntermediateAsKnownIntermediate(Ice.Current current)
+ throws KnownIntermediate
+ {
+ KnownIntermediate ki = new KnownIntermediate();
+ ki.b = "KnownIntermediate.b";
+ ki.ki = "KnownIntermediate.ki";
+ throw ki;
+ }
+
+ public void
+ knownMostDerivedAsKnownIntermediate(Ice.Current current)
+ throws KnownIntermediate
+ {
+ KnownMostDerived kmd = new KnownMostDerived();
+ kmd.b = "KnownMostDerived.b";
+ kmd.ki = "KnownMostDerived.ki";
+ kmd.kmd = "KnownMostDerived.kmd";
+ throw kmd;
+ }
+
+ public void
+ knownMostDerivedAsKnownMostDerived(Ice.Current current)
+ throws KnownMostDerived
+ {
+ KnownMostDerived kmd = new KnownMostDerived();
+ kmd.b = "KnownMostDerived.b";
+ kmd.ki = "KnownMostDerived.ki";
+ kmd.kmd = "KnownMostDerived.kmd";
+ throw kmd;
+ }
+
+ public void
+ unknownMostDerived1AsBase(Ice.Current current)
+ throws Base
+ {
+ UnknownMostDerived1 umd1 = new UnknownMostDerived1();
+ umd1.b = "UnknownMostDerived1.b";
+ umd1.ki = "UnknownMostDerived1.ki";
+ umd1.umd1 = "UnknownMostDerived1.umd1";
+ throw umd1;
+ }
+
+ public void
+ unknownMostDerived1AsKnownIntermediate(Ice.Current current)
+ throws KnownIntermediate
+ {
+ UnknownMostDerived1 umd1 = new UnknownMostDerived1();
+ umd1.b = "UnknownMostDerived1.b";
+ umd1.ki = "UnknownMostDerived1.ki";
+ umd1.umd1 = "UnknownMostDerived1.umd1";
+ throw umd1;
+ }
+
+ public void
+ unknownMostDerived2AsBase(Ice.Current current)
+ throws Base
+ {
+ UnknownMostDerived2 umd2 = new UnknownMostDerived2();
+ umd2.b = "UnknownMostDerived2.b";
+ umd2.ui = "UnknownMostDerived2.ui";
+ umd2.umd2 = "UnknownMostDerived2.umd2";
+ throw umd2;
+ }
+ private Ice.ObjectAdapter _adapter;
+}