44 import java.util.Set;
45 import java.util.concurrent.atomic.LongAdder;
46
47 import javax.rmi.CORBA.Util;
48 import javax.rmi.PortableRemoteObject;
49
50 import org.omg.CORBA_2_3.ORB;
51 import org.omg.CORBA_2_3.portable.OutputStream;
52 import org.omg.CORBA_2_3.portable.InputStream;
53
54 import org.testng.Assert;
55 import org.testng.annotations.AfterClass;
56 import org.testng.annotations.BeforeClass;
57 import org.testng.annotations.Test;
58 import org.testng.annotations.DataProvider;
59 import org.testng.TestNG;
60
61 /*
62 * @test
63 * @library /test/lib
64 * @build jdk.test.lib.*
65 * @compile ObjectStreamTest.java ObjectStreamTest$_Echo_Stub.java
66 * ObjectStreamTest$_Server_Tie.java
67 * @modules java.base/java.io:open
68 * java.corba/com.sun.corba.se.impl.io:+open
69 * java.corba/com.sun.corba.se.impl.activation
70 * @summary Tests of ReflectionFactory use in IIOP Serialization
71 * @run testng/othervm ObjectStreamTest
72 * @run testng/othervm/policy=security.policy ObjectStreamTest
73 */
74
75 @Test
76 public class ObjectStreamTest {
77
78 enum Colors {RED, GREEN, YELLOW}
79
80 static Set<Colors> colorSet = new HashSet<>();
81
82 static {
83 colorSet.add(Colors.RED);
84 colorSet.add(Colors.GREEN);
|
44 import java.util.Set;
45 import java.util.concurrent.atomic.LongAdder;
46
47 import javax.rmi.CORBA.Util;
48 import javax.rmi.PortableRemoteObject;
49
50 import org.omg.CORBA_2_3.ORB;
51 import org.omg.CORBA_2_3.portable.OutputStream;
52 import org.omg.CORBA_2_3.portable.InputStream;
53
54 import org.testng.Assert;
55 import org.testng.annotations.AfterClass;
56 import org.testng.annotations.BeforeClass;
57 import org.testng.annotations.Test;
58 import org.testng.annotations.DataProvider;
59 import org.testng.TestNG;
60
61 /*
62 * @test
63 * @library /test/lib
64 * @compile ObjectStreamTest.java ObjectStreamTest$_Echo_Stub.java
65 * ObjectStreamTest$_Server_Tie.java
66 * @modules java.base/java.io:open
67 * java.corba/com.sun.corba.se.impl.io:+open
68 * java.corba/com.sun.corba.se.impl.activation
69 * @summary Tests of ReflectionFactory use in IIOP Serialization
70 * @run testng/othervm ObjectStreamTest
71 * @run testng/othervm/policy=security.policy ObjectStreamTest
72 */
73
74 @Test
75 public class ObjectStreamTest {
76
77 enum Colors {RED, GREEN, YELLOW}
78
79 static Set<Colors> colorSet = new HashSet<>();
80
81 static {
82 colorSet.add(Colors.RED);
83 colorSet.add(Colors.GREEN);
|