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

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

There is a newer version: 1.22.0
Show newest version
package {{packageName}}.cucumber.rest;

import static org.assertj.core.api.Assertions.*;

import java.util.Collection;
import java.util.List;
import java.util.Map;

public interface ElementAsserter {
  ElementAsserter withValue(Object value);

   ElementAsserter containingExactly(List> responses);

   ElementAsserter containing(Map response);

  ElementAsserter withElementsCount(int count);

  ElementAsserter withMoreThanElementsCount(int count);

   ElementAsserter containing(List> responses);

  ElementAsserter withValues(Collection values);

  T and();

  default ElementAsserter withValues(String... values) {
    assertThat(values).as("Can't check object against null values").isNotNull();

    return withValues(List.of(values));
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy