summaryrefslogtreecommitdiff
path: root/java/test/Ice/operationsAMD/MyDerivedClassI.java
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2006-03-03 17:24:14 +0000
committerBenoit Foucher <benoit@zeroc.com>2006-03-03 17:24:14 +0000
commita36b514b0495040b032f2c764c0d4694e60e1cce (patch)
treef2582dce91f54c753d5aa28095c73374a88d6eeb /java/test/Ice/operationsAMD/MyDerivedClassI.java
parentFixed compile error (diff)
downloadice-a36b514b0495040b032f2c764c0d4694e60e1cce.tar.bz2
ice-a36b514b0495040b032f2c764c0d4694e60e1cce.tar.xz
ice-a36b514b0495040b032f2c764c0d4694e60e1cce.zip
Synced Ice and IceE operation tests.
Diffstat (limited to 'java/test/Ice/operationsAMD/MyDerivedClassI.java')
-rw-r--r--java/test/Ice/operationsAMD/MyDerivedClassI.java38
1 files changed, 38 insertions, 0 deletions
diff --git a/java/test/Ice/operationsAMD/MyDerivedClassI.java b/java/test/Ice/operationsAMD/MyDerivedClassI.java
index 86f8cabc4a9..812af81dcba 100644
--- a/java/test/Ice/operationsAMD/MyDerivedClassI.java
+++ b/java/test/Ice/operationsAMD/MyDerivedClassI.java
@@ -9,6 +9,15 @@
public final class MyDerivedClassI extends Test.MyDerivedClass
{
+ private static void
+ test(boolean b)
+ {
+ if(!b)
+ {
+ throw new RuntimeException();
+ }
+ }
+
static class Thread_opVoid extends Thread
{
public
@@ -74,6 +83,23 @@ public final class MyDerivedClassI extends Test.MyDerivedClass
}
public void
+ opSleep_async(Test.AMD_MyClass_opSleep cb, int duration, Ice.Current current)
+ {
+ while(true)
+ {
+ try
+ {
+ Thread.currentThread().sleep(duration);
+ cb.ice_response();
+ break;
+ }
+ catch(java.lang.InterruptedException ex)
+ {
+ }
+ }
+ }
+
+ public void
opBool_async(Test.AMD_MyClass_opBool cb,
boolean p1, boolean p2,
Ice.Current current)
@@ -343,6 +369,18 @@ public final class MyDerivedClassI extends Test.MyDerivedClass
}
public void
+ opDoubleMarshaling_async(Test.AMD_MyClass_opDoubleMarshaling cb, double p1, double[] p2, Ice.Current current)
+ {
+ double d = 1278312346.0 / 13.0;
+ test(p1 == d);
+ for(int i = 0; i < p2.length; ++i)
+ {
+ test(p2[i] == d);
+ }
+ cb.ice_response();
+ }
+
+ public void
opStringS_async(Test.AMD_MyClass_opStringS cb,
String[] p1, String[] p2,
Ice.Current current)