@Test public void testGetStrongMessage() { final DataType dataType = mock(DataType.class); final String expectedWarningMessage = "*Expected strong message.*"; final WarningMessage warningMessage = new DataTypeHasFieldsWarningMessage(translationService); when(translationService.format(DataTypeWithFieldsWarningMessage_StrongMessage)).thenReturn(expectedWarningMessage); final String actualWarningMessage = warningMessage.getStrongMessage(dataType); assertEquals(expectedWarningMessage, actualWarningMessage); }
@Override String getStrongMessage(final DataType dataType) { return translationService.format(DataTypeWithFieldsWarningMessage_StrongMessage); }
DataTypeHasFieldsWarningMessage extends WarningMessage { @Override String getStrongMessage(final DataType dataType) { return translationService.format(DataTypeWithFieldsWarningMessage_StrongMessage); } }
DataTypeHasFieldsWarningMessage extends WarningMessage { @Override String getStrongMessage(final DataType dataType) { return translationService.format(DataTypeWithFieldsWarningMessage_StrongMessage); } @Inject  DataTypeHasFieldsWarningMessage(final TranslationService translationService); }
DataTypeHasFieldsWarningMessage extends WarningMessage { @Override String getStrongMessage(final DataType dataType) { return translationService.format(DataTypeWithFieldsWarningMessage_StrongMessage); } @Inject  DataTypeHasFieldsWarningMessage(final TranslationService translationService);  }
DataTypeHasFieldsWarningMessage extends WarningMessage { @Override String getStrongMessage(final DataType dataType) { return translationService.format(DataTypeWithFieldsWarningMessage_StrongMessage); } @Inject  DataTypeHasFieldsWarningMessage(final TranslationService translationService);   }