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