Skip to content

Commit

Permalink
improveTestAndSetBackSnowFlakeJDBC (#581)
Browse files Browse the repository at this point in the history
* improveTestAndSetBackSnowFlakeJDBC

* improveTestAndSetBackSnowFlakeJDBC

---------

Co-authored-by: Yingjian Wu <[email protected]>
  • Loading branch information
stevie9868 and Yingjian Wu authored Mar 11, 2024
1 parent 0845991 commit 2b1dd01
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ configure(javaProjects) {
dependency("org.codehaus.gpars:gpars:1.2.1")
/**es 5.4.1 dependencies*/
dependency("org.elasticsearch.client:transport:5.4.1")
dependency("net.snowflake:snowflake-jdbc:3.15.0")
dependency("net.snowflake:snowflake-jdbc:3.4.2")
dependency("com.esotericsoftware.kryo:kryo:2.22")
dependency("org.apache.iceberg:iceberg-spark-runtime:${iceberg_version}")
dependency("com.datastax.cassandra:cassandra-driver-core:3.7.2")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,15 +138,15 @@ class MySqlLookupServiceSpec extends Specification{

def "test setValue for different id"(){
when:
def mock1LookUp = mySqlLookupService.setValues("mock1", ["1", "2", "3"] as Set<String>)
def mock2LookUp = mySqlLookupService.setValues("mock2", ["4", "5", "6"] as Set<String>)
def mock1LookUp = mySqlLookupService.setValue("setValue_mock1", "1")
def mock2LookUp = mySqlLookupService.setValue("setValue_mock2", "2")
then:
mock1LookUp.values == ["1", "2", "3"] as Set<String>
mock1LookUp.values == mySqlLookupService.getValues("mock1")
areLookupsEqual(mock1LookUp, mySqlLookupService.get("mock1", true))
mock2LookUp.values == ["4", "5", "6"] as Set<String>
mock2LookUp.values == mySqlLookupService.getValues("mock2")
areLookupsEqual(mock2LookUp, mySqlLookupService.get("mock2", true))
mock1LookUp.values == ["1"] as Set<String>
mock1LookUp.values == mySqlLookupService.getValues("setValue_mock1")
areLookupsEqual(mock1LookUp, mySqlLookupService.get("setValue_mock1", true))
mock2LookUp.values == ["2"] as Set<String>
mock2LookUp.values == mySqlLookupService.getValues("setValue_mock2")
areLookupsEqual(mock2LookUp, mySqlLookupService.get("setValue_mock2", true))
}
}

0 comments on commit 2b1dd01

Please sign in to comment.