Skip to content

Commit

Permalink
remove test harness
Browse files Browse the repository at this point in the history
  • Loading branch information
ghentschke committed Feb 10, 2025
1 parent 0921988 commit 10ce4b6
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion bundles/org.eclipse.cdt.lsp.test/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ Bundle-Version: 1.0.0.qualifier
Bundle-Vendor: Eclipse.org
Fragment-Host: org.eclipse.cdt.lsp
Require-Bundle: junit-jupiter-api,
org.eclipse.ui.tests.harness,
org.eclipse.egit.ui,
org.eclipse.egit.core
Automatic-Module-Name: org.eclipse.cdt.lsp.test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.tests.harness.util.DisplayHelper;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
Expand Down Expand Up @@ -69,7 +68,6 @@ public void testCacheRemovedAfterFileGetsClosed() throws CoreException, IOExcept
// GIVEN is an opened file in the LSP based C/C++ editor:
var uri = externalFile.toURI();
editor = TestUtils.openInEditor(uri, LspPlugin.LSP_C_EDITOR_ID);
DisplayHelper.sleep(1000);
// WHEN accessing the cached enable value:
var cachedUri = cache.get(uri);
// THEN the cache for the given URI is present:
Expand All @@ -78,7 +76,6 @@ public void testCacheRemovedAfterFileGetsClosed() throws CoreException, IOExcept
assertTrue(cachedUri.booleanValue());
// WHEN when the file gets closed:
TestUtils.closeEditor(editor, false);
DisplayHelper.sleep(1000);
// THEN the cached URI has been removed:
assertNull(cache.get(uri));
}
Expand All @@ -89,7 +86,6 @@ public void testCacheNotRemovedUntilAllOpenedEditorsHasBeenClosed() throws CoreE
var uri = externalFile.toURI();
editor = TestUtils.openInEditor(uri, LspPlugin.LSP_C_EDITOR_ID);
editor2 = TestUtils.openInEditorInNewWindow(uri, LspPlugin.LSP_C_EDITOR_ID);
DisplayHelper.sleep(1000);
// WHEN accessing the cached enable value:
var cachedUri = cache.get(uri);
// THEN the cache for the given URI is present:
Expand All @@ -98,13 +94,11 @@ public void testCacheNotRemovedUntilAllOpenedEditorsHasBeenClosed() throws CoreE
assertTrue(cachedUri.booleanValue());
// WHEN when the file gets closed in the first window:
TestUtils.closeEditor(editor, false);
DisplayHelper.sleep(1000);
// THEN the cached URI has NOT been removed:
assertNotNull(cache.get(uri));
assertTrue(cache.get(uri).booleanValue());
// WHEN the file gets closed in the second window:
TestUtils.closeEditor(editor2, false);
DisplayHelper.sleep(1000);
// THEN the cached URI has been removed:
assertNull(cache.get(uri));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
<unit id="org.eclipse.sdk.feature.group" version="0.0.0" />
<unit id="org.eclipse.test.feature.group" version="0.0.0" />
<unit id="org.eclipse.unittest.ui" version="0.0.0" />
<unit id="org.eclipse.ui.tests.harness" version="0.0.0"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
<repository location="https://download.eclipse.org/mylyn/updates/release/latest/" />
Expand Down

0 comments on commit 10ce4b6

Please sign in to comment.