Skip to content

Commit 82783b2

Browse files
author
mpv1989
committed
Disable silent tests for ArangoDB 3.2
1 parent b5390f2 commit 82783b2

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/test/java/com/arangodb/ArangoCollectionTest.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,9 @@ public void insertDocumentAsJson() {
179179

180180
@Test
181181
public void insertDocumentSilent() {
182+
if (!requireVersion(3, 3)) {
183+
return;
184+
}
182185
final DocumentCreateEntity<BaseDocument> meta = db.collection(COLLECTION_NAME)
183186
.insertDocument(new BaseDocument(), new DocumentCreateOptions().silent(true));
184187
assertThat(meta, is(notNullValue()));
@@ -189,6 +192,9 @@ public void insertDocumentSilent() {
189192

190193
@Test
191194
public void insertDocumentSilentDontTouchInstance() {
195+
if (!requireVersion(3, 3)) {
196+
return;
197+
}
192198
final BaseDocument doc = new BaseDocument();
193199
final String key = "testkey";
194200
doc.setKey(key);
@@ -630,6 +636,9 @@ public void updateDocumentIgnoreRevsFalse() {
630636

631637
@Test
632638
public void updateDocumentSilent() {
639+
if (!requireVersion(3, 3)) {
640+
return;
641+
}
633642
final DocumentCreateEntity<BaseDocument> createResult = db.collection(COLLECTION_NAME)
634643
.insertDocument(new BaseDocument());
635644
final DocumentUpdateEntity<BaseDocument> meta = db.collection(COLLECTION_NAME)
@@ -781,6 +790,9 @@ public void replaceDocumentReturnOld() {
781790

782791
@Test
783792
public void replaceDocumentSilent() {
793+
if (!requireVersion(3, 3)) {
794+
return;
795+
}
784796
final DocumentCreateEntity<BaseDocument> createResult = db.collection(COLLECTION_NAME)
785797
.insertDocument(new BaseDocument());
786798
final DocumentUpdateEntity<BaseDocument> meta = db.collection(COLLECTION_NAME)
@@ -856,6 +868,9 @@ public void deleteDocumentIfMatchFail() {
856868

857869
@Test
858870
public void deleteDocumentSilent() {
871+
if (!requireVersion(3, 3)) {
872+
return;
873+
}
859874
final DocumentCreateEntity<BaseDocument> createResult = db.collection(COLLECTION_NAME)
860875
.insertDocument(new BaseDocument());
861876
final DocumentDeleteEntity<BaseDocument> meta = db.collection(COLLECTION_NAME)

0 commit comments

Comments
 (0)