This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new 3dbfee44ef Remove tests for deleted code
3dbfee44ef is described below
commit 3dbfee44ef9831e2bf9f99c19c07b2aa0b58ad13
Author: Mark Thomas <[email protected]>
AuthorDate: Wed Jun 3 07:44:49 2026 +0100
Remove tests for deleted code
---
.../apache/tomcat/util/buf/TestB2CConverter.java | 35 ----------------------
1 file changed, 35 deletions(-)
diff --git a/test/org/apache/tomcat/util/buf/TestB2CConverter.java
b/test/org/apache/tomcat/util/buf/TestB2CConverter.java
index da65b65cdb..8676fce0c0 100644
--- a/test/org/apache/tomcat/util/buf/TestB2CConverter.java
+++ b/test/org/apache/tomcat/util/buf/TestB2CConverter.java
@@ -243,41 +243,6 @@ public class TestB2CConverter {
}
- @Test
- public void testLeftoverChunkMalformed() throws Exception {
- @SuppressWarnings("deprecation")
- B2CConverter conv = new B2CConverter(StandardCharsets.UTF_8, true);
- ByteChunk bc = new ByteChunk();
- CharChunk cc = new CharChunk();
- cc.allocate(4, -1);
-
- bc.append((byte) 0x41);
- bc.append((byte) 0xE2);
- conv.convert(bc, cc, false);
-
- bc.append((byte) 0x42);
- conv.convert(bc, cc, true);
-
- Assert.assertEquals("A\ufffdB", cc.toString());
- }
-
-
- @Test
- public void testLeftoverChunkMalformedAtEnd() throws Exception {
- @SuppressWarnings("deprecation")
- B2CConverter conv = new B2CConverter(StandardCharsets.UTF_8, true);
- ByteChunk bc = new ByteChunk();
- CharChunk cc = new CharChunk();
- cc.allocate(4, -1);
-
- bc.append((byte) 0x41);
- bc.append((byte) 0xE2);
- conv.convert(bc, cc, true);
-
- Assert.assertEquals("A\ufffd", cc.toString());
- }
-
-
@Test
public void testBug54602d() throws Exception {
B2CConverter conv = new B2CConverter(StandardCharsets.UTF_8);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]