@Test public void shouldThrowIllegalStateExceptionForIllegal() throws Exception { thrown.expect(IllegalStateException.class); thrown.expectMessage("don't do this dude"); Cases.illegal("don't do this dude"); }
public static <R> R illegal(String message) { throw new IllegalStateException(message); }
Cases { public static <R> R illegal(String message) { throw new IllegalStateException(message); } }
Cases { public static <R> R illegal(String message) { throw new IllegalStateException(message); } private  Cases(); }
Cases { public static <R> R illegal(String message) { throw new IllegalStateException(message); } private  Cases(); static R illegal(String message); static R todo(); }
Cases { public static <R> R illegal(String message) { throw new IllegalStateException(message); } private  Cases(); static R illegal(String message); static R todo();  }