public static < T > T assertEquals ( @ Nullable final T etalon , @ Nullable final T value ) { if ( etalon == null ) { assertNull ( value ) ; } else { if ( ! ( etalon == value || etalon . equals ( value ) ) ) { final AssertionError error = new AssertionError ( "Value is not equal to etalon" ) ; MetaErrorListeners . fireError ( error . getMessage ( ) , error ) ; throw error ; } } return value ; }
Assert that value is equal to some etalon value .