@Test @Parameters({",Howdy stranger!", "Test, Hello Test"}) public void sayHello(String input, String output) { assertThat(service.sayHello(input), equalTo(output)); }
public String sayHello(String input) { MessageSource messageSource = getApplication().getMessageSource(); if (isBlank(input)) { return messageSource.getMessage("greeting.default"); } else { return messageSource.getMessage("greeting.parameterized", asList(input)); } }
SampleService extends AbstractGriffonService { public String sayHello(String input) { MessageSource messageSource = getApplication().getMessageSource(); if (isBlank(input)) { return messageSource.getMessage("greeting.default"); } else { return messageSource.getMessage("greeting.parameterized", asList(input)); } } }
SampleService extends AbstractGriffonService { public String sayHello(String input) { MessageSource messageSource = getApplication().getMessageSource(); if (isBlank(input)) { return messageSource.getMessage("greeting.default"); } else { return messageSource.getMessage("greeting.parameterized", asList(input)); } }  }
SampleService extends AbstractGriffonService { public String sayHello(String input) { MessageSource messageSource = getApplication().getMessageSource(); if (isBlank(input)) { return messageSource.getMessage("greeting.default"); } else { return messageSource.getMessage("greeting.parameterized", asList(input)); } }  String sayHello(String input); }
SampleService extends AbstractGriffonService { public String sayHello(String input) { MessageSource messageSource = getApplication().getMessageSource(); if (isBlank(input)) { return messageSource.getMessage("greeting.default"); } else { return messageSource.getMessage("greeting.parameterized", asList(input)); } }  String sayHello(String input);  }