From c23e721aac73ca51f30fcc1992c64583dd2b6a72 Mon Sep 17 00:00:00 2001 From: chris Date: Tue, 23 Jan 2024 15:58:29 +0100 Subject: [PATCH] #1151 resolved bug with viewport keys registration. --- .../table/VirtualizedViewPortTest.scala | 8 +- .../runconfigurations/Run All Tests.run.xml | 89 +++++++++++++++++++ .../org/finos/vuu/viewport/ViewPort.scala | 6 +- 3 files changed, 99 insertions(+), 4 deletions(-) diff --git a/example/virtualized-table/src/test/scala/org/finos/vuu/example/virtualized/table/VirtualizedViewPortTest.scala b/example/virtualized-table/src/test/scala/org/finos/vuu/example/virtualized/table/VirtualizedViewPortTest.scala index 8d0260e4a..6f3d1a7ab 100644 --- a/example/virtualized-table/src/test/scala/org/finos/vuu/example/virtualized/table/VirtualizedViewPortTest.scala +++ b/example/virtualized-table/src/test/scala/org/finos/vuu/example/virtualized/table/VirtualizedViewPortTest.scala @@ -57,7 +57,11 @@ class VirtualizedViewPortTest extends VuuServerTestCase { assertVpEq(combineQsForVp(viewport)) { Table( ("orderId" ,"quantity","price" ,"side" ,"trader" ), - (null ,null ,null ,null ,null ) + ("10" ,-1157793070,8220501950349663546L,"Sell" ,"trader1" ), + ("11" ,-1158177819,-5263473657679273937L,"Sell" ,"trader1" ), + ("12" ,-1160101563,1103624592719277817L,"Sell" ,"trader1" ), + ("13" ,-1160486312,6066393058399891950L,"Sell" ,"trader1" ), + ("14" ,-1159332065,-8821912338641950449L,"Buy" ,"trader1" ) ) } @@ -66,11 +70,11 @@ class VirtualizedViewPortTest extends VuuServerTestCase { assertVpEq(combineQsForVp(viewport)) { Table( ("orderId" ,"quantity","price" ,"side" ,"trader" ), + ("14" ,-1159332065,-8821912338641950449L,"Buy" ,"trader1" ), ("10" ,-1157793070,8220501950349663546L,"Sell" ,"trader1" ), ("11" ,-1158177819,-5263473657679273937L,"Sell" ,"trader1" ), ("12" ,-1160101563,1103624592719277817L,"Sell" ,"trader1" ), ("13" ,-1160486312,6066393058399891950L,"Sell" ,"trader1" ), - ("14" ,-1159332065,-8821912338641950449L,"Buy" ,"trader1" ), ("5" ,-1157408321,3257733484669049412L,"Buy" ,"trader1" ), ("6" ,-1156254074,6816172161336758629L,"Sell" ,"trader1" ), ("7" ,-1156638823,-6667803446692178854L,"Sell" ,"trader1" ), diff --git a/vuu/src/main/resources/runconfigurations/Run All Tests.run.xml b/vuu/src/main/resources/runconfigurations/Run All Tests.run.xml index dbb59f09d..f92f877ba 100644 --- a/vuu/src/main/resources/runconfigurations/Run All Tests.run.xml +++ b/vuu/src/main/resources/runconfigurations/Run All Tests.run.xml @@ -2,11 +2,100 @@ +