KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jacorb > test > orb > LongLongSeqServerImpl


1 package org.jacorb.test.orb;
2
3 import java.io.*;
4 import junit.framework.*;
5 import junit.extensions.*;
6 import org.omg.CORBA.*;
7 import org.omg.PortableServer.*;
8 import org.jacorb.util.*;
9 import org.jacorb.test.*;
10 import org.jacorb.test.LongLongSeqServerPackage.*;
11
12
13 public class LongLongSeqServerImpl extends LongLongSeqServerPOA
14 {
15     private void test( long[] arg )
16     {
17        if ( arg[0] != Long.MIN_VALUE ||
18             arg[1] != Long.MIN_VALUE )
19        {
20            throw new RuntimeException JavaDoc( "Error - arguments do not match expected value" );
21        }
22     }
23
24     public long[] test1( long[] argin,
25                          SeqLongLongHolder argout,
26                          SeqLongLongHolder arginout )
27     {
28         test( argin );
29
30         test( arginout.value );
31
32         argout.value = argin;
33         arginout.value = argin;
34
35         return argin;
36     }
37
38     public long[] test2( long[] argin, SeqLongLongHolder argout )
39     {
40         test( argin );
41
42         argout.value = argin;
43
44         return argin;
45     }
46
47     public void test3( SeqLongLongHolder arginout )
48     {
49         test( arginout.value );
50     }
51 }
52
Popular Tags