This is an automated email from the ASF dual-hosted git repository.
veithen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ws-axiom.git
The following commit(s) were added to refs/heads/master by this push:
new 9279b90e8 Fix broken test
9279b90e8 is described below
commit 9279b90e817c4aff6c0a419349df74f698bb3317
Author: Andreas Veithen-Knowles <[email protected]>
AuthorDate: Sat Mar 7 23:01:43 2026 +0000
Fix broken test
---
.../apache/axiom/core/stream/serializer/SerializerTest.java | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git
a/components/core-streams/src/test/java/org/apache/axiom/core/stream/serializer/SerializerTest.java
b/components/core-streams/src/test/java/org/apache/axiom/core/stream/serializer/SerializerTest.java
index 504288fff..0bc39207f 100644
---
a/components/core-streams/src/test/java/org/apache/axiom/core/stream/serializer/SerializerTest.java
+++
b/components/core-streams/src/test/java/org/apache/axiom/core/stream/serializer/SerializerTest.java
@@ -144,7 +144,15 @@ public class SerializerTest {
public void testUnmappableCharacterInName() throws Exception {
Serializer handler = new Serializer(NullOutputStream.INSTANCE,
"iso-8859-15");
handler.startFragment();
- assertThatThrownBy(() -> handler.startElement("", "\u0370", ""))
+ assertThatThrownBy(
+ () -> {
+ // Even though the unmappable character is passed
to startElement, the
+ // exception will be thrown later because the data
to be encoded is
+ // buffered.
+ handler.startElement("", "\u0370", "");
+ handler.attributesCompleted();
+ handler.endElement();
+ })
.isInstanceOf(StreamException.class);
}