Class Verifier

java.lang.Object
org.atlanmod.testing.Verifier

public class Verifier
extends java.lang.Object
Entry point for verification methods that improve unit tests. Each method in this class is a static factory for a specific verification object. For instance:

 verifyEqualsOf(String.class)
      .withArguments("a String"
      .andVariants("another String"
      .check()

 
  • Method Summary

    Modifier and Type Method Description
    static <T> EqualsVerifier verifyEqualsOf​(java.lang.Class<T> type)
    Creates a EqualsVerifier for class type.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • verifyEqualsOf

      public static <T> EqualsVerifier verifyEqualsOf​(java.lang.Class<T> type)
      Creates a EqualsVerifier for class type.
      Type Parameters:
      T - the actual class of the class .
      Parameters:
      type - the class whose equals() method will be verified.
      Returns:
      an instance of EqualsVerifier.