Skip to content

Commit

Permalink
add more test
Browse files Browse the repository at this point in the history
  • Loading branch information
Yingjian Wu committed Mar 8, 2024
1 parent 4086c8a commit 09b7662
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>)
def mock2LookUp = mySqlLookupService.addValues("addValues_mock2", ["4", "5", "6"] as Set<String>)
then:

expect:
mock1LookUp.values == ["1", "2", "3"] as Set<String>
mock1LookUp.values == mySqlLookupService.getValues("addValues_mock1")
areLookupsEqual(mock1LookUp, mySqlLookupService.get("addValues_mock1"))
Expand Down

0 comments on commit 09b7662

Please sign in to comment.