@Test public void testRestore() throws Exception { when(toggleCommentPresenter.getComment()).thenReturn("test"); presenter.command = commandMock; presenter.restore(); verify(commandMock).execute("test"); verify(view).hide(); }
@PostConstruct public void setup() { view.init(this); }
@Test public void testShow() throws Exception { presenter = spy(presenter); presenter.show(path, "uri"); verify(view).show(); verify(presenter).restoreCommand(path, "uri"); }
public void cancel() { view.hide(); }
public void restore() { command.execute(toggleCommentPresenter.getComment()); view.hide(); }
@Test public void testCancel() throws Exception { presenter.cancel(); verify(view).hide(); } }
@Test public void testSetup() throws Exception { presenter.setup(); verify(view).init(presenter); }
public void cancel() { view.hide(); }
@Test public void testCancel() throws Exception { presenter.cancel(); verify(view).hide(); } }
@Test public void testRestore() throws Exception { when(toggleCommentPresenter.getComment()).thenReturn("test"); presenter.command = commandMock; presenter.restore(); verify(commandMock).execute("test"); verify(view).hide(); }
public void show(final ObservablePath currentPath, final String currentVersionRecordUri) { command = restoreCommand(currentPath, currentVersionRecordUri); view.show(); }
@Test public void testSetup() throws Exception { presenter.setup(); verify(view).init(presenter); }
public void restore() { command.execute(toggleCommentPresenter.getComment()); view.hide(); }
@PostConstruct public void setup() { view.init(this); }
@Test public void testShow() throws Exception { presenter = spy(presenter); presenter.show(path, "uri"); verify(view).show(); verify(presenter).restoreCommand(path, "uri"); }
public void show(final ObservablePath currentPath, final String currentVersionRecordUri) { command = restoreCommand(currentPath, currentVersionRecordUri); view.show(); }