Package juzu.test.protocol.mock

Examples of juzu.test.protocol.mock.MockActionBridge


    MockViewBridge render = client.render();
    assertEquals("render_phase", render.assertStringResponse());

    //
    String url = render.getTitle();
    MockActionBridge action = (MockActionBridge)client.invoke(url);
    //
//      client.
//      client.invoke();
//      assertNull(Registry.get("car"));
View Full Code Here


    MockApplication<?> app = application("plugin.controller.action.noop").init();

    //
    MockClient client = app.client();
    MockViewBridge render = client.render();
    MockActionBridge action = (MockActionBridge)client.invoke(render.assertStringResponse());
    action.assertNoResponse();
  }
View Full Code Here

    MockApplication<?> app = application("plugin.controller.action.redirect").init();

    //
    MockClient client = app.client();
    MockViewBridge render = client.render();
    MockActionBridge action = (MockActionBridge)client.invoke(render.assertStringResponse());
    action.assertRedirect("http://www.julienviet.com");
  }
View Full Code Here

    MockApplication<?> app = application("plugin.controller.action.render").init();

    //
    MockClient client = app.client();
    MockViewBridge render = client.render();
    MockActionBridge action = (MockActionBridge)client.invoke(render.assertStringResponse());
    action.assertRender("render", Collections.singletonMap("arg", "arg_value"));
  }
View Full Code Here

    //
    MockClient client = app.client();
    MockViewBridge render = client.render();
    String result = render.assertStringResponse();
    MockActionBridge action = (MockActionBridge)client.invoke(result);
    action.assertRender("A.done", Collections.<String, String>emptyMap());
  }
View Full Code Here

    MockViewBridge m = (MockViewBridge)client.invoke(url);
    assertEquals(expected, m.assertStringResponse());

    render = client.render(name + "Action");
    url = render.assertStringResponse();
    MockActionBridge action = (MockActionBridge)client.invoke(url);
    MockViewBridge m2 = (MockViewBridge)client.invoke(action.assertUpdate());
    assertEquals(expected, m2.assertStringResponse());
  }
View Full Code Here

TOP

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

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.