Package juzu.test.protocol.mock

Examples of juzu.test.protocol.mock.MockClient


  @Test
  public void testConstructorChecked() throws Exception {
    MockApplication<?> app = application("plugin.controller.constructor.throwable.checked").init();

    //
    MockClient client = app.client();
    MockViewBridge render = client.render();
    render.assertFailure(AuthenticationException.class);
  }
View Full Code Here


  @Test
  public void testConstructorRuntime() throws Exception {
    MockApplication<?> app = application("plugin.controller.constructor.throwable.runtime").init();

    //
    MockClient client = app.client();
    MockViewBridge render = client.render();
    render.assertFailure(ConcurrentModificationException.class);
  }
View Full Code Here

  @Test
  public void testConstructorError() throws Exception {
    MockApplication<?> app = application("plugin.controller.constructor.throwable.error").init();

    //
    MockClient client = app.client();
    MockViewBridge render = client.render();
    render.assertFailure(UnknownError.class);
  }
View Full Code Here

  @Test
  public void testRenderChecked() throws Exception {
    MockApplication<?> app = application("plugin.controller.view.throwable.checked").init();

    //
    MockClient client = app.client();
    MockViewBridge render = client.render();
    render.assertFailure(AuthenticationException.class);
  }
View Full Code Here

  @Test
  public void testRenderRuntime() throws Exception {
    MockApplication<?> app = application("plugin.controller.view.throwable.runtime").init();

    //
    MockClient client = app.client();
    MockViewBridge render = client.render();
    render.assertFailure(ConcurrentModificationException.class);
  }
View Full Code Here

  @Test
  public void testRenderError() throws Exception {
    MockApplication<?> app = application("plugin.controller.view.throwable.error").init();

    //
    MockClient client = app.client();
    MockViewBridge render = client.render();
    render.assertFailure(UnknownError.class);
  }
View Full Code Here

  @Test
  public void testActionChecked() throws Exception {
    MockApplication<?> app = application("plugin.controller.action.throwable.checked").init();

    //
    MockClient client = app.client();
    MockViewBridge render = client.render();
    MockRequestBridge request = client.invoke(render.assertStringResponse());
    request.assertFailure(AuthenticationException.class);
  }
View Full Code Here

  @Test
  public void testActionRuntime() throws Exception {
    MockApplication<?> app = application("plugin.controller.action.throwable.runtime").init();

    //
    MockClient client = app.client();
    MockViewBridge render = client.render();
    MockRequestBridge request = client.invoke(render.assertStringResponse());
    request.assertFailure(ConcurrentModificationException.class);
  }
View Full Code Here

  @Test
  public void testActionError() throws Exception {
    MockApplication<?> app = application("plugin.controller.action.throwable.error").init();

    //
    MockClient client = app.client();
    MockViewBridge render = client.render();
    MockRequestBridge request = client.invoke(render.assertStringResponse());
    request.assertFailure(UnknownError.class);
  }
View Full Code Here

  @Test
  public void testResourceChecked() throws Exception {
    MockApplication<?> app = application("plugin.controller.resource.throwable.checked").init();

    //
    MockClient client = app.client();
    MockViewBridge render = client.render();
    MockRequestBridge request = client.invoke(render.assertStringResponse());
    request.assertFailure(AuthenticationException.class);
  }
View Full Code Here

TOP

Related Classes of juzu.test.protocol.mock.MockClient

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.