Skip to content

Commit

Permalink
Convert CssStyleHelperTest to JUnit 5 test
Browse files Browse the repository at this point in the history
  • Loading branch information
hjohn committed Jul 22, 2024
1 parent 31fe622 commit 2ebe4b2
Showing 1 changed file with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,12 @@
import javafx.scene.layout.StackPane;
import javafx.scene.paint.Color;
import javafx.scene.text.Text;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;

public class CssStyleHelperTest {

Expand All @@ -60,7 +59,7 @@ private static void resetStyleManager() {
sm.hasDefaultUserAgentStylesheet = false;
}

@Before
@BeforeEach
public void setup() {
root = new StackPane();
scene = new Scene(root);
Expand All @@ -69,7 +68,7 @@ public void setup() {
resetStyleManager();
}

@AfterClass
@AfterAll
public static void cleanupOnce() {
resetStyleManager();
}
Expand Down

0 comments on commit 2ebe4b2

Please sign in to comment.