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

com.smartbear.readyapi.client.assertions.DefaultSchemaComplianceAssertionBuilder 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.SchemaComplianceAssertion;

public class DefaultSchemaComplianceAssertionBuilder extends AbstractAssertionBuilder
        implements SchemaComplianceAssertionBuilder {

    private final SchemaComplianceAssertion schemaComplianceAssertion = new SchemaComplianceAssertion();

    @Override
    public DefaultSchemaComplianceAssertionBuilder named(String name) {
        schemaComplianceAssertion.setName(name);
        return this;
    }

    @Override
    public SchemaComplianceAssertion build() {
        schemaComplianceAssertion.setType(Assertions.SCHEMA_COMPLIANCE_TYPE);
        return schemaComplianceAssertion;
    }

    public final static SchemaComplianceAssertion create() {
        return new DefaultSchemaComplianceAssertionBuilder().build();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy