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

org.assertj.vavr.api.ShouldNotContainValues Maven / Gradle / Ivy

package org.assertj.vavr.api;

import org.assertj.core.error.BasicErrorMessageFactory;
import org.assertj.core.error.ErrorMessageFactory;

/**
 * Creates an error message indicating that an assertion that verifies a map does not contain values.
 * 
 * @author Michał Chmielarz
 */
public class ShouldNotContainValues extends BasicErrorMessageFactory {

  /**
   * Creates a new {@link ShouldNotContainValues}.
   * @param actual the actual values in the failed assertion.
   * @param values the unexpected values.
   * @return the created {@code ErrorMessageFactory}.
   */
  public static ErrorMessageFactory shouldNotContainValues(Object actual, Object values) {
    return new ShouldNotContainValues(actual, values);
  }

  private ShouldNotContainValues(Object actual, Object values) {
    super("%nExpecting:%n  <%s>%nnot to contain values:%n  <%s>", actual, values);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy