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

reschke pushed a commit to branch OAK-10304
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git


The following commit(s) were added to refs/heads/OAK-10304 by this push:
     new b8a0787828 OAK-10304: add the log check
b8a0787828 is described below

commit b8a078782821397167dc496f80fc2a747a312499
Author: Julian Reschke <[email protected]>
AuthorDate: Wed Jun 21 15:42:57 2023 +0100

    OAK-10304: add the log check
---
 .../oak/plugins/name/ReadWriteNamespaceRegistryTest.java           | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git 
a/oak-it/src/test/java/org/apache/jackrabbit/oak/plugins/name/ReadWriteNamespaceRegistryTest.java
 
b/oak-it/src/test/java/org/apache/jackrabbit/oak/plugins/name/ReadWriteNamespaceRegistryTest.java
index 26b208df75..6abc3a8223 100644
--- 
a/oak-it/src/test/java/org/apache/jackrabbit/oak/plugins/name/ReadWriteNamespaceRegistryTest.java
+++ 
b/oak-it/src/test/java/org/apache/jackrabbit/oak/plugins/name/ReadWriteNamespaceRegistryTest.java
@@ -96,10 +96,11 @@ public class ReadWriteNamespaceRegistryTest extends 
OakBaseTest {
         LogCustomizer customLogs = 
LogCustomizer.forLogger("org.apache.jackrabbit.oak.plugins.name.ReadWriteNamespaceRegistry").enable(Level.ERROR).create();
         try {
             customLogs.starting();
-            r.registerNamespace("xml", "example.com");
-            List<String> myLogs = customLogs.getLogs();
-            assertEquals("", myLogs.toString());
+            r.registerNamespace("foo", "example.com");
             r.unregisterNamespace("foo");
+            List<String> myLogs = customLogs.getLogs();
+            assertEquals(1, myLogs.size());
+            assertTrue(myLogs.get(0).contains("Registering invalid namespace 
name 'example.com' for prefix 'foo', please see"));
         }
         finally {
             customLogs.finished();

Reply via email to