diff --git a/pom.xml b/pom.xml index b7ed1443..4a20ee89 100644 --- a/pom.xml +++ b/pom.xml @@ -63,9 +63,9 @@ 0.2 4.12 - 5.0.0-M3 - 4.12.0-M3 - 1.0.0-M3 + 5.0.0-M4 + 4.12.0-M4 + 1.0.0-M4 1.3 3.6.1 2.4.0 diff --git a/webtester-support-junit5/src/test/java/info/novatec/testit/webtester/junit5/extensions/eventlistener/RegisteredEventListenerExtensionIntTest.java b/webtester-support-junit5/src/test/java/info/novatec/testit/webtester/junit5/extensions/eventlistener/RegisteredEventListenerExtensionIntTest.java index 11100b06..a5123681 100644 --- a/webtester-support-junit5/src/test/java/info/novatec/testit/webtester/junit5/extensions/eventlistener/RegisteredEventListenerExtensionIntTest.java +++ b/webtester-support-junit5/src/test/java/info/novatec/testit/webtester/junit5/extensions/eventlistener/RegisteredEventListenerExtensionIntTest.java @@ -1,7 +1,7 @@ package info.novatec.testit.webtester.junit5.extensions.eventlistener; import static org.assertj.core.api.Assertions.assertThat; -import static org.junit.jupiter.api.Assertions.expectThrows; +import static org.junit.jupiter.api.Assertions.assertThrows; import static org.mockito.Mockito.verify; import java.util.HashMap; @@ -62,7 +62,7 @@ void test() { @Test @DisplayName("@Registered with static field will throw exception") void registerStaticEventListenerField() throws Exception { - expectThrows(StaticEventListenerFieldsNotSupportedException.class, () -> { + assertThrows(StaticEventListenerFieldsNotSupportedException.class, () -> { TestClassExecutor.execute(RegisteredStaticField.class); }); } @@ -257,7 +257,7 @@ void clear() { @Test @DisplayName("@Registered has no clear assignment to multi browser fields") void noClearBrowserAssignment() throws Exception { - expectThrows(NoManagedBrowserForNameException.class, () -> { + assertThrows(NoManagedBrowserForNameException.class, () -> { TestClassExecutor.execute(NoClearBrowserAssignment.class); }); } diff --git a/webtester-support-junit5/src/test/java/utils/TestClassExecutor.java b/webtester-support-junit5/src/test/java/utils/TestClassExecutor.java index c82be51e..07c264c1 100644 --- a/webtester-support-junit5/src/test/java/utils/TestClassExecutor.java +++ b/webtester-support-junit5/src/test/java/utils/TestClassExecutor.java @@ -64,6 +64,11 @@ public Optional get(String key) { return Optional.empty(); } + @Override + public Optional getBoolean(String key) { + return Optional.empty(); + } + @Override public int size() { return 0;