@Before public void setUp() throws Exception { super.setUp(); myFixture.configureByFile(getFileName(getFileExtension())); myPopupFixture = new FileStructureTestFixture(myFixture.getProject(), myFixture.getEditor(), getFile()); myPopupFixture.update(); }
@Override public void tearDown() throws Exception { try { if (myPopupFixture != null) { myPopupFixture.dispose(); myPopupFixture = null; } } finally { super.tearDown(); } }
@Override protected void tearDown() throws Exception { try { myTaskManager.setRepositories(Collections.<TaskRepository>emptyList()); AllVcses.getInstance(getProject()).unregisterManually(myVcs); } finally { myTaskManager = null; myVcs = null; myChangeListManager = null; super.tearDown(); } }
@Override public void setUp() throws Exception { super.setUp(); DartTestUtils.configureDartSdk(myModule, getTestRootDisposable(), true); ((CodeInsightTestFixtureImpl) myFixture).canChangeDocumentDuringHighlighting(true); }
@Override public void setUp() throws Exception { super.setUp(); myVcs = new MockAbstractVcs(getProject()); AllVcses.getInstance(getProject()).registerManually(myVcs); myChangeListManager = (ChangeListManagerImpl) ChangeListManager.getInstance(getProject()); myTaskManager = (TaskManagerImpl) TaskManager.getManager(getProject()); ProjectLevelVcsManager.getInstance(getProject()).setDirectoryMapping("", myVcs.getName()); ProjectLevelVcsManager.getInstance(getProject()).hasActiveVcss(); myRepository = new TestRepository(); myRepository.setTasks( new Task() { @NotNull @Override public String getId() { return "TEST-001"; } @NotNull @Override public String getSummary() { return "Summary"; } @Override public String getDescription() { return null; } @NotNull @Override public Comment[] getComments() { return new Comment[0]; } @NotNull @Override public Icon getIcon() { return TasksIcons.Unknown; } @NotNull @Override public TaskType getType() { return TaskType.BUG; } @Override public Date getUpdated() { return null; } @Override public Date getCreated() { return null; } @Override public boolean isClosed() { return false; } @Override public boolean isIssue() { return true; } @Override public String getIssueUrl() { return null; } @Override public TaskRepository getRepository() { return myRepository; } }); myTaskManager.setRepositories(Collections.singletonList(myRepository)); }