You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@causeway.apache.org by ah...@apache.org on 2026/08/07 09:50:46 UTC
(causeway) branch main updated: CAUSEWAY-4044: adding test-case
This is an automated email from the ASF dual-hosted git repository.
andi-huber pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/causeway.git
The following commit(s) were added to refs/heads/main by this push:
new 094c5bd42a6 CAUSEWAY-4044: adding test-case
094c5bd42a6 is described below
commit 094c5bd42a69a448707ad18a9abc9fa2bfcc9a1a
Author: andi-huber <ah...@apache.org>
AuthorDate: Fri Aug 7 11:50:41 2026 +0200
CAUSEWAY-4044: adding test-case
---
.../java/org/apache/causeway/commons/net/DataUriTest.java | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/commons/src/test/java/org/apache/causeway/commons/net/DataUriTest.java b/commons/src/test/java/org/apache/causeway/commons/net/DataUriTest.java
index 0b3bc705f85..5dc06a12958 100644
--- a/commons/src/test/java/org/apache/causeway/commons/net/DataUriTest.java
+++ b/commons/src/test/java/org/apache/causeway/commons/net/DataUriTest.java
@@ -18,15 +18,17 @@
*/
package org.apache.causeway.commons.net;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+
import java.nio.charset.StandardCharsets;
import java.util.Base64;
import java.util.List;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.EnumSource;
-import static org.junit.jupiter.api.Assertions.assertEquals;
-
import lombok.RequiredArgsConstructor;
class DataUriTest {
@@ -58,4 +60,10 @@ void rundtrip(final Scenario scenario) {
assertEquals(ref, parsed); // check equality relation
}
+ @Test
+ void mime() {
+ Assertions.assertEquals(DataUri.ImageType.SVG.mediaType(), "image/svg+xml");
+ Assertions.assertEquals(DataUri.ImageType.PNG.mediaType(), "image/png");
+ }
+
}