From 09b7662c6ef9f80a9d4ad7c2cc8df9a25bdf8c9d Mon Sep 17 00:00:00 2001 From: Yingjian Wu Date: Fri, 8 Mar 2024 14:14:27 -0500 Subject: [PATCH] add more test --- .../groovy/com/netflix/metacat/MySqlLookupServiceSpec.groovy | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/metacat-functional-tests/src/functionalTest/groovy/com/netflix/metacat/MySqlLookupServiceSpec.groovy b/metacat-functional-tests/src/functionalTest/groovy/com/netflix/metacat/MySqlLookupServiceSpec.groovy index c4a077068..bf30a1a89 100644 --- a/metacat-functional-tests/src/functionalTest/groovy/com/netflix/metacat/MySqlLookupServiceSpec.groovy +++ b/metacat-functional-tests/src/functionalTest/groovy/com/netflix/metacat/MySqlLookupServiceSpec.groovy @@ -119,10 +119,11 @@ class MySqlLookupServiceSpec extends Specification{ } def "test addValues for different id"() { - when: + setup: def mock1LookUp = mySqlLookupService.addValues("addValues_mock1", ["1", "2", "3"] as Set) def mock2LookUp = mySqlLookupService.addValues("addValues_mock2", ["4", "5", "6"] as Set) - then: + + expect: mock1LookUp.values == ["1", "2", "3"] as Set mock1LookUp.values == mySqlLookupService.getValues("addValues_mock1") areLookupsEqual(mock1LookUp, mySqlLookupService.get("addValues_mock1"))