com.smartbear.readyapi.client.assertions.DefaultSoapFaultAssertionBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ready-api-testserver-client Show documentation
Show all versions of ready-api-testserver-client Show documentation
Java client library for creating and executing test recipes against Ready!API TestServer
The newest version!
package com.smartbear.readyapi.client.assertions;
import com.smartbear.readyapi.client.model.SoapFaultAssertion;
public class DefaultSoapFaultAssertionBuilder extends AbstractAssertionBuilder
implements SoapFaultAssertionBuilder {
private final SoapFaultAssertion soapFaultAssertion = new SoapFaultAssertion();
@Override
public DefaultSoapFaultAssertionBuilder named(String name) {
soapFaultAssertion.setName(name);
return this;
}
@Override
public SoapFaultAssertion build() {
soapFaultAssertion.setType(Assertions.SOAP_FAULT_TYPE);
return soapFaultAssertion;
}
public final static SoapFaultAssertion create() {
return new DefaultSoapFaultAssertionBuilder().build();
}
}