modules/base/src/test/java/test/javafx/event/EventSerializationTest.java

Print this page
rev 9235 : 8134760: Refactor Javafx base module tests for clear separation of tests
Reviewed-by:

@@ -21,26 +21,29 @@
  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  * or visit www.oracle.com if you need additional information or have any
  * questions.
  */
 
-package javafx.event;
+package test.javafx.event;
 
 import java.io.ByteArrayInputStream;
 import java.io.ByteArrayOutputStream;
 import java.io.IOException;
 import java.io.InvalidObjectException;
 import java.io.ObjectInputStream;
 import java.io.ObjectOutputStream;
 import java.util.ArrayList;
 import java.util.List;
-import javafx.event.EventType.EventTypeSerialization;
+import javafx.event.ActionEvent;
+import javafx.event.Event;
+import javafx.event.EventType;
+import javafx.event.EventTypeShim;
+import javafx.event.EventTypeShim.EventTypeSerializationShim;
 import org.junit.Before;
 import org.junit.Test;
 
 import static org.junit.Assert.*;
-import org.junit.Ignore;
 
 /**
  *
  */
 public class EventSerializationTest {

@@ -89,13 +92,12 @@
 
     @Test(expected=InvalidObjectException.class)
     public void testUnknownEventTypeSerialization() throws IOException, ClassNotFoundException {
         List<String> l = new ArrayList<String>();
         l.add("UNKNOWN");
-        EventTypeSerialization e = new EventTypeSerialization(l);
+        Object e = EventTypeShim.getEventTypeSerialization(l);
 
         objectOutputStream.writeObject(e);
         turnToInput();
         EventType eType = (EventType) objectInputStream.readObject();
-        
     }
 }