mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Fix junit failures in AssistQuickFixTest
This commit is contained in:
parent
af5298bc3b
commit
11972439bb
1 changed files with 6 additions and 1 deletions
|
@ -74,10 +74,12 @@ public class AssistQuickFixTest extends BaseUITestCase {
|
||||||
public ProjectTestSetup(Test test) {
|
public ProjectTestSetup(Test test) {
|
||||||
super(test);
|
super(test);
|
||||||
}
|
}
|
||||||
|
@Override
|
||||||
protected void setUp() throws Exception {
|
protected void setUp() throws Exception {
|
||||||
super.setUp();
|
super.setUp();
|
||||||
fCProject= EditorTestHelper.createCProject(PROJECT, "resources/quickFix", false, true);
|
fCProject= EditorTestHelper.createCProject(PROJECT, "resources/quickFix", false, true);
|
||||||
}
|
}
|
||||||
|
@Override
|
||||||
protected void tearDown() throws Exception {
|
protected void tearDown() throws Exception {
|
||||||
if (fCProject != null)
|
if (fCProject != null)
|
||||||
CProjectHelper.delete(fCProject);
|
CProjectHelper.delete(fCProject);
|
||||||
|
@ -99,6 +101,7 @@ public class AssistQuickFixTest extends BaseUITestCase {
|
||||||
return setUpTest(new TestSuite(THIS));
|
return setUpTest(new TestSuite(THIS));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected void setUp() throws Exception {
|
protected void setUp() throws Exception {
|
||||||
if (!ResourcesPlugin.getWorkspace().getRoot().exists(new Path(PROJECT))) {
|
if (!ResourcesPlugin.getWorkspace().getRoot().exists(new Path(PROJECT))) {
|
||||||
fProjectSetup= new ProjectTestSetup(this);
|
fProjectSetup= new ProjectTestSetup(this);
|
||||||
|
@ -108,7 +111,8 @@ public class AssistQuickFixTest extends BaseUITestCase {
|
||||||
assertNotNull(fEditor);
|
assertNotNull(fEditor);
|
||||||
fTextWidget= fEditor.getViewer().getTextWidget();
|
fTextWidget= fEditor.getViewer().getTextWidget();
|
||||||
assertNotNull(fTextWidget);
|
assertNotNull(fTextWidget);
|
||||||
EditorTestHelper.joinReconciler((SourceViewer) fEditor.getViewer(), 10, 200, 20);
|
boolean ok= EditorTestHelper.joinReconciler((SourceViewer) fEditor.getViewer(), 10, 500, 20);
|
||||||
|
assertTrue("Reconciler did not finish in time", ok);
|
||||||
fDocument= fEditor.getDocumentProvider().getDocument(fEditor.getEditorInput());
|
fDocument= fEditor.getDocumentProvider().getDocument(fEditor.getEditorInput());
|
||||||
assertNotNull(fDocument);
|
assertNotNull(fDocument);
|
||||||
fFindReplaceDocumentAdapter= new FindReplaceDocumentAdapter(fDocument);
|
fFindReplaceDocumentAdapter= new FindReplaceDocumentAdapter(fDocument);
|
||||||
|
@ -120,6 +124,7 @@ public class AssistQuickFixTest extends BaseUITestCase {
|
||||||
/*
|
/*
|
||||||
* @see junit.framework.TestCase#tearDown()
|
* @see junit.framework.TestCase#tearDown()
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
protected void tearDown() throws Exception {
|
protected void tearDown() throws Exception {
|
||||||
EditorTestHelper.closeAllEditors();
|
EditorTestHelper.closeAllEditors();
|
||||||
if (fProjectSetup != null) {
|
if (fProjectSetup != null) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue