@After public void tearDown() throws CoreException { if (projectHelper != null) { projectHelper.dispose(); } partHelper.hideView(CONSOLE_VIEW_ID); removeAllConsoles(); }
@Test public void testRun() { File repositoryLocation = repositoryHelper.createRegisteredRepository("repo"); projectHelper = new ProjectHelper(repositoryLocation.getParentFile()); runActionDelegate(projectHelper.getProject()); IViewPart consoleView = getConsoleView(); assertThat(consoleView).isNotNull(); assertThat(consoleView.getSite().getPage().getActivePart()).isEqualTo(consoleView); }