Skip to content

Commit

Permalink
Merge pull request #375 from xuwei-k/fix-warn
Browse files Browse the repository at this point in the history
fix warnings
  • Loading branch information
mkurz authored Oct 8, 2022
2 parents 9e4ccaa + 77fa998 commit 307eb2e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ val ScalatestSeleniumVersion = ScalatestVersion + ".0"
val ScalatestMockitoVersion = ScalatestVersion + ".0"

ThisBuild / playBuildRepoName := "scalatestplus-play"
ThisBuild / resolvers += Resolver.sonatypeRepo("releases")
ThisBuild / resolvers ++= Resolver.sonatypeOssRepos("releases")

// Customise sbt-dynver's behaviour to make it work with tags which aren't v-prefixed
ThisBuild / dynverVTagPrefix := false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class MixedFixturesWsScalaTestClientSpec extends MixedSpec with ScalaFutures wit
"used with MixedFixtures Server" must {

"have wsUrl works correctly" in new Server(app) {
val futureResult = wsUrl("/testing").get
val futureResult = wsUrl("/testing").get()
val body = futureResult.futureValue.body
val expectedBody =
"<html>" +
Expand All @@ -52,7 +52,7 @@ class MixedFixturesWsScalaTestClientSpec extends MixedSpec with ScalaFutures wit
}

"have wsCall works correctly" in new Server(app) {
val futureResult = wsCall(Call("get", "/testing")).get
val futureResult = wsCall(Call("get", "/testing")).get()
val body = futureResult.futureValue.body
val expectedBody =
"<html>" +
Expand All @@ -69,7 +69,7 @@ class MixedFixturesWsScalaTestClientSpec extends MixedSpec with ScalaFutures wit
"used with MixedFixtures HtmlUnit" must {

"have wsUrl works correctly" in new HtmlUnit(app) {
val futureResult = wsUrl("/testing").get
val futureResult = wsUrl("/testing").get()
val body = futureResult.futureValue.body
val expectedBody =
"<html>" +
Expand All @@ -82,7 +82,7 @@ class MixedFixturesWsScalaTestClientSpec extends MixedSpec with ScalaFutures wit
}

"have wsCall works correctly" in new HtmlUnit(app) {
val futureResult = wsCall(Call("get", "/testing")).get
val futureResult = wsCall(Call("get", "/testing")).get()
val body = futureResult.futureValue.body
val expectedBody =
"<html>" +
Expand All @@ -99,7 +99,7 @@ class MixedFixturesWsScalaTestClientSpec extends MixedSpec with ScalaFutures wit
"used with MixedFixtures Firefox" must {

"have wsUrl works correctly" in new Firefox(app) {
val futureResult = wsUrl("/testing").get
val futureResult = wsUrl("/testing").get()
val body = futureResult.futureValue.body
val expectedBody =
"<html>" +
Expand All @@ -112,7 +112,7 @@ class MixedFixturesWsScalaTestClientSpec extends MixedSpec with ScalaFutures wit
}

"have wsCall works correctly" in new Firefox(app) {
val futureResult = wsCall(Call("get", "/testing")).get
val futureResult = wsCall(Call("get", "/testing")).get()
val body = futureResult.futureValue.body
val expectedBody =
"<html>" +
Expand All @@ -129,7 +129,7 @@ class MixedFixturesWsScalaTestClientSpec extends MixedSpec with ScalaFutures wit
"used with MixedFixtures Safari" must {

"have wsUrl works correctly" in new Safari(app) {
val futureResult = wsUrl("/testing").get
val futureResult = wsUrl("/testing").get()
val body = futureResult.futureValue.body
val expectedBody =
"<html>" +
Expand All @@ -142,7 +142,7 @@ class MixedFixturesWsScalaTestClientSpec extends MixedSpec with ScalaFutures wit
}

"have wsCall works correctly" in new Safari(app) {
val futureResult = wsCall(Call("get", "/testing")).get
val futureResult = wsCall(Call("get", "/testing")).get()
val body = futureResult.futureValue.body
val expectedBody =
"<html>" +
Expand All @@ -159,7 +159,7 @@ class MixedFixturesWsScalaTestClientSpec extends MixedSpec with ScalaFutures wit
"used with MixedFixtures Chrome" must {

"have wsUrl works correctly" in new Chrome(app) {
val futureResult = wsUrl("/testing").get
val futureResult = wsUrl("/testing").get()
val body = futureResult.futureValue.body
val expectedBody =
"<html>" +
Expand All @@ -172,7 +172,7 @@ class MixedFixturesWsScalaTestClientSpec extends MixedSpec with ScalaFutures wit
}

"have wsCall works correctly" in new Chrome(app) {
val futureResult = wsCall(Call("get", "/testing")).get
val futureResult = wsCall(Call("get", "/testing")).get()
val body = futureResult.futureValue.body
val expectedBody =
"<html>" +
Expand All @@ -189,7 +189,7 @@ class MixedFixturesWsScalaTestClientSpec extends MixedSpec with ScalaFutures wit
"used with MixedFixtures InternetExplorer" must {

"have wsUrl works correctly" in new InternetExplorer(app) {
val futureResult = wsUrl("/testing").get
val futureResult = wsUrl("/testing").get()
val body = futureResult.futureValue.body
val expectedBody =
"<html>" +
Expand All @@ -202,7 +202,7 @@ class MixedFixturesWsScalaTestClientSpec extends MixedSpec with ScalaFutures wit
}

"have wsCall works correctly" in new InternetExplorer(app) {
val futureResult = wsCall(Call("get", "/testing")).get
val futureResult = wsCall(Call("get", "/testing")).get()
val body = futureResult.futureValue.body
val expectedBody =
"<html>" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class WsScalaTestClientSpec extends UnitSpec with GuiceOneServerPerSuite with Sc

"wsUrl works correctly" in {
implicit val ws: WSClient = app.injector.instanceOf(classOf[WSClient])
val futureResult = wsUrl("/testing").get
val futureResult = wsUrl("/testing").get()
val body = futureResult.futureValue.body
val expectedBody =
"<html>" +
Expand All @@ -52,7 +52,7 @@ class WsScalaTestClientSpec extends UnitSpec with GuiceOneServerPerSuite with Sc
"wsCall works correctly" in {
implicit val ws: WSClient = app.injector.instanceOf(classOf[WSClient])

val futureResult = wsCall(Call("get", "/testing")).get
val futureResult = wsCall(Call("get", "/testing")).get()
val body = futureResult.futureValue.body
val expectedBody =
"<html>" +
Expand Down

0 comments on commit 307eb2e

Please sign in to comment.