public void selectionChanged(SelectionChangedEvent event) {
}
};
manager.addSelectionChangedListener(listener);
ListenerList listeners = getSelectionChangedListenersList();
assertNotNull(listeners);
assertEquals("List size should match", 1, listeners.size());
manager.removeSelectionChangedListener(listener);
listeners = getSelectionChangedListenersList();
assertNotNull(listeners);
assertTrue("List should be empty", listeners.isEmpty());
// Removing the same listener again shouldn't change the size or
// cause any exceptions.
manager.removeSelectionChangedListener(listener);
listeners = getSelectionChangedListenersList();
assertNotNull(listeners);
assertTrue("List should be empty", listeners.isEmpty());
}