Remove SOAPException from SOAPBindingTest as RunOnServer cannot load it

Closes #11090
This commit is contained in:
Michal Hajas 2022-04-04 10:59:53 +02:00 committed by Hynek Mlnařík
parent 01e16a569d
commit 4c20388eb7

View file

@ -31,11 +31,8 @@ import org.keycloak.testsuite.util.SamlClientBuilder;
import javax.ws.rs.core.Response;
import javax.xml.soap.MessageFactory;
import javax.xml.soap.SOAPException;
import javax.xml.soap.SOAPMessage;
import java.io.IOException;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.empty;
import static org.hamcrest.Matchers.equalTo;
@ -253,7 +250,7 @@ public class SOAPBindingTest extends AbstractSamlTest {
SOAPMessage soapMessage = messageFactory.createMessage(null, response.getEntity().getContent());
String faultDetail = soapMessage.getSOAPBody().getFault().getDetail().getValue();
assertThat(faultDetail, is(equalTo("Client is not allowed to use ECP profile.")));
} catch (SOAPException | IOException e) {
} catch (Exception e) {
throw new RuntimeException(e);
}
});