summaryrefslogtreecommitdiff
path: root/java/test/Ice/operations/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/operations/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/operations/MyDerivedClassI.java')
-rw-r--r--java/test/Ice/operations/MyDerivedClassI.java36
1 files changed, 36 insertions, 0 deletions
diff --git a/java/test/Ice/operations/MyDerivedClassI.java b/java/test/Ice/operations/MyDerivedClassI.java
index 503d95907e3..a38638886b4 100644
--- a/java/test/Ice/operations/MyDerivedClassI.java
+++ b/java/test/Ice/operations/MyDerivedClassI.java
@@ -9,6 +9,15 @@
public final class MyDerivedClassI extends Test.MyDerivedClass
{
+ private static void
+ test(boolean b)
+ {
+ if(!b)
+ {
+ throw new RuntimeException();
+ }
+ }
+
public
MyDerivedClassI(Ice.ObjectAdapter adapter, Ice.Identity identity)
{
@@ -27,6 +36,22 @@ public final class MyDerivedClassI extends Test.MyDerivedClass
{
}
+ public void
+ opSleep(int duration, Ice.Current current)
+ {
+ while(true)
+ {
+ try
+ {
+ Thread.currentThread().sleep(duration);
+ break;
+ }
+ catch(java.lang.InterruptedException ex)
+ {
+ }
+ }
+ }
+
public boolean
opBool(boolean p1, boolean p2,
Ice.BooleanHolder p3,
@@ -304,6 +329,17 @@ public final class MyDerivedClassI extends Test.MyDerivedClass
return current.ctx;
}
+ public void
+ opDoubleMarshaling(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);
+ }
+ }
+
public String[]
opStringS(String[] p1, String[] p2,
Test.StringSHolder p3,