diff --git a/pom.xml b/pom.xml
index 27719d83..5e1deca0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -35,7 +35,7 @@
8.1.2
8.1.2
3.6.1
- 3.1.7
+ 3.1.6
2.12.7
1.18.32
4.2.1
diff --git a/src/test/java/org/springframework/data/aerospike/core/AerospikeTemplateDeleteTests.java b/src/test/java/org/springframework/data/aerospike/core/AerospikeTemplateDeleteTests.java
index a2c6c1cf..4b766382 100644
--- a/src/test/java/org/springframework/data/aerospike/core/AerospikeTemplateDeleteTests.java
+++ b/src/test/java/org/springframework/data/aerospike/core/AerospikeTemplateDeleteTests.java
@@ -1,18 +1,18 @@
-/*
- * Copyright 2019 the original author or authors
- *
- * Licensed 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.
- *//*
+ /*
+ * Copyright 2019 the original author or authors
+ *
+ * Licensed 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.springframework.data.aerospike.core;
@@ -429,4 +429,3 @@ public void deleteAll_VersionsMismatch() {
}
}
}
-*/
diff --git a/src/test/java/org/springframework/data/aerospike/core/AerospikeTemplateSaveTests.java b/src/test/java/org/springframework/data/aerospike/core/AerospikeTemplateSaveTests.java
index 3a6a17e8..fca35c75 100644
--- a/src/test/java/org/springframework/data/aerospike/core/AerospikeTemplateSaveTests.java
+++ b/src/test/java/org/springframework/data/aerospike/core/AerospikeTemplateSaveTests.java
@@ -19,7 +19,6 @@
import com.aerospike.client.Record;
import com.aerospike.client.policy.Policy;
import org.junit.jupiter.api.AfterAll;
-import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestInstance;
import org.springframework.dao.ConcurrencyFailureException;
@@ -367,7 +366,6 @@ public void shouldSaveAllAndSetVersionWithSetName() {
}
@Test
- @Disabled
public void shouldSaveAllVersionedDocumentsAndSetVersionAndThrowExceptionIfDuplicatesWithinOneBatch() {
// batch write operations are supported starting with Server version 6.0+
if (serverVersionSupport.isBatchWriteSupported()) {
@@ -389,7 +387,13 @@ public void shouldSaveAllVersionedDocumentsAndSetVersionAndThrowExceptionIfDupli
template.delete(first); // cleanup
template.delete(second); // cleanup
+ }
+ }
+ @Test
+ public void shouldSaveAllVersionedDocumentsIfDuplicatesNotWithinOneBatch() {
+ // batch write operations are supported starting with Server version 6.0+
+ if (serverVersionSupport.isBatchWriteSupported()) {
// The same versioned documents can be saved if they are not in the same batch.
// This way, the generation counts of the corresponding database records can be used
// to update the documents’ versions each time.