File tree Expand file tree Collapse file tree
matching-engine-app/src/test/kotlin/co/nilin/opex/matching/engine/app
matching-engine-core/src/test/kotlin/co/nilin/opex/matching/engine/core Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ pipeline {
2424 DEFAULT_NETWORK_NAME = 'dev-opex'
2525 }
2626 steps {
27- sh 'docker-compose up -f docker-compose.yml -f docker-compose.dev.yml -d --build --remove-orphans'
27+ sh 'docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d --build --remove-orphans'
2828 sh 'docker image prune -f'
2929 sh 'docker network prune -f'
3030 }
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ services:
8181 image : vault
8282 volumes :
8383 - $DATA/vault:/vault/file:rw
84- - $PWD /vault/config:/vault/config:rw
84+ - . /vault/config:/vault/config:rw
8585 environment :
8686 - VAULT_ADDRESS=http://0.0.0.0:8200
8787 - PANEL_PASS=${PANEL_PASS}
@@ -401,7 +401,7 @@ services:
401401 - CONSUL_HOST=consul
402402 - DB_IP_PORT=postgres-bc-gateway
403403 - BACKEND_USER=${BACKEND_USER}
404- - VAULT_URL=http:// vault:8200
404+ - VAULT_HOST= vault
405405 depends_on :
406406 - redis
407407 - consul
Original file line number Diff line number Diff line change 1- package co.nilin.opex.matching.engine.core.engine
1+ package co.nilin.opex.matching.engine.app
22
3+ import co.nilin.opex.matching.engine.core.engine.SimpleOrderBook
34import co.nilin.opex.matching.engine.core.eventh.EventDispatcher
45import co.nilin.opex.matching.engine.core.eventh.events.OrderBookPublishedEvent
56import co.nilin.opex.matching.engine.core.inout.OrderCancelCommand
@@ -15,10 +16,10 @@ import org.junit.jupiter.api.Test
1516import java.util.*
1617
1718class OrderBookEventEmitsUnitTest {
18- val pair = co.nilin.opex.matching.engine.core.model.Pair (" BTC" , " USDT" )
19- val uuid = UUID .randomUUID().toString()
19+ private val pair = co.nilin.opex.matching.engine.core.model.Pair (" BTC" , " USDT" )
20+ private val uuid = UUID .randomUUID().toString()
2021
21- var persistentOrderBook: PersistentOrderBook ? = null
22+ private var persistentOrderBook: PersistentOrderBook ? = null
2223
2324 @BeforeEach
2425 fun setup () {
@@ -144,6 +145,4 @@ class OrderBookEventEmitsUnitTest {
144145 // then
145146 Assertions .assertNotNull(persistentOrderBook)
146147 }
147-
148-
149148}
Original file line number Diff line number Diff line change 1- package co.nilin.opex.matching.engine.core.engine
1+ package co.nilin.opex.matching.engine.core
22
3+ import co.nilin.opex.matching.engine.core.engine.SimpleOrderBook
34import co.nilin.opex.matching.engine.core.inout.OrderCancelCommand
45import co.nilin.opex.matching.engine.core.inout.OrderCreateCommand
56import co.nilin.opex.matching.engine.core.inout.OrderEditCommand
@@ -13,9 +14,9 @@ import org.junit.jupiter.api.Test
1314import java.util.*
1415
1516class SimpleOrderBookUnitTest {
16- val pair = co.nilin.opex.matching.engine.core.model.Pair (" BTC" , " USDT" )
17- val ETH_BTC_PAIR = co.nilin.opex.matching.engine.core.model.Pair (" ETH" , " BTC" )
18- val uuid = UUID .randomUUID().toString()
17+ private val pair = co.nilin.opex.matching.engine.core.model.Pair (" BTC" , " USDT" )
18+ private val ETH_BTC_PAIR = co.nilin.opex.matching.engine.core.model.Pair (" ETH" , " BTC" )
19+ private val uuid = UUID .randomUUID().toString()
1920
2021 @Test
2122 fun givenEmptyOrderBook_whenGtcBidLimitOrderCreated_then1BucketWithSize1 () {
@@ -848,5 +849,4 @@ class SimpleOrderBookUnitTest {
848849 Assertions .assertNotNull(orderBook.bestBidOrder)
849850 Assertions .assertNotNull(orderBook.bestAskOrder)
850851 }
851-
852852}
You can’t perform that action at this time.
0 commit comments