@Test public void testConfigure() { PreviewPane reportPane = mock( PreviewPane.class ); doReturn( 2 ).when( reportPane ).getNumberOfPages(); boolean result = plugin.configure( reportPane ); verify( reportPane ).setPageNumber( 2 ); assertThat( result, is( equalTo( true ) ) ); }
public boolean configure( final PreviewPane reportPane ) { reportPane.setPageNumber( reportPane.getNumberOfPages() ); return true; }
GoToLastPageActionPlugin extends AbstractActionPlugin implements ControlActionPlugin { public boolean configure( final PreviewPane reportPane ) { reportPane.setPageNumber( reportPane.getNumberOfPages() ); return true; } }
GoToLastPageActionPlugin extends AbstractActionPlugin implements ControlActionPlugin { public boolean configure( final PreviewPane reportPane ) { reportPane.setPageNumber( reportPane.getNumberOfPages() ); return true; } GoToLastPageActionPlugin(); }
GoToLastPageActionPlugin extends AbstractActionPlugin implements ControlActionPlugin { public boolean configure( final PreviewPane reportPane ) { reportPane.setPageNumber( reportPane.getNumberOfPages() ); return true; } GoToLastPageActionPlugin(); void deinitialize( final SwingGuiContext swingGuiContext ); boolean initialize( final SwingGuiContext context ); String getDisplayName(); String getShortDescription(); Icon getSmallIcon(); Icon getLargeIcon(); KeyStroke getAcceleratorKey(); Integer getMnemonicKey(); boolean configure( final PreviewPane reportPane ); }
GoToLastPageActionPlugin extends AbstractActionPlugin implements ControlActionPlugin { public boolean configure( final PreviewPane reportPane ) { reportPane.setPageNumber( reportPane.getNumberOfPages() ); return true; } GoToLastPageActionPlugin(); void deinitialize( final SwingGuiContext swingGuiContext ); boolean initialize( final SwingGuiContext context ); String getDisplayName(); String getShortDescription(); Icon getSmallIcon(); Icon getLargeIcon(); KeyStroke getAcceleratorKey(); Integer getMnemonicKey(); boolean configure( final PreviewPane reportPane );  }