Java Assert Equal assertEquals(Object val1, Object val2)

Here you can find the source of assertEquals(Object val1, Object val2)

Description

assert Equals

License

LGPL

Declaration

public static void assertEquals(Object val1, Object val2) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

public class Main {
    public static void assertEquals(String message, Object val1, Object val2) {
        if (message != null) {
            assert val1.equals(val2) : message;
        } else {/*from   w  w  w .j  a v  a  2 s  . c om*/
            assert val1.equals(val2);
        }
    }

    public static void assertEquals(Object val1, Object val2) {
        assertEquals(null, val1, val2);
    }
}

Related

  1. assertEquals(Object expected, Object actual)
  2. assertEquals(Object expected, Object actual)
  3. assertEquals(Object o1, Object o2)
  4. assertEquals(Object obj1, Object obj2, String errMsg)
  5. assertEquals(Object obj1, Object obj2, String message)
  6. assertEquals(String expected, String actual)
  7. assertEquals(String expected, String current)
  8. assertEquals(String message, Object expected, Object actual)
  9. assertEquals(T expected, T actual)