Skip to content

Commit 5e3c56d

Browse files
author
Evgeniya Tsybrenko
committed
DEX-994 fixed GetOrderBookStatusSpec
1 parent 091ae16 commit 5e3c56d

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

dex-it/src/test/scala/com/wavesplatform/it/matcher/api/http/markets/GetOrderBookStatusSpec.scala

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@ package com.wavesplatform.it.matcher.api.http.markets
22

33
import sttp.model.StatusCode
44
import com.typesafe.config.{Config, ConfigFactory}
5-
import com.wavesplatform.dex.api.http.entities.HttpOrderBookStatus
5+
import com.wavesplatform.dex.api.http.entities.{HttpLastTrade, HttpLevelAgg, HttpOrderBookStatus}
66
import com.wavesplatform.dex.domain.asset.AssetPair
77
import com.wavesplatform.dex.domain.order.OrderType.{BUY, SELL}
88
import com.wavesplatform.dex.error.{AssetNotFound, InvalidAsset, OrderAssetPairReversed}
99
import com.wavesplatform.dex.it.api.RawHttpChecks
10-
import com.wavesplatform.dex.model.{LastTrade, LevelAgg}
1110
import com.wavesplatform.it.MatcherSuiteBase
1211
import org.scalatest.prop.TableDrivenPropertyChecks
1312

@@ -73,9 +72,9 @@ class GetOrderBookStatusSpec extends MatcherSuiteBase with TableDrivenPropertyCh
7372
Some(1.waves)
7473
))
7574

76-
status.lastTrade.get should be(LastTrade(1.9.usd, 1.waves, BUY))
77-
status.bestBid.get should be(LevelAgg(10.waves, 1.1.usd))
78-
status.bestAsk.get should be(LevelAgg(1.waves, 1.9.usd))
75+
status.lastTrade.get should be(HttpLastTrade(1.9.usd, 1.waves, BUY))
76+
status.bestBid.get should be(HttpLevelAgg(10.waves, 1.1.usd))
77+
status.bestAsk.get should be(HttpLevelAgg(1.waves, 1.9.usd))
7978
}
8079

8180
withClue("- trade (best sell order fully filled)") {
@@ -92,9 +91,9 @@ class GetOrderBookStatusSpec extends MatcherSuiteBase with TableDrivenPropertyCh
9291
Some(4.waves)
9392
))
9493

95-
status.lastTrade.get should be(LastTrade(1.9.usd, 1.waves, BUY))
96-
status.bestBid.get should be(LevelAgg(10.waves, 1.1.usd))
97-
status.bestAsk.get should be(LevelAgg(4.waves, 2.usd))
94+
status.lastTrade.get should be(HttpLastTrade(1.9.usd, 1.waves, BUY))
95+
status.bestBid.get should be(HttpLevelAgg(10.waves, 1.1.usd))
96+
status.bestAsk.get should be(HttpLevelAgg(4.waves, 2.usd))
9897
}
9998
}
10099

0 commit comments

Comments
 (0)