Skip to content

Commit

Permalink
Merge pull request #10556 from Captain1653/play-juice-deprecated-assert
Browse files Browse the repository at this point in the history
Replace deprecated JUnit-matchers on Hamcrest-matchers in play-guice
  • Loading branch information
raboof committed Dec 1, 2020
2 parents 992e21b + 48f742e commit e0ba57f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

import static org.hamcrest.CoreMatchers.instanceOf;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import static org.hamcrest.MatcherAssert.assertThat;
import static play.inject.Bindings.bind;

public class GuiceApplicationBuilderTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.instanceOf;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import static org.hamcrest.MatcherAssert.assertThat;
import static play.inject.Bindings.bind;

public class GuiceApplicationLoaderTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import scala.collection.Seq;

import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assert.*;
import static org.hamcrest.MatcherAssert.assertThat;
import static play.inject.Bindings.bind;

public class GuiceInjectorBuilderTest {
Expand Down Expand Up @@ -104,7 +104,7 @@ private void setConfiguration(play.api.inject.Module configurationModule) {
.instanceOf(Config.class);

assertThat(conf.root().keySet().size(), is(4));
assertThat(conf.root().keySet(), org.junit.matchers.JUnitMatchers.hasItems("a", "b", "c", "d"));
assertThat(conf.root().keySet(), hasItems("a", "b", "c", "d"));

assertThat(conf.getInt("a"), is(1));
assertThat(conf.getInt("b"), is(2));
Expand Down

0 comments on commit e0ba57f

Please sign in to comment.