@Ignore @Test public void executeGroovy() { SimpleObject response = controller.executeGroovy("def x = 10"); Assert.assertThat(response, hasEntry("result", (Object) 10)); }
@AppAction(EmrConstants.APP_DEVELOPER) public SimpleObject executeGroovy(@RequestParam("script") String script) { String[] result = GroovyUtil.getService().evaluate(script); return SimpleObject.create("result", result[0], "output", result[1], "stacktrace", result[2]); }
DeveloperUtilsFragmentController { @AppAction(EmrConstants.APP_DEVELOPER) public SimpleObject executeGroovy(@RequestParam("script") String script) { String[] result = GroovyUtil.getService().evaluate(script); return SimpleObject.create("result", result[0], "output", result[1], "stacktrace", result[2]); } }
DeveloperUtilsFragmentController { @AppAction(EmrConstants.APP_DEVELOPER) public SimpleObject executeGroovy(@RequestParam("script") String script) { String[] result = GroovyUtil.getService().evaluate(script); return SimpleObject.create("result", result[0], "output", result[1], "stacktrace", result[2]); }  }
DeveloperUtilsFragmentController { @AppAction(EmrConstants.APP_DEVELOPER) public SimpleObject executeGroovy(@RequestParam("script") String script) { String[] result = GroovyUtil.getService().evaluate(script); return SimpleObject.create("result", result[0], "output", result[1], "stacktrace", result[2]); }  @AppAction(EmrConstants.APP_DEVELOPER) SimpleObject executeGroovy(@RequestParam("script") String script); @AppAction(EmrConstants.APP_DEVELOPER) SimpleObject getReportProfilingEnabled(); @AppAction(EmrConstants.APP_DEVELOPER) void setReportProfilingEnabled(@RequestParam("enabled") boolean enabled); @AppAction(EmrConstants.APP_DEVELOPER) List<SimpleObject> validatePatients(UiUtils ui); }
DeveloperUtilsFragmentController { @AppAction(EmrConstants.APP_DEVELOPER) public SimpleObject executeGroovy(@RequestParam("script") String script) { String[] result = GroovyUtil.getService().evaluate(script); return SimpleObject.create("result", result[0], "output", result[1], "stacktrace", result[2]); }  @AppAction(EmrConstants.APP_DEVELOPER) SimpleObject executeGroovy(@RequestParam("script") String script); @AppAction(EmrConstants.APP_DEVELOPER) SimpleObject getReportProfilingEnabled(); @AppAction(EmrConstants.APP_DEVELOPER) void setReportProfilingEnabled(@RequestParam("enabled") boolean enabled); @AppAction(EmrConstants.APP_DEVELOPER) List<SimpleObject> validatePatients(UiUtils ui);  }