Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ebefad6

Browse files
committed
Rename BeforeClass methods
Setup method of WaitForEventsInFxApplicationThreadTest had the same name as its super class TestFxAdapterTest, effectively hiding the setup method of its base class. Unit tests then failed, because initialization of the JavaFXToolkit is done in TestFxAdapterTest.
1 parent 6fc8dca commit ebefad6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/java/javafxlibrary/keywords/AdditionalKeywordsTests/ConvenienceKeywords/DeprecatedFindKeywordsTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public class DeprecatedFindKeywordsTest extends TestFxAdapterTest {
4242
private static ConvenienceKeywords keywords;
4343

4444
@BeforeClass
45-
public static void setupAllTests() {
45+
public static void setupKeywords() {
4646
keywords = new ConvenienceKeywords();
4747
}
4848

src/test/java/javafxlibrary/keywords/AdditionalKeywordsTests/ConvenienceKeywords/WaitForEventsInFxApplicationThreadTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class WaitForEventsInFxApplicationThreadTest extends TestFxAdapterTest {
3636
private static ConvenienceKeywords keywords;
3737

3838
@BeforeClass
39-
public static void setupTests() {
39+
public static void setupKeywords() {
4040
keywords = new ConvenienceKeywords();
4141
}
4242

0 commit comments

Comments
 (0)