com.smartbear.readyapi.client.assertions.DefaultJdbcStatusAssertionBuilder 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.JdbcStatusAssertion;
public class DefaultJdbcStatusAssertionBuilder extends AbstractAssertionBuilder
implements JdbcStatusAssertionBuilder {
private final JdbcStatusAssertion statusAssertion = new JdbcStatusAssertion();
@Override
public DefaultJdbcStatusAssertionBuilder named(String name) {
statusAssertion.setName(name);
return this;
}
@Override
public JdbcStatusAssertion build() {
statusAssertion.setType(Assertions.JDBC_STATUS_TYPE);
return statusAssertion;
}
public final static JdbcStatusAssertion create() {
JdbcStatusAssertion assertion = new JdbcStatusAssertion();
assertion.setType(Assertions.JDBC_STATUS_TYPE);
return assertion;
}
}