Example usage for android.test AssertionFailedError AssertionFailedError

List of usage examples for android.test AssertionFailedError AssertionFailedError

Introduction

In this page you can find the example usage for android.test AssertionFailedError AssertionFailedError.

Prototype

public AssertionFailedError() 

Source Link

Document

It is more typical to call #AssertionFailedError(String) .

Usage

From source file:org.droidparts.test.testcase.serialize.JSONTestCase.java

public void testCollectionsFail() throws Exception {
    try {//ww  w . j a v a 2 s  .  c o  m
        JSONSerializer<Collections> ser = makeSerializer(Collections.class);
        ser.deserialize(getJSONObject(R.raw.albums_partial_json));
    } catch (Exception e) {
        assertTrue(e instanceof SerializerException);
        return;
    }
    throw new AssertionFailedError();
}