generator.server.springboot.cucumber.rest.SyncElementAsserter.mustache Maven / Gradle / Ivy
package {{packageName}}.cucumber.rest;
import java.util.Collection;
import java.util.List;
import java.util.Map;
class SyncElementAsserter implements ElementAsserter {
private final SyncResponseAsserter responseAsserter;
private final ElementAssertions assertions;
SyncElementAsserter(SyncResponseAsserter responseAsserter, String jsonPath) {
this.responseAsserter = responseAsserter;
assertions = new ElementAssertions(jsonPath);
}
@Override
public SyncElementAsserter withValue(Object value) {
assertions.withValue(value);
return this;
}
@Override
public SyncElementAsserter containingExactly(List