[java-opensaml] branch main updated: Add extra version test to updateWithVersionTest

Rod Widdowson rdw at steadingsoftware.com
Sun May 8 14:17:36 UTC 2022


This is an automated email from the git hooks/post-receive script.

rdw pushed a commit to branch main
in repository java-opensaml.

View the commit online:
http://git.shibboleth.net/view/?p=java-opensaml.git;a=commit;h=f3978aaf0d4cee34b5d1ec4f3ad9c62dc67fa002

The following commit(s) were added to refs/heads/main by this push:
     new f3978aaf0 Add extra version test to updateWithVersionTest
f3978aaf0 is described below

commit f3978aaf0d4cee34b5d1ec4f3ad9c62dc67fa002
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Sun May 8 15:17:20 2022 +0100

    Add extra version test to updateWithVersionTest
---
 .../test/java/org/opensaml/storage/testing/StorageServiceTest.java   | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/opensaml-storage-api/src/test/java/org/opensaml/storage/testing/StorageServiceTest.java b/opensaml-storage-api/src/test/java/org/opensaml/storage/testing/StorageServiceTest.java
index 6a092955f..5b7e02c63 100644
--- a/opensaml-storage-api/src/test/java/org/opensaml/storage/testing/StorageServiceTest.java
+++ b/opensaml-storage-api/src/test/java/org/opensaml/storage/testing/StorageServiceTest.java
@@ -17,6 +17,8 @@
 
 package org.opensaml.storage.testing;
 
+import static org.testng.Assert.assertEquals;
+
 import java.io.IOException;
 import java.security.SecureRandom;
 
@@ -41,6 +43,7 @@ import org.testng.annotations.Test;
 /**
  * Test of {@link StorageService} implementations.
  */
+ at SuppressWarnings("javadoc")
 public abstract class StorageServiceTest {
     
     protected SecureRandom random;
@@ -142,7 +145,7 @@ public abstract class StorageServiceTest {
         
         shared.create(context, key, "foo", null);
         
-        shared.updateWithVersion(1, context, key, "bar", null);
+        assertEquals(shared.updateWithVersion(1, context, key, "bar", null), 2);
         
         try {
             shared.updateWithVersion(1, context, key, "baz", null);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list