@Test public void testChecked() throws Exception { MockApplication<?> app = application("plugin.template.throwable.checked").init(); // MockClient client = app.client(); MockViewBridge render = client.render(); TemplateExecutionException te = render.assertFailure(TemplateExecutionException.class); assertInstanceOf(AuthenticationException.class, te.getCause()); }
@Test public void testError() throws Exception { MockApplication<?> app = application("plugin.template.throwable.error").init(); // MockClient client = app.client(); MockViewBridge render = client.render(); render.assertFailure(UnknownError.class); } }
@Test public void testError() throws Exception { MockApplication<?> app = application("plugin.template.throwable.error").init(); // MockClient client = app.client(); MockViewBridge render = client.render(); render.assertFailure(UnknownError.class); } }
@Test public void testChecked() throws Exception { MockApplication<?> app = application("plugin.template.throwable.checked").init(); // MockClient client = app.client(); MockViewBridge render = client.render(); TemplateExecutionException te = render.assertFailure(TemplateExecutionException.class); assertInstanceOf(AuthenticationException.class, te.getCause()); }
@Test public void testRuntime() throws Exception { MockApplication<?> app = application("plugin.template.throwable.runtime").init(); // MockClient client = app.client(); MockViewBridge render = client.render(); TemplateExecutionException te = render.assertFailure(TemplateExecutionException.class); assertInstanceOf(ConcurrentModificationException.class, te.getCause()); }
@Test public void testRuntime() throws Exception { MockApplication<?> app = application("plugin.template.throwable.runtime").init(); // MockClient client = app.client(); MockViewBridge render = client.render(); TemplateExecutionException te = render.assertFailure(TemplateExecutionException.class); assertInstanceOf(ConcurrentModificationException.class, te.getCause()); }