@Test public void handleLoadFileNoFileTest() { when(view.chooseFile()).thenReturn(null); presenter.handleLoadFile(); final InOrder inOrder = inOrder(factory, view); inOrder.verify(view).chooseFile(); inOrder.verifyNoMoreInteractions(); }
public void handleLoadFile() { final Path path = view.chooseFile(); if (path == null) return; MainWindowPresenter window = this; if (tracePresenter != null) { window = windowFactory.createWindow(); if (window == null) return; } window.loadTab(path); }
MainWindowPresenter extends BasePresenter<MainWindowView> { public void handleLoadFile() { final Path path = view.chooseFile(); if (path == null) return; MainWindowPresenter window = this; if (tracePresenter != null) { window = windowFactory.createWindow(); if (window == null) return; } window.loadTab(path); } }
MainWindowPresenter extends BasePresenter<MainWindowView> { public void handleLoadFile() { final Path path = view.chooseFile(); if (path == null) return; MainWindowPresenter window = this; if (tracePresenter != null) { window = windowFactory.createWindow(); if (window == null) return; } window.loadTab(path); } MainWindowPresenter(final MainWindowFactory windowFactory,
        final GuiTaskRunner taskRunner, final ZipTraceDbFactory factory); }
MainWindowPresenter extends BasePresenter<MainWindowView> { public void handleLoadFile() { final Path path = view.chooseFile(); if (path == null) return; MainWindowPresenter window = this; if (tracePresenter != null) { window = windowFactory.createWindow(); if (window == null) return; } window.loadTab(path); } MainWindowPresenter(final MainWindowFactory windowFactory,
        final GuiTaskRunner taskRunner, final ZipTraceDbFactory factory); @Override void load(); void handleCloseWindow(); void handleNewWindow(); void handleLoadFile(); }
MainWindowPresenter extends BasePresenter<MainWindowView> { public void handleLoadFile() { final Path path = view.chooseFile(); if (path == null) return; MainWindowPresenter window = this; if (tracePresenter != null) { window = windowFactory.createWindow(); if (window == null) return; } window.loadTab(path); } MainWindowPresenter(final MainWindowFactory windowFactory,
        final GuiTaskRunner taskRunner, final ZipTraceDbFactory factory); @Override void load(); void handleCloseWindow(); void handleNewWindow(); void handleLoadFile();  }