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

com.github.opennano.reflectionassert.LeniencyMode Maven / Gradle / Ivy

There is a newer version: 1.0.2
Show newest version
package com.github.opennano.reflectionassert;

/**
 * Leniency modes specify how to compare two values. No mode means strict comparison. Modes can be
 * combined.
 */
public enum LeniencyMode {

  /**
   * Ignore mismatches when the field value in the expected object is the Java default (null, 0,
   * false, etc.)
   */
  IGNORE_DEFAULTS,

  /**
   * Ignore mismatches in dates and other time-based objects, asserting only that values are both
   * null or both not null.
   */
  LENIENT_DATES,

  /** Ignore element order of collections and arrays */
  LENIENT_ORDER,
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy