pjfanning commented on code in PR #1071:
URL: https://github.com/apache/poi/pull/1071#discussion_r3311725085
##########
poi-scratchpad/src/test/java/org/apache/poi/hmef/TestCompressedRTF.java:
##########
@@ -197,4 +200,43 @@ void testFull() throws Exception {
String decompStr = rtfAttr.getDataString();
assertEquals(expString, decompStr);
}
+
+ @Test
+ void testRejectsDeclaredDecompressedSizeOverLimit() throws Exception {
+ int oldLimit = CompressedRTF.getMaxRecordLength();
+ try {
+ CompressedRTF.setMaxRecordLength(4);
Review Comment:
any test class that manipulates static limits must be annotated with
org.junit.jupiter.api.parallel.Isolated to avoid affecting tests running in
parallel
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]