-
Bug
-
Resolution: Fixed
-
P3
-
jfx20
-
b07
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8332231 | 8u431 | Ambarish Rapte | P3 | Resolved | Fixed | b01 |
Tests using the JUnit 5 params API fails to compile due to missing dependencies.
------------
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.ValueSource;
Class JUnit5Test {
@ValueSource(doubles = { 1.0, 2.0, 3.0 })
@ParameterizedTest
void aTest(double value) {
}
}
------------
This was uncovered when running the test added in a PR in commit #1+#2: https://github.com/openjdk/jfx/pull/910
The test failed to compile on local mac machine but passed on GHA.
Error:
error: package org.junit.jupiter.params does not exist
error: package org.junit.jupiter.params.provider does not exist
error: cannot find symbol @ValueSource
error: cannot find symbol @ParameterizedTest
------------
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.ValueSource;
Class JUnit5Test {
@ValueSource(doubles = { 1.0, 2.0, 3.0 })
@ParameterizedTest
void aTest(double value) {
}
}
------------
This was uncovered when running the test added in a PR in commit #1+#2: https://github.com/openjdk/jfx/pull/910
The test failed to compile on local mac machine but passed on GHA.
Error:
error: package org.junit.jupiter.params does not exist
error: package org.junit.jupiter.params.provider does not exist
error: cannot find symbol @ValueSource
error: cannot find symbol @ParameterizedTest
- backported by
-
JDK-8332231 JUnit5 tests using Params API fails to compile
- Resolved
- blocks
-
JDK-8295078 TextField blurry when inside an TitledPane -> AnchorPane
- Resolved
-
JDK-8296330 Tests: Add layout container snapping tests
- Resolved
- relates to
-
JDK-8296284 Update Contributing guidelines to not mix JUnit4 and Junit5 in same class
- Open
-
JDK-8280275 JUnit5 tests using Assumptions API fail to compile in some cases
- Resolved
(2 links to)