Example usage for junit.framework Assert failNotEquals

List of usage examples for junit.framework Assert failNotEquals

Introduction

In this page you can find the example usage for junit.framework Assert failNotEquals.

Prototype

static public void failNotEquals(String message, Object expected, Object actual) 

Source Link

Usage

From source file:com.facebook.TestUtils.java

@TargetApi(16)
public static void assertEquals(final JSONObject expected, final JSONObject actual) {
    // JSONObject.equals does not do an order-independent comparison, so let's roll our own  :(
    if (areEqual(expected, actual)) {
        return;/* w  w w. j a  va2  s  .c  om*/
    }
    Assert.failNotEquals("", expected, actual);
}

From source file:com.facebook.TestUtils.java

@TargetApi(16)
public static void assertEquals(final JSONArray expected, final JSONArray actual) {
    // JSONObject.equals does not do an order-independent comparison, so let's roll our own  :(
    if (areEqual(expected, actual)) {
        return;/* w w  w.j  a  v  a 2s  .  c  o  m*/
    }
    Assert.failNotEquals("", expected, actual);
}