You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@causeway.apache.org by da...@apache.org on 2026/04/24 07:49:31 UTC

(causeway) 21/28: CAUSEWAY-3989: [v2] minor refactoring

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

danhaywood pushed a commit to branch CAUSEWAY-3989
in repository https://gitbox.apache.org/repos/asf/causeway.git

commit f644e8858054a6f63d57ec97f4eb16ebe7e83573
Author: Dan Haywood <da...@haywood-associates.co.uk>
AuthorDate: Wed Apr 22 12:14:01 2026 +0100

    CAUSEWAY-3989: [v2] minor refactoring
---
 .../applib/util/schema/CommandDtoUtils_fromYaml_Approval_Test.java   | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/api/applib/src/test/java/org/apache/causeway/applib/util/schema/CommandDtoUtils_fromYaml_Approval_Test.java b/api/applib/src/test/java/org/apache/causeway/applib/util/schema/CommandDtoUtils_fromYaml_Approval_Test.java
index 9f4b95bf18a..f3f8bded4c8 100644
--- a/api/applib/src/test/java/org/apache/causeway/applib/util/schema/CommandDtoUtils_fromYaml_Approval_Test.java
+++ b/api/applib/src/test/java/org/apache/causeway/applib/util/schema/CommandDtoUtils_fromYaml_Approval_Test.java
@@ -97,9 +97,8 @@ void unmarshals_all_date_time_datatypes_from_approved_toYaml_snapshot() throws I
     }
 
     private String readApprovalSnapshot() throws IOException {
-        String path = "/org/apache/causeway/applib/util/schema/"
-                + "CommandDtoUtils_toYaml_Approval_Test.marshals_all_date_time_datatypes.approved.txt";
-        InputStream stream = getClass().getResourceAsStream(path);
+        String path = CommandDtoUtils_toYaml_Approval_Test.class.getSimpleName() + ".marshals_all_date_time_datatypes.approved.txt";
+        InputStream stream = CommandDtoUtils_toYaml_Approval_Test.class.getResourceAsStream(path);
         return StreamUtils.copyToString(stream, java.nio.charset.StandardCharsets.UTF_8);
     }
 }