From 36f34945668b19b75d8382bbc3dc5d8c2f2fb018 Mon Sep 17 00:00:00 2001 From: Tamino Dauth Date: Tue, 4 Dec 2018 16:07:41 +0100 Subject: [PATCH] Fix group ID --- build.sbt | 2 +- .../guistatemachine/rest/GuiStateMachineService.scala | 6 ++++-- .../scala/de/retest/guistatemachine/rest/WebServer.scala | 3 ++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/build.sbt b/build.sbt index 1bf7dfa..d1f7143 100644 --- a/build.sbt +++ b/build.sbt @@ -1,6 +1,6 @@ name := "gui-state-machine-api" -organization := "retest" +organization := "de.retest" scalaVersion := "2.12.7" diff --git a/src/main/scala/de/retest/guistatemachine/rest/GuiStateMachineService.scala b/src/main/scala/de/retest/guistatemachine/rest/GuiStateMachineService.scala index 6d8f2f1..797b5d4 100644 --- a/src/main/scala/de/retest/guistatemachine/rest/GuiStateMachineService.scala +++ b/src/main/scala/de/retest/guistatemachine/rest/GuiStateMachineService.scala @@ -64,7 +64,8 @@ class GuiStateMachineService(api: GuiStateMachineApi) extends Directives with De val app = api.getStateMachine(Id(id)) app match { case Some(x) => - entity(as[GetStateBody]) { body => complete(x.getState(body.descriptors, body.neverExploredActions)) + entity(as[GetStateBody]) { body => + complete(x.getState(body.descriptors, body.neverExploredActions)) } case None => complete(StatusCodes.NotFound) } @@ -86,7 +87,8 @@ class GuiStateMachineService(api: GuiStateMachineApi) extends Directives with De val app = api.getStateMachine(Id(id)) app match { case Some(x) => - entity(as[ExecuteActionBody]) { body => complete(x.executeAction(body.from, body.a, body.descriptors, body.neverExploredActions)) + entity(as[ExecuteActionBody]) { body => + complete(x.executeAction(body.from, body.a, body.descriptors, body.neverExploredActions)) } case None => complete(StatusCodes.NotFound) } diff --git a/src/main/scala/de/retest/guistatemachine/rest/WebServer.scala b/src/main/scala/de/retest/guistatemachine/rest/WebServer.scala index 7008b02..38b5d32 100644 --- a/src/main/scala/de/retest/guistatemachine/rest/WebServer.scala +++ b/src/main/scala/de/retest/guistatemachine/rest/WebServer.scala @@ -23,7 +23,8 @@ object WebServer extends App with RestService { val parser = new OptionParser[Config]("gui-state-machine") { head("gui-state-machine-api", "1.0") - opt[Long]('t', "maxtime") action { (x, c) => c.copy(maxtime = x) + opt[Long]('t', "maxtime") action { (x, c) => + c.copy(maxtime = x) } text ("maxtime specifies the maximum up time for the HTTP server in ms. This option can be helpful to run tests over a specific period of time.") help("help").text("prints this usage text")