Skip to content

Commit 58d6fa0

Browse files
committed
test: bump system-stubs-jupiter to 2.0.1 to support Java 16+
1 parent b452d8c commit 58d6fa0

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jmh.version=1.12
5858
javaee-api.version=6.0
5959
junit4.version=4.13
6060
junit5.version=5.8.2
61-
junit5-system-stubs-jupiter.version=1.2.0
61+
junit5-system-stubs-jupiter.version=2.0.1
6262
logback.version=1.1.2
6363
org.apache.felix.framework.version=7.0.5
6464
org.ops4j.pax.exam.version=4.13.5

pgjdbc/src/test/java/org/postgresql/util/StubEnvironmentAndProperties.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
* calls like {@code System#getProperty} and {@code System#getenv}.
2020
* <p>The tests should be run in isolation to prevent concurrent modification of properties and
2121
* the environment.</p>
22+
* <p>Note: environment mocking works from a single thread only until
23+
* <a href="https://github.com/webcompere/system-stubs/pull/46">Fix multi-threaded
24+
* environment variable mocking</a>, and <a href="https://github.com/mockito/mockito/issues/2142">Mocked
25+
* static methods are not available in other threads</a> are resolved</p>
2226
*/
2327
@Isolated
2428
@ExtendWith(SystemStubsExtension.class)

0 commit comments

Comments
 (0)