@Test public void testGetStrongMessage() { final DataType dataType = mock(DataType.class); final String expectedErrorMessage = "*Expected strong message.*"; final DataTypeNameIsBlankErrorMessage errorMessage = new DataTypeNameIsBlankErrorMessage(translationService); when(translationService.format(DataTypeNameIsBlankErrorMessage_StrongMessage)).thenReturn(expectedErrorMessage); final String actualErrorMessage = errorMessage.getStrongMessage(dataType); assertEquals(expectedErrorMessage, actualErrorMessage); }
@Override String getStrongMessage(final DataType dataType) { return translationService.format(DataTypeNameIsBlankErrorMessage_StrongMessage); }
DataTypeNameIsBlankErrorMessage extends ErrorMessage { @Override String getStrongMessage(final DataType dataType) { return translationService.format(DataTypeNameIsBlankErrorMessage_StrongMessage); } }
DataTypeNameIsBlankErrorMessage extends ErrorMessage { @Override String getStrongMessage(final DataType dataType) { return translationService.format(DataTypeNameIsBlankErrorMessage_StrongMessage); } @Inject  DataTypeNameIsBlankErrorMessage(final TranslationService translationService); }
DataTypeNameIsBlankErrorMessage extends ErrorMessage { @Override String getStrongMessage(final DataType dataType) { return translationService.format(DataTypeNameIsBlankErrorMessage_StrongMessage); } @Inject  DataTypeNameIsBlankErrorMessage(final TranslationService translationService);  }
DataTypeNameIsBlankErrorMessage extends ErrorMessage { @Override String getStrongMessage(final DataType dataType) { return translationService.format(DataTypeNameIsBlankErrorMessage_StrongMessage); } @Inject  DataTypeNameIsBlankErrorMessage(final TranslationService translationService);   }