@Test public void testGetRegularMessage() { final String expectedErrorMessage = "Expected regular message."; final DataTypeNameIsBlankErrorMessage errorMessage = new DataTypeNameIsBlankErrorMessage(translationService); when(translationService.format(DataTypeNameIsBlankErrorMessage_RegularMessage)).thenReturn(expectedErrorMessage); final String actualErrorMessage = errorMessage.getRegularMessage(); assertEquals(expectedErrorMessage, actualErrorMessage); }
@Override String getRegularMessage() { return translationService.format(DataTypeNameIsBlankErrorMessage_RegularMessage); }
DataTypeNameIsBlankErrorMessage extends ErrorMessage { @Override String getRegularMessage() { return translationService.format(DataTypeNameIsBlankErrorMessage_RegularMessage); } }
DataTypeNameIsBlankErrorMessage extends ErrorMessage { @Override String getRegularMessage() { return translationService.format(DataTypeNameIsBlankErrorMessage_RegularMessage); } @Inject  DataTypeNameIsBlankErrorMessage(final TranslationService translationService); }
DataTypeNameIsBlankErrorMessage extends ErrorMessage { @Override String getRegularMessage() { return translationService.format(DataTypeNameIsBlankErrorMessage_RegularMessage); } @Inject  DataTypeNameIsBlankErrorMessage(final TranslationService translationService);  }
DataTypeNameIsBlankErrorMessage extends ErrorMessage { @Override String getRegularMessage() { return translationService.format(DataTypeNameIsBlankErrorMessage_RegularMessage); } @Inject  DataTypeNameIsBlankErrorMessage(final TranslationService translationService);   }