Skip to content

Commit 426c24f

Browse files
committed
change build again
1 parent 326f006 commit 426c24f

File tree

4 files changed

+12
-21
lines changed

4 files changed

+12
-21
lines changed

build.sbt

+2-11
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,10 @@ val akkaStreamsTestkit = "com.typesafe.akka" %% "akka-stream-testkit" % akkaStre
2020

2121
val scalaTest = "org.scalatest" %% "scalatest" % "3.2.16" % "test"
2222

23-
lazy val akkaRootProject = (project in file("."))
24-
.settings(commonSettings: _*)
25-
.settings(publish / skip := true, name := "akka-http-session", scalaVersion := scala2_13)
26-
.aggregate(core.projectRefs ++ jwt.projectRefs ++ example.projectRefs ++ javaTests.projectRefs: _*)
27-
28-
lazy val pekkoRootProject = (project in file("."))
29-
.settings(pekkoCommonSettings: _*)
30-
.settings(publish / skip := true, name := "pekko-http-session", scalaVersion := scala2_13)
31-
.aggregate(pekkoCore.projectRefs ++ pekkoJwt.projectRefs ++ pekkoExample.projectRefs ++ pekkoJavaTests.projectRefs: _*)
32-
3323
lazy val rootProject = (project in file("."))
3424
.settings(publish / skip := true, name := "akka-http-session-root", scalaVersion := scala2_13)
35-
.aggregate(akkaRootProject, pekkoRootProject)
25+
.aggregate(core.projectRefs ++ jwt.projectRefs ++ example.projectRefs ++ javaTests.projectRefs ++
26+
pekkoCore.projectRefs ++ pekkoJwt.projectRefs ++ pekkoExample.projectRefs ++ pekkoJavaTests.projectRefs: _*)
3627

3728
lazy val core = (projectMatrix in file("core"))
3829
.settings(commonSettings: _*)

core/src/test/scala/com/softwaremill/session/CsrfDirectivesTest.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class CsrfDirectivesTest extends AnyFlatSpec with ScalatestRouteTest with Matche
4343
responseAs[String] should be("ok")
4444

4545
val csrfCookieOption = header[`Set-Cookie`]
46-
csrfCookieOption should be('defined)
46+
csrfCookieOption shouldBe defined
4747
val Some(csrfCookie) = csrfCookieOption
4848

4949
csrfCookie.cookie.name should be(cookieName)

core/src/test/scala/com/softwaremill/session/OneOffTest.scala

+4-4
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class OneOffTest extends AnyFlatSpec with ScalatestRouteTest with Matchers with
5555
"Using cookies" should "set the correct session cookie name" in {
5656
Get("/set") ~> createRoutes(TestUsingCookies) ~> check {
5757
val sessionCookieOption = header[`Set-Cookie`]
58-
sessionCookieOption should be('defined)
58+
sessionCookieOption shouldBe defined
5959
val Some(sessionCookie) = sessionCookieOption
6060

6161
sessionCookie.cookie.name should be(TestUsingCookies.sessionCookieName)
@@ -71,7 +71,7 @@ class OneOffTest extends AnyFlatSpec with ScalatestRouteTest with Matchers with
7171
responseAs[String] should be("ok")
7272

7373
val sessionOption = using.getSession
74-
sessionOption should be('defined)
74+
sessionOption shouldBe defined
7575

7676
using.isSessionExpired should be(false)
7777
}
@@ -188,7 +188,7 @@ class OneOffTest extends AnyFlatSpec with ScalatestRouteTest with Matchers with
188188
val legacySession = Legacy.encodeV0_5_1(data, now, sessionConfig)
189189

190190
Get("/getReq") ~> addHeader(using.setSessionHeader(legacySession)) ~> routes(manager_tokenMigrationFromV0_5_1) ~> check {
191-
using.getSession should be('defined)
191+
using.getSession shouldBe defined
192192
responseAs[String] should be(data.toString)
193193
}
194194
}
@@ -213,7 +213,7 @@ class OneOffTest extends AnyFlatSpec with ScalatestRouteTest with Matchers with
213213
val legacySession = Legacy.encodeV0_5_2(data, now, sessionConfig)
214214

215215
Get("/getReq") ~> addHeader(using.setSessionHeader(legacySession)) ~> routes(manager_tokenMigrationFromV0_5_2) ~> check {
216-
using.getSession should be('defined)
216+
using.getSession shouldBe defined
217217
responseAs[String] should be(data.toString)
218218
}
219219
}

core/src/test/scala/com/softwaremill/session/RefreshableTest.scala

+5-5
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ class RefreshableTest extends AnyFlatSpec with ScalatestRouteTest with Matchers
6464
Get("/set") ~> routes ~> check {
6565
responseAs[String] should be("ok")
6666

67-
using.getSession should be('defined)
67+
using.getSession shouldBe defined
6868
using.countSessionHeaders should be(1)
69-
using.getRefreshToken should be('defined)
69+
using.getRefreshToken shouldBe defined
7070
using.countRefreshTokenHeaders should be(1)
7171
}
7272
}
@@ -120,7 +120,7 @@ class RefreshableTest extends AnyFlatSpec with ScalatestRouteTest with Matchers
120120
Get("/set") ~> routes ~> check {
121121
val Some(token1) = using.getRefreshToken
122122
val session1 = using.getSession
123-
session1 should be('defined)
123+
session1 shouldBe defined
124124

125125
Get("/getOpt") ~>
126126
addHeader(using.setRefreshTokenHeader(token1)) ~>
@@ -129,7 +129,7 @@ class RefreshableTest extends AnyFlatSpec with ScalatestRouteTest with Matchers
129129
using.countSessionHeaders should be(1)
130130
using.countRefreshTokenHeaders should be(1)
131131
val session2 = using.getSession
132-
session2 should be('defined)
132+
session2 shouldBe defined
133133
session2 should not be (session1)
134134
}
135135
}
@@ -275,7 +275,7 @@ class RefreshableTest extends AnyFlatSpec with ScalatestRouteTest with Matchers
275275

276276
// new token should be generated
277277
session1 should not be (session3)
278-
token3Opt should be('defined)
278+
token3Opt shouldBe defined
279279
}
280280
}
281281
}

0 commit comments

Comments
 (0)