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

generator.server.springboot.cucumber.rest.SyncHeaderAsserter.mustache Maven / Gradle / Ivy

There is a newer version: 1.22.0
Show newest version
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;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy