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