[java-opensaml] 03/05: More hsqldebug testing

Rod Widdowson rdw at steadingsoftware.com
Thu May 12 10:12:59 UTC 2022


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

rdw pushed a commit to branch dev/OSJ-342
in repository java-opensaml.

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

commit 7df829ff0cf125eede7be7755a48cdb7f76ccc1c
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Tue May 10 20:08:27 2022 +0100

    More hsqldebug testing
---
 .../java/org/opensaml/storage/impl/HSQLDBStorageServiceTest.java  | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/opensaml-storage-impl/src/test/java/org/opensaml/storage/impl/HSQLDBStorageServiceTest.java b/opensaml-storage-impl/src/test/java/org/opensaml/storage/impl/HSQLDBStorageServiceTest.java
index 242b96de1..7526711ce 100644
--- a/opensaml-storage-impl/src/test/java/org/opensaml/storage/impl/HSQLDBStorageServiceTest.java
+++ b/opensaml-storage-impl/src/test/java/org/opensaml/storage/impl/HSQLDBStorageServiceTest.java
@@ -72,10 +72,11 @@ public class HSQLDBStorageServiceTest {
     }
 
 
-    @Test(threadPoolSize = 4, invocationCount = 10)
+    @Test(threadPoolSize = 10, invocationCount = 10)
     public void strings() throws IOException {
         threadInit();
         
+        try {
         String context = Long.toString(random.nextLong());
         
         for (int i = 1; i <= 100; i++) {
@@ -110,6 +111,9 @@ public class HSQLDBStorageServiceTest {
             StorageRecord<?> rec = shared.read(context, Integer.toString(i));
             Assert.assertNull(rec);
         }
+        } catch (java.lang.AssertionError e) {
+            System.out.println("FAILURE: " + e);
+        }
     }
 
     /**
@@ -119,7 +123,7 @@ public class HSQLDBStorageServiceTest {
         try {
             dataSource = new BasicDataSource();
             dataSource.setDriverClassName("org.hsqldb.jdbcDriver");
-            dataSource.setUrl("jdbc:hsqldb:mem:JPAStorageService");
+            dataSource.setUrl("jdbc:hsqldb:mem:Test;hsqldb.sqllog=3");
             dataSource.setUsername("SA");
             dataSource.setPassword("");
             Connection dbConn;

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


More information about the commits mailing list