throw new UnsupportedOperationException("Not implemented");
}
SimplePropertyChangeListener listener = new SimplePropertyChangeListener();
jep.addPropertyChangeListener("editorKit", listener);
PropertyChangeEvent event;
EditorKit kit0 = jep.getEditorKit();
SimpleEditorKit kit1 = new SimpleEditorKit();
SimpleEditorKit kit2 = new SimpleEditorKit();
assertEquals("javax.swing.JEditorPane$PlainEditorKit", kit0.getClass().getName());
event = new PropertyChangeEvent(jep, "editorKit", kit0, kit1);
jep.setEditorKit(kit1);
assertEquals(kit1, jep.getEditorKit());
assertEquals(event, listener.event);
assertTrue(kit1.wasCallInstall);
assertFalse(kit1.wasCallDeinstall);
listener.resetDbgInfo();
kit1.resetDbgInfo();
event = new PropertyChangeEvent(jep, "editorKit", kit1, kit2);
jep.setEditorKit(kit2);
assertEquals(kit2, jep.getEditorKit());
assertEquals(event, listener.event);
assertTrue(kit2.wasCallInstall);
assertFalse(kit2.wasCallDeinstall);
assertFalse(kit1.wasCallInstall);
assertTrue(kit1.wasCallDeinstall);
kit2.resetDbgInfo();
jep.setEditorKit(null);
kit0 = jep.getEditorKit();
event = new PropertyChangeEvent(jep, "editorKit", kit2, kit0);
assertEquals("javax.swing.JEditorPane$PlainEditorKit", kit0.getClass().getName());
assertTrue(kit2.wasCallDeinstall);
//temporarily commented-out: HTMLEditorKit,
//DefaultStyledDocument not implemented
/*assertEquals("text/plain", jep.getContentType());
jep.setEditorKit(new HTMLEditorKit());