All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.smartbear.readyapi.client.assertions.DefaultJdbcStatusAssertionBuilder Maven / Gradle / Ivy

Go to download

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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy