generator.server.springboot.cucumber.rest.SyncHeaderAsserter.mustache Maven / Gradle / Ivy
package {{packageName}}.cucumber.rest;
class SyncHeaderAsserter implements HeaderAsserter {
private final SyncResponseAsserter responseAsserter;
private final HeaderAssertions assertions;
SyncHeaderAsserter(SyncResponseAsserter responseAsserter, String header) {
this.responseAsserter = responseAsserter;
assertions = new HeaderAssertions(header);
}
@Override
public SyncHeaderAsserter containing(String value) {
assertions.containing(value);
return this;
}
@Override
public SyncHeaderAsserter startingWith(String prefix) {
assertions.startingWith(prefix);
return this;
}
@Override
public SyncResponseAsserter and() {
return responseAsserter;
}
}