@Test public void testThrowable() { final Throwable cause = new IllegalStateException(); thrown.expect(CreationException.class); thrown.expectCause(is(cause)); Guice.createInjector(new AbstractModule() { @Override protected void configure() { DelayedError.create(binder(), cause); } }); }
public static DelayedError create(Binder binder, String message, Object... args) { return create(binder, new Message(PrettyTypes.format(message, args))); }
DelayedError { public static DelayedError create(Binder binder, String message, Object... args) { return create(binder, new Message(PrettyTypes.format(message, args))); } }
DelayedError { public static DelayedError create(Binder binder, String message, Object... args) { return create(binder, new Message(PrettyTypes.format(message, args))); } private  DelayedError(Throwable error); }
DelayedError { public static DelayedError create(Binder binder, String message, Object... args) { return create(binder, new Message(PrettyTypes.format(message, args))); } private  DelayedError(Throwable error); static DelayedError create(Binder binder, String message, Object... args); static DelayedError create(Binder binder, Throwable t); static DelayedError create(Binder binder, Message message); void cancel(); }
DelayedError { public static DelayedError create(Binder binder, String message, Object... args) { return create(binder, new Message(PrettyTypes.format(message, args))); } private  DelayedError(Throwable error); static DelayedError create(Binder binder, String message, Object... args); static DelayedError create(Binder binder, Throwable t); static DelayedError create(Binder binder, Message message); void cancel();  }