diff options
author | szimano <szimano@szimano.org> | 2018-03-20 15:44:05 -0400 |
---|---|---|
committer | szimano <szimano@szimano.org> | 2018-03-20 15:44:05 -0400 |
commit | 2d586e834a6bb486e1a83479d9cd5ccb4ff9ce9b (patch) | |
tree | 62010fb0c79ada40f31d1f4a8b12970de4b9a96f | |
parent | 71fbfbff2aec36b6aace3cf210e15d11e1c0b1db (diff) | |
download | sttp-2d586e834a6bb486e1a83479d9cd5ccb4ff9ce9b.tar.gz sttp-2d586e834a6bb486e1a83479d9cd5ccb4ff9ce9b.tar.bz2 sttp-2d586e834a6bb486e1a83479d9cd5ccb4ff9ce9b.zip |
fix the package name
-rw-r--r-- | circuit-breaker/hystrix-backend/src/test/scala/com/softwaremill/sttp/hystrix/HystrixBackendTest.scala | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/circuit-breaker/hystrix-backend/src/test/scala/com/softwaremill/sttp/hystrix/HystrixBackendTest.scala b/circuit-breaker/hystrix-backend/src/test/scala/com/softwaremill/sttp/hystrix/HystrixBackendTest.scala index 483e513..8772d45 100644 --- a/circuit-breaker/hystrix-backend/src/test/scala/com/softwaremill/sttp/hystrix/HystrixBackendTest.scala +++ b/circuit-breaker/hystrix-backend/src/test/scala/com/softwaremill/sttp/hystrix/HystrixBackendTest.scala @@ -1,7 +1,6 @@ -package com.softwaremill.sttp.prometheus +package com.softwaremill.sttp.hystrix import com.netflix.hystrix.{HystrixCommandKey, HystrixCommandMetrics, HystrixCommandProperties} -import com.softwaremill.sttp.hystrix.HystrixBackend import com.softwaremill.sttp.testing.SttpBackendStub import com.softwaremill.sttp.{sttp, _} import org.scalatest.concurrent.{Eventually, IntegrationPatience, ScalaFutures} @@ -9,14 +8,22 @@ import org.scalatest.{BeforeAndAfter, FlatSpec, Matchers, OptionValues} import scala.concurrent.Future -class HystrixBackendTest extends FlatSpec with Matchers with BeforeAndAfter with Eventually with OptionValues - with ScalaFutures with IntegrationPatience{ +class HystrixBackendTest + extends FlatSpec + with Matchers + with BeforeAndAfter + with Eventually + with OptionValues + with ScalaFutures + with IntegrationPatience { it should "use default hystrix commands on async backend" in { // given val backendStub = SttpBackendStub.asynchronousFuture.whenAnyRequest.thenRespondOk() - val backend = HystrixBackend[Future, Nothing](backendStub)("TestAsyncCMD", HystrixCommandProperties.Setter().withMetricsHealthSnapshotIntervalInMilliseconds(10)) + val backend = HystrixBackend[Future, Nothing](backendStub)( + "TestAsyncCMD", + HystrixCommandProperties.Setter().withMetricsHealthSnapshotIntervalInMilliseconds(10)) val requestsNumber = 10 // when @@ -35,7 +42,9 @@ class HystrixBackendTest extends FlatSpec with Matchers with BeforeAndAfter with // given val backendStub = SttpBackendStub.synchronous.whenAnyRequest.thenRespondOk() - val backend = HystrixBackend[Id, Nothing](backendStub)("TestSyncCMD", HystrixCommandProperties.Setter().withMetricsHealthSnapshotIntervalInMilliseconds(10)) + val backend = HystrixBackend[Id, Nothing](backendStub)( + "TestSyncCMD", + HystrixCommandProperties.Setter().withMetricsHealthSnapshotIntervalInMilliseconds(10)) val requestsNumber = 10 // when |