public MockViewBridge render(String methodId) { MethodHandle handle = null; ControllerHandler handler = null; if (methodId != null) { handler = controllerPlugin.getDescriptor().getMethodById(methodId); } else { handler = controllerPlugin.getDescriptor().getResolver().resolve(Phase.VIEW, Collections.<String>emptySet()); } if (handler != null) { handle = handler.getHandle(); } MockViewBridge render = new MockViewBridge(application.getLifeCycle(), this, handle, new HashMap<String, String[]>()); invoke(render); return render; }
public MockViewBridge render(String methodId) { MethodHandle handle = null; ControllerHandler handler = null; if (methodId != null) { handler = controllerPlugin.getDescriptor().getMethodById(methodId); } else { handler = controllerPlugin.getDescriptor().getResolver().resolve(Phase.VIEW, Collections.<String>emptySet()); } if (handler != null) { handle = handler.getHandle(); } MockViewBridge render = new MockViewBridge(application.getLifeCycle(), this, handle, new HashMap<String, String[]>()); invoke(render); return render; }
request = new MockActionBridge(application.getLifeCycle(), this, handler.getHandle(), parameters); } else if (handler.getPhase() == Phase.VIEW) { request = new MockViewBridge(application.getLifeCycle(), this, handler.getHandle(), parameters); } else if (handler.getPhase() == Phase.RESOURCE) { request = new MockResourceBridge(application.getLifeCycle(), this, handler.getHandle(), parameters); request = new MockViewBridge(application.getLifeCycle(), this, null, parameters);
request = new MockActionBridge(application.getLifeCycle(), this, handler.getHandle(), parameters); } else if (handler.getPhase() == Phase.VIEW) { request = new MockViewBridge(application.getLifeCycle(), this, handler.getHandle(), parameters); } else if (handler.getPhase() == Phase.RESOURCE) { request = new MockResourceBridge(application.getLifeCycle(), this, handler.getHandle(), parameters); request = new MockViewBridge(application.getLifeCycle(), this, null, parameters);