[
https://issues.redhat.com/browse/WFLY-13056?page=com.atlassian.jira.plugi...
]
Francesco Marchioni updated WFLY-13056:
---------------------------------------
Description:
When using IBM JDK with SecurityManager option, a programmatic Fault returns a different
Exception than a SOAPFaultException
{code:java}
@Test
public void testHelloError() {
try {
proxy.helloError("Fault for test purpose");
Assert.fail("This should throw a SOAPFaultException");
} catch (SOAPFaultException ex) {
SOAPFault fault = ex.getFault();
Assert.assertEquals("Fault for test purpose",
fault.getFaultString());
//....
}
}
{code}
Exception:
{code:java}
org.junit.ComparisonFailure: expected:<[Fault for test purpose]> but
was:<[WFLYEJB0442: Unexpected Error]>
at org.junit.Assert.assertEquals(Assert.java:115)
at org.junit.Assert.assertEquals(Assert.java:144)
at org.jboss.as.test.integration.ws.basic.BasicTests.testHelloError(BasicTests.java:69)
{code}
Affected Test in the AS Testsuite:
org/jboss/as/test/integration/ws/basic/EJBEndpointTestCase
was:
When using IBM JDK with SecurityManager option, a programmatic Fault returns a different
Exception than a SOAPFaultException
{code:java}
@Test
public void testHelloError() {
try {
proxy.helloError("Fault for test purpose");
Assert.fail("This should throw a SOAPFaultException");
} catch (SOAPFaultException ex) {
SOAPFault fault = ex.getFault();
Assert.assertEquals("Fault for test purpose",
fault.getFaultString());
//....
}
}
{code}
Exception:
{code:java}
org.junit.ComparisonFailure: expected:<[Fault for test purpose]> but
was:<[WFLYEJB0442: Unexpected Error]>
at org.junit.Assert.assertEquals(Assert.java:115)
at org.junit.Assert.assertEquals(Assert.java:144)
at org.jboss.as.test.integration.ws.basic.BasicTests.testHelloError(BasicTests.java:69)
{code}
Affected Test in the AS Testsuite:
org.jboss.as.test.integration.ws.basic.BasicTests.testHelloError
Unexpected Error instead of SOAPFaultException when using IBM JDK and
SecurityManager
-------------------------------------------------------------------------------------
Key: WFLY-13056
URL:
https://issues.redhat.com/browse/WFLY-13056
Project: WildFly
Issue Type: Bug
Components: Security Manager, Test Suite
Affects Versions: 19.0.0.Beta1
Reporter: Francesco Marchioni
Priority: Major
Attachments: surefire-reports.zip
When using IBM JDK with SecurityManager option, a programmatic Fault returns a different
Exception than a SOAPFaultException
{code:java}
@Test
public void testHelloError() {
try {
proxy.helloError("Fault for test purpose");
Assert.fail("This should throw a SOAPFaultException");
} catch (SOAPFaultException ex) {
SOAPFault fault = ex.getFault();
Assert.assertEquals("Fault for test purpose",
fault.getFaultString());
//....
}
}
{code}
Exception:
{code:java}
org.junit.ComparisonFailure: expected:<[Fault for test purpose]> but
was:<[WFLYEJB0442: Unexpected Error]>
at org.junit.Assert.assertEquals(Assert.java:115)
at org.junit.Assert.assertEquals(Assert.java:144)
at org.jboss.as.test.integration.ws.basic.BasicTests.testHelloError(BasicTests.java:69)
{code}
Affected Test in the AS Testsuite:
org/jboss/as/test/integration/ws/basic/EJBEndpointTestCase
--
This message was sent by Atlassian Jira
(v7.13.8#713008)