EmrVelocityFunctions { public String getGlobalProperty(String name) { return Context.getAdministrationService().getGlobalProperty(name); } EmrVelocityFunctions(FormEntrySession session); boolean hasHivUniquePatientNumber(); Concept getConcept(String conceptIdentifier); String getGlobalProperty(String name); List<Obs> allObs(String conceptIdentifier); Obs latestObs(String conceptIdentifier); Obs earliestObs(String conceptIdentifier); Obs obsToday(String conceptIdentifier);  }
@Test public void getGlobalProperty_shouldReturnPropertyValue() { GlobalProperty gp = Context.getAdministrationService().getGlobalPropertyObject(EmrConstants.GP_DEFAULT_LOCATION); Assert.assertThat(functionsForSession1.getGlobalProperty("kenyaemr.defaultLocation"), is(gp.getValue())); Assert.assertThat(functionsForSession1.getGlobalProperty("xxx.xxx"), is(nullValue())); }