@Test public void testInitialize() { boolean result = plugin.initialize(context); assertThat(result, is(equalTo(true))); verify(source).addPropertyChangeListener(anyString(), any(PropertyChangeListener.class)); assertThat( plugin.getConfigurationPrefix(), is(equalTo("org.pentaho.reporting.engine.classic.core.modules.gui.base.zoom-list."))); assertThat(plugin.getDisplayName(), is(nullValue())); assertThat(plugin.getShortDescription(), is(nullValue())); assertThat(plugin.getSmallIcon(), is(nullValue())); assertThat(plugin.getLargeIcon(), is(nullValue())); assertThat(plugin.getAcceleratorKey(), is(nullValue())); assertThat(plugin.getMnemonicKey(), is(nullValue())); }
@Test public void testDeinitialize() { plugin.deinitialize(context); verify(source).removePropertyChangeListener(anyString(), any(PropertyChangeListener.class)); }