cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ntimof...@apache.org
Subject [cayenne] branch master updated: CAY-2718 Use testcontainers for the integration tests
Date Tue, 07 Sep 2021 11:35:27 GMT
This is an automated email from the ASF dual-hosted git repository.

ntimofeev pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cayenne.git


The following commit(s) were added to refs/heads/master by this push:
     new d2685c1  CAY-2718 Use testcontainers for the integration tests
d2685c1 is described below

commit d2685c1e5748c64d24a020257c67be20452ec70e
Author: Nikita Timofeev <stariy95@gmail.com>
AuthorDate: Tue Sep 7 14:35:21 2021 +0300

    CAY-2718 Use testcontainers for the integration tests
---
 .../java/org/apache/cayenne/unit/SQLServerUnitDbAdapter.java | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/cayenne-server/src/test/java/org/apache/cayenne/unit/SQLServerUnitDbAdapter.java
b/cayenne-server/src/test/java/org/apache/cayenne/unit/SQLServerUnitDbAdapter.java
index ba7ff83..ddef528 100644
--- a/cayenne-server/src/test/java/org/apache/cayenne/unit/SQLServerUnitDbAdapter.java
+++ b/cayenne-server/src/test/java/org/apache/cayenne/unit/SQLServerUnitDbAdapter.java
@@ -22,6 +22,7 @@ package org.apache.cayenne.unit;
 import java.sql.Connection;
 import java.util.Collection;
 
+import org.apache.cayenne.configuration.Constants;
 import org.apache.cayenne.dba.DbAdapter;
 import org.apache.cayenne.map.DataMap;
 
@@ -96,4 +97,15 @@ public class SQLServerUnitDbAdapter extends SybaseUnitDbAdapter {
     public boolean supportsCatalogs() {
         return true;
     }
+
+    /**
+     * SqlServer actually supports case sensitivity, but it depends on server/session/table
settings,
+     * so we just skip this for tests stability.
+     *
+     * @return false
+     */
+    @Override
+    public boolean supportsCaseSensitiveLike() {
+        return false;
+    }
 }

Mime
View raw message