Skip to content

Commit

Permalink
compatibility with JUnit 5 M4
Browse files Browse the repository at this point in the history
  • Loading branch information
slu-it committed May 4, 2017
1 parent b27b2df commit 7a953ce
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@

<version.testutils>0.2</version.testutils>
<version.junit4>4.12</version.junit4>
<version.junit5.jupiter>5.0.0-M3</version.junit5.jupiter>
<version.junit5.vintage>4.12.0-M3</version.junit5.vintage>
<version.junit5.platform>1.0.0-M3</version.junit5.platform>
<version.junit5.jupiter>5.0.0-M4</version.junit5.jupiter>
<version.junit5.vintage>4.12.0-M4</version.junit5.vintage>
<version.junit5.platform>1.0.0-M4</version.junit5.platform>
<version.hamcrest>1.3</version.hamcrest>
<version.assertj>3.6.1</version.assertj>
<version.mockito>2.4.0</version.mockito>
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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);
});
}
Expand Down Expand Up @@ -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);
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ public Optional<String> get(String key) {
return Optional.empty();
}

@Override
public Optional<Boolean> getBoolean(String key) {
return Optional.empty();
}

@Override
public int size() {
return 0;
Expand Down

0 comments on commit 7a953ce

Please sign in to comment.