Skip to content

Commit ea18c92

Browse files
chore(deps-dev): bump org.bouncycastle:bcprov-jdk18on from 1.82 to 1.84 (#2662)
1 parent 4b2cd7d commit ea18c92

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

integration-tests/jakarta-ee/src/test/java/org/apache/shiro/testing/jakarta/ee/ShiroBeansIT.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
package org.apache.shiro.testing.jakarta.ee;
1515

1616
import java.net.URL;
17+
import java.util.Arrays;
1718

1819
import static org.apache.shiro.ee.util.JakartaTransformer.isJakarta;
1920
import static org.apache.shiro.ee.util.JakartaTransformer.jakartify;
@@ -122,9 +123,13 @@ void checkDontCallWhenNotAuth() {
122123
"anonymous user should get an exception");
123124
webDriver.get(baseURL + "lastException");
124125
String exceptionText = webDriver.findElement(By.tagName("body")).getText();
125-
assertTrue(exceptionText
126+
// Workaround for Payara 5 only: Filter out lines with 'Unsupported class file major version XX'
127+
String filteredExceptionText = Arrays.stream(exceptionText.split("\\n"))
128+
.filter(line -> !line.contains("Unsupported class file major version"))
129+
.reduce("", (a, b) -> a.isEmpty() ? b : a + "\n" + b);
130+
assertTrue(filteredExceptionText
126131
.startsWith(jakartify("WARNING: javax.ejb.EJBException: Attempting to perform a user-only operation")),
127-
String.format("capturing correct warning from the server: %s", exceptionText));
132+
String.format("capturing correct warning from the server: %s", filteredExceptionText));
128133
}
129134

130135
@Test

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
<guice.version>4.2.3</guice.version>
123123
<jaxrs.api.version>2.1.6</jaxrs.api.version>
124124
<htmlunit.version>4.21.0</htmlunit.version>
125-
<bouncycastle.version>1.82</bouncycastle.version>
125+
<bouncycastle.version>1.84</bouncycastle.version>
126126

127127
<!-- Test 3rd-party dependencies: -->
128128
<easymock.version>5.6.0</easymock.version>

0 commit comments

Comments
 (0)