You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gora.apache.org by dr...@apache.org on 2020/03/18 21:37:08 UTC

[gora] 02/02: GORE-646 Add new integration tests for MongoDB 3.6 and 4.0

This is an automated email from the ASF dual-hosted git repository.

drazzib pushed a commit to branch GORA-646-improve-gora-mongodb-tests
in repository https://gitbox.apache.org/repos/asf/gora.git

commit e8ffb47d76a150919bc24e0f188c06042cb960ae
Author: Damien Raude-Morvan <dr...@drazzib.com>
AuthorDate: Wed Mar 18 22:35:32 2020 +0100

    GORE-646 Add new integration tests for MongoDB 3.6 and 4.0
---
 .../gora/mongodb/store/TestMongoStore36.java       | 31 ++++++++++++++++++++++
 .../gora/mongodb/store/TestMongoStore40.java       | 31 ++++++++++++++++++++++
 2 files changed, 62 insertions(+)

diff --git a/gora-mongodb/src/test/java/org/apache/gora/mongodb/store/TestMongoStore36.java b/gora-mongodb/src/test/java/org/apache/gora/mongodb/store/TestMongoStore36.java
new file mode 100644
index 0000000..7b5d0aa
--- /dev/null
+++ b/gora-mongodb/src/test/java/org/apache/gora/mongodb/store/TestMongoStore36.java
@@ -0,0 +1,31 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.gora.mongodb.store;
+
+import de.flapdoodle.embed.mongo.distribution.Version;
+import org.apache.gora.mongodb.GoraMongodbTestDriver;
+
+/**
+ * Perform {@link TestMongoStore} tests on MongoDB 3.6.x server.
+ */
+public class TestMongoStore36 extends TestMongoStore {
+
+  static {
+    setTestDriver(new GoraMongodbTestDriver(Version.Main.V3_6));
+  }
+}
diff --git a/gora-mongodb/src/test/java/org/apache/gora/mongodb/store/TestMongoStore40.java b/gora-mongodb/src/test/java/org/apache/gora/mongodb/store/TestMongoStore40.java
new file mode 100644
index 0000000..6cc9163
--- /dev/null
+++ b/gora-mongodb/src/test/java/org/apache/gora/mongodb/store/TestMongoStore40.java
@@ -0,0 +1,31 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.gora.mongodb.store;
+
+import de.flapdoodle.embed.mongo.distribution.Version;
+import org.apache.gora.mongodb.GoraMongodbTestDriver;
+
+/**
+ * Perform {@link TestMongoStore} tests on MongoDB 4.0.x server.
+ */
+public class TestMongoStore40 extends TestMongoStore {
+
+  static {
+    setTestDriver(new GoraMongodbTestDriver(Version.Main.V4_0));
+  }
+}