-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#1415 added failing test for asserting view port columns are returned…
… when getting table metadata
- Loading branch information
1 parent
51beb4f
commit 3335381
Showing
2 changed files
with
46 additions
and
4 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
vuu/src/test/scala/org/finos/vuu/net/TestModuleFactory.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package org.finos.vuu.net | ||
|
||
import org.finos.toolbox.lifecycle.LifecycleContainer | ||
import org.finos.toolbox.time.Clock | ||
import org.finos.vuu.api.{TableDef, ViewPortDef} | ||
import org.finos.vuu.core.module.{ModuleFactory, TableDefContainer, ViewServerModule} | ||
import org.finos.vuu.provider.MockProvider | ||
|
||
object TestModuleFactory { | ||
def build(moduleName: String, tableDef: TableDef, viewPortDef: ViewPortDef)(implicit time: Clock, lifecycle: LifecycleContainer, tableDefContainer: TableDefContainer): ViewServerModule = | ||
ModuleFactory.withNamespace(moduleName) | ||
.addTable( | ||
tableDef, | ||
(table, _) => new MockProvider(table), | ||
(_, _, _, _) => viewPortDef | ||
) | ||
.asModule() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters