Skip to content

Commit 0223943

Browse files
committed
fixed scalafmt issues
1 parent 34ac49a commit 0223943

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

play-scala/application-tests/test/com/baeldung/arrival/actions/SourceActionsUnitTest.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,17 @@ class SourceActionsUnitTest
2121

2222
"SourceAction" should {
2323
"return BAD_REQUEST status for missing source header" in {
24-
val testee: Action[AnyContent] = SourceAction(anyContentParser)(globalEc) { _ => NoContent }
24+
val testee: Action[AnyContent] =
25+
SourceAction(anyContentParser)(globalEc) { _ => NoContent }
2526

2627
whenReady(testee.apply(FakeRequest())) { result =>
2728
assert(result.header.status === BAD_REQUEST)
2829
}
2930
}
3031

3132
"return NO_CONTENT status for when source header is present" in {
32-
val testee: Action[AnyContent] = SourceAction(anyContentParser)(globalEc) { _ => NoContent }
33+
val testee: Action[AnyContent] =
34+
SourceAction(anyContentParser)(globalEc) { _ => NoContent }
3335
whenReady(
3436
testee.apply(FakeRequest().withHeaders(Headers("source" -> "foo")))
3537
) { result =>

play-scala/play-templates/app/controllers/ViewTemplateController.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ case class Article(title: String, url: String)
88
class ViewTemplateController @Inject() (cc: ControllerComponents)
99
extends AbstractController(cc) {
1010

11-
def index = Action {
11+
def index = Action {
1212
val articles = List(
1313
(
1414
"Introduction to Play Framework",
@@ -22,7 +22,7 @@ class ViewTemplateController @Inject() (cc: ControllerComponents)
2222
Ok(views.html.Baeldung.index(articles))
2323
}
2424

25-
def withClass = Action {
25+
def withClass = Action {
2626
val articles = List(
2727
Article(
2828
"Introduction to Play Framework",

play-scala/play-templates/test/controllers/MenuControllerUnitTest.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ class MenuControllerUnitTest
1717

1818
val controller = new MenuController(template, stubControllerComponents())
1919

20-
val result = controller
21-
.availableProducts
20+
val result = controller.availableProducts
2221
.apply(
2322
FakeRequest(GET, "/menu")
2423
)

play-scala/play-templates/test/controllers/ViewTemplateControllerUnitTest.scala

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ class ViewTemplateControllerUnitTest
1313

1414
"should return two articles" in {
1515
val controller = new ViewTemplateController(stubControllerComponents())
16-
val result = controller
17-
.index
16+
val result = controller.index
1817
.apply(
1918
FakeRequest(GET, "/template")
2019
)
@@ -27,8 +26,7 @@ class ViewTemplateControllerUnitTest
2726

2827
"with_class function returns the same two articles" in {
2928
val controller = new ViewTemplateController(stubControllerComponents())
30-
val result = controller
31-
.withClass
29+
val result = controller.withClass
3230
.apply(
3331
FakeRequest(GET, "/withclass")
3432
)

0 commit comments

Comments
 (0)