@Test public void fail() { try { Assert.fail(); } catch (UnexpectedFailureException e) { assertThat(e, exception(UnexpectedFailureException.class, DEFAULT_HEADER, "unexpected")); } try { Assert.fail(MESSAGE); } catch (UnexpectedFailureException e) { assertThat(e, exception(UnexpectedFailureException.class, MESSAGE)); } try { Assert.fail(MESSAGE, 1); } catch (UnexpectedFailureException e) { assertThat(e, exception(UnexpectedFailureException.class, MESSAGE_1)); } }
public static <T> T fail() { fail(null, (Object[]) null); return null; }
Assert { public static <T> T fail() { fail(null, (Object[]) null); return null; } }
Assert { public static <T> T fail() { fail(null, (Object[]) null); return null; }  }
Assert { public static <T> T fail() { fail(null, (Object[]) null); return null; }  static T assertNotNull(T object); static T assertNotNull(T object, String message, Object...args); static T assertNotNull(T object, ExceptionType exceptionType, String message, Object...args); static T assertNull(T object); static T assertNull(T object, String message, Object...args); static T assertNull(T object, ExceptionType exceptionType, String message, Object...args); static void assertTrue(boolean expression); static void assertTrue(boolean expression, String message, Object...args); static void assertTrue(boolean expression, ExceptionType exceptionType, String message, Object...args); static T unreachableCode(); static T unreachableCode(String message, Object...args); static T unexpectedException(Throwable e); static T unexpectedException(Throwable e, String message, Object...args); static T fail(); static T fail(String message, Object...args); static T unsupportedOperation(); static T unsupportedOperation(String message, Object...args); }
Assert { public static <T> T fail() { fail(null, (Object[]) null); return null; }  static T assertNotNull(T object); static T assertNotNull(T object, String message, Object...args); static T assertNotNull(T object, ExceptionType exceptionType, String message, Object...args); static T assertNull(T object); static T assertNull(T object, String message, Object...args); static T assertNull(T object, ExceptionType exceptionType, String message, Object...args); static void assertTrue(boolean expression); static void assertTrue(boolean expression, String message, Object...args); static void assertTrue(boolean expression, ExceptionType exceptionType, String message, Object...args); static T unreachableCode(); static T unreachableCode(String message, Object...args); static T unexpectedException(Throwable e); static T unexpectedException(Throwable e, String message, Object...args); static T fail(); static T fail(String message, Object...args); static T unsupportedOperation(); static T unsupportedOperation(String message, Object...args);  }