Skip to content

Commit 0a5aef1

Browse files
committed
exclude default columns when creating join columns
1 parent 7648e5f commit 0a5aef1

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

vuu/src/test/scala/org/finos/vuu/core/module/ModuleSyntaxTest.scala

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ import org.scalatest.GivenWhenThen
66
import org.scalatest.featurespec.AnyFeatureSpec
77
import org.scalatest.matchers.should.Matchers
88

9-
class ModuleSyntaxTest extends AnyFeatureSpec with Matchers with GivenWhenThen{
9+
class ModuleSyntaxTest extends AnyFeatureSpec with Matchers with GivenWhenThen {
1010

11-
Feature("check the new builder syntax for view server modules"){
11+
Feature("check the new builder syntax for view server modules") {
1212

13-
Scenario("check we can parse the module"){
13+
Scenario("check we can parse the module") {
1414

1515
Given("A test module which several tables defined, which takes some parameters (these are simple example params but could be complicated lifecycle stuff)")
1616
implicit val tableDefContainer: TableDefContainer = new TableDefContainer(Map())
1717
val module = TestModule2.apply("foo", 100)
18-
module.tableDefs.size should be (3)
18+
module.tableDefs.size should be(3)
1919
module.name should equal("TEST")
2020

2121
val instruments = module.tableDefs.head
@@ -33,16 +33,16 @@ class ModuleSyntaxTest extends AnyFeatureSpec with Matchers with GivenWhenThen{
3333
)
3434
)
3535
instruments.joinFields should equal(Seq("ric"))
36-
36+
3737
val prices = module.tableDefs.tail.head
3838
prices.name should equal("prices")
3939
prices.columns.size should equal(9)
4040
prices.joinFields should equal(Seq("ric"))
4141

4242
val instrumentPrices = module.tableDefs.tail.tail.head
4343
instrumentPrices.name should equal("instrumentPrices")
44-
// TODO once https://github.com/finos/vuu/issues/1653 is done, review the expected value of columns.size in the next line
45-
instrumentPrices.columns.size should equal(prices.columns.size + instruments.columns.size - 1 + 2)
44+
instrumentPrices.columns.size should equal((prices.columns.size - 2) + (instruments.columns.size - 2) - 1 + 2)
45+
// exclude default columns in left and right table and exclude join column
4646

4747
instrumentPrices.joinFields should equal(Seq())
4848
}

0 commit comments

Comments
 (0)