Skip to content

Commit

Permalink
PackageExplorerShowInTests.java aktualisieren
Browse files Browse the repository at this point in the history
  • Loading branch information
carstenartur authored and jjohnstn committed Nov 28, 2024
1 parent 8b30f4d commit f1f1298
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 f1f1298

Please sign in to comment.