Skip to content

Commit

Permalink
PackageExplorerShowInTests.java aktualisieren
Browse files Browse the repository at this point in the history
  • Loading branch information
carstenartur committed Nov 1, 2024
1 parent fbedc16 commit 4f3b32d
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@

package org.eclipse.jdt.ui.tests.packageview;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.Assert.assertEquals;

import java.io.ByteArrayInputStream;

import org.junit.Rule;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import org.eclipse.jdt.testplugin.JavaProjectHelper;

Expand Down Expand Up @@ -59,15 +59,15 @@ public class PackageExplorerShowInTests {
private PackageExplorerPart fPackageExplorer;
private IWorkbenchPage fPage;

@BeforeEach
@Before
public void setUp() throws Exception {
fJProject= pts.getProject();
fPage= PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
fPackageExplorer= (PackageExplorerPart) fPage.showView(JavaUI.ID_PACKAGES);
fPackageExplorer.selectAndReveal(new StructuredSelection());
}

@AfterEach
@After
public void tearDown() throws Exception {
JavaProjectHelper.clear(fJProject, pts.getDefaultClasspath());
fPage.hideView(fPackageExplorer);
Expand Down

0 comments on commit 4f3b32d

Please sign in to comment.