Skip to content

Commit

Permalink
finos#989 fixing ignite order store tests
Browse files Browse the repository at this point in the history
  • Loading branch information
naleeha committed Feb 13, 2024
1 parent e2d6baf commit 095d331
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class IgniteOrderStoreTest extends AnyFunSuiteLike with BeforeAndAfter with Matc
parentOrder2 = GivenParentHasChildOrder(parentOrder2, 6)

val filterQueries = "parentId = 2"
val childOrder = orderStore.findChildOrder(filterQueries, emptySortQueries, 2, 1)
val childOrder = orderStore.findChildOrder(filterQueries, emptySortQueries, 2, 1).toList

assert(childOrder != null)
assert(childOrder.size == 2)
Expand All @@ -109,7 +109,7 @@ class IgniteOrderStoreTest extends AnyFunSuiteLike with BeforeAndAfter with Matc
parentOrder2 = GivenParentHasChildOrder(parentOrder2, 6, ric = "VOD.L")

val filterQueries = "ric = \'VOD.L\'"
val childOrder = orderStore.findChildOrder(filterQueries, emptySortQueries, 100, 0)
val childOrder = orderStore.findChildOrder(filterQueries, emptySortQueries, 100, 0).toList

assert(childOrder != null)
assert(childOrder.size == 6)
Expand All @@ -123,7 +123,7 @@ class IgniteOrderStoreTest extends AnyFunSuiteLike with BeforeAndAfter with Matc
parentOrder2 = GivenParentHasChildOrder(parentOrder2, 4)
parentOrder2 = GivenParentHasChildOrder(parentOrder2, 5)

val childOrder = orderStore.findChildOrder(emptyFilterQueries, emptySortQueries, 100, 0)
val childOrder = orderStore.findChildOrder(emptyFilterQueries, emptySortQueries, 100, 0).toList

assert(childOrder != null)
assert(childOrder.size == 3)
Expand All @@ -138,7 +138,7 @@ class IgniteOrderStoreTest extends AnyFunSuiteLike with BeforeAndAfter with Matc
parentOrder2 = GivenParentHasChildOrder(parentOrder2, 2)

val sortByValues = "parentId ASC"
val childOrder = orderStore.findChildOrder(emptyFilterQueries, sortByValues, 100, 0)
val childOrder = orderStore.findChildOrder(emptyFilterQueries, sortByValues, 100, 0).toList

assert(childOrder != null)
assert(childOrder.size == 3)
Expand All @@ -154,7 +154,7 @@ class IgniteOrderStoreTest extends AnyFunSuiteLike with BeforeAndAfter with Matc
parentOrder2 = GivenParentHasChildOrder(parentOrder2, 2)

val sortByValues = "parentId DESC, id ASC"
val childOrder = orderStore.findChildOrder(emptyFilterQueries, sortByValues, 100, 0)
val childOrder = orderStore.findChildOrder(emptyFilterQueries, sortByValues, 100, 0).toList

assert(childOrder != null)
assert(childOrder.size == 3)
Expand Down

0 comments on commit 095d331

Please sign in to comment.