@Test public void location_shouldSimplifyLocation() { Location location = Context.getLocationService().getLocation(1); SimpleObject result = controller.location(location, ui); Assert.assertThat(result, hasEntry("id", (Object) new Integer(1))); Assert.assertThat(result, hasEntry("name", (Object) "Unknown Location")); }
public SimpleObject location(@RequestParam("id") Location location, UiUtils ui) { return ui.simplifyObject(location); }
SearchFragmentController { public SimpleObject location(@RequestParam("id") Location location, UiUtils ui) { return ui.simplifyObject(location); } }
SearchFragmentController { public SimpleObject location(@RequestParam("id") Location location, UiUtils ui) { return ui.simplifyObject(location); }  }
SearchFragmentController { public SimpleObject location(@RequestParam("id") Location location, UiUtils ui) { return ui.simplifyObject(location); }  SimpleObject patient(@RequestParam("id") Patient patient, UiUtils ui); List<SimpleObject> patients(@RequestParam(value = "q", required = false) String query,
									   @RequestParam(value = "which", required = false, defaultValue = "all") String which,
									   UiUtils ui); SimpleObject location(@RequestParam("id") Location location, UiUtils ui); SimpleObject[] locations(@RequestParam("q") String query, UiUtils ui); SimpleObject person(@RequestParam("id") Person person, UiUtils ui); SimpleObject[] persons(@RequestParam(value = "q", required = false) String query, UiUtils ui); SimpleObject provider(@RequestParam("id") Provider provider, UiUtils ui); SimpleObject[] providers(@RequestParam(value = "q", required = false) String query, UiUtils ui); List<SimpleObject> accounts(@RequestParam(value = "q", required = false) String query,
									   @RequestParam(value = "which", required = false, defaultValue = "all") String which,
									   HttpSession session,
									   UiUtils ui); SimpleObject concept(@RequestParam("id") Concept concept, UiUtils ui); List<SimpleObject> concepts(@RequestParam(value = "q", required = false) String query,
									   @RequestParam(value = "class", required = false) ConceptClass conceptClass,
									   @RequestParam(value = "answerTo", required = false) Concept answerTo,
									   @RequestParam(value = "size", required = false) Integer size,
									   UiUtils ui); }
SearchFragmentController { public SimpleObject location(@RequestParam("id") Location location, UiUtils ui) { return ui.simplifyObject(location); }  SimpleObject patient(@RequestParam("id") Patient patient, UiUtils ui); List<SimpleObject> patients(@RequestParam(value = "q", required = false) String query,
									   @RequestParam(value = "which", required = false, defaultValue = "all") String which,
									   UiUtils ui); SimpleObject location(@RequestParam("id") Location location, UiUtils ui); SimpleObject[] locations(@RequestParam("q") String query, UiUtils ui); SimpleObject person(@RequestParam("id") Person person, UiUtils ui); SimpleObject[] persons(@RequestParam(value = "q", required = false) String query, UiUtils ui); SimpleObject provider(@RequestParam("id") Provider provider, UiUtils ui); SimpleObject[] providers(@RequestParam(value = "q", required = false) String query, UiUtils ui); List<SimpleObject> accounts(@RequestParam(value = "q", required = false) String query,
									   @RequestParam(value = "which", required = false, defaultValue = "all") String which,
									   HttpSession session,
									   UiUtils ui); SimpleObject concept(@RequestParam("id") Concept concept, UiUtils ui); List<SimpleObject> concepts(@RequestParam(value = "q", required = false) String query,
									   @RequestParam(value = "class", required = false) ConceptClass conceptClass,
									   @RequestParam(value = "answerTo", required = false) Concept answerTo,
									   @RequestParam(value = "size", required = false) Integer size,
									   UiUtils ui);  }