@Test public void testConvertMessage_textNull_shouldConvertToEmptyString() { org.faktorips.runtime.Message ipsMessage = new org.faktorips.runtime.Message(null, org.faktorips.runtime.Severity.INFO); Message message = MessageConverter.convert(ipsMessage); assertThat(message.getText(), is(emptyString())); }
public static MessageList convert(org.faktorips.runtime.MessageList ipsMessages) { if (ipsMessages == null) { return new MessageList(); } return StreamUtil.stream(ipsMessages) .map(MessageConverter::convert) .collect(toMessageList()); }
MessageConverter { public static MessageList convert(org.faktorips.runtime.MessageList ipsMessages) { if (ipsMessages == null) { return new MessageList(); } return StreamUtil.stream(ipsMessages) .map(MessageConverter::convert) .collect(toMessageList()); } }
MessageConverter { public static MessageList convert(org.faktorips.runtime.MessageList ipsMessages) { if (ipsMessages == null) { return new MessageList(); } return StreamUtil.stream(ipsMessages) .map(MessageConverter::convert) .collect(toMessageList()); } private  MessageConverter(); }
MessageConverter { public static MessageList convert(org.faktorips.runtime.MessageList ipsMessages) { if (ipsMessages == null) { return new MessageList(); } return StreamUtil.stream(ipsMessages) .map(MessageConverter::convert) .collect(toMessageList()); } private  MessageConverter(); static MessageList convert(org.faktorips.runtime.MessageList ipsMessages); static Message convert(org.faktorips.runtime.Message ipsMessage); }
MessageConverter { public static MessageList convert(org.faktorips.runtime.MessageList ipsMessages) { if (ipsMessages == null) { return new MessageList(); } return StreamUtil.stream(ipsMessages) .map(MessageConverter::convert) .collect(toMessageList()); } private  MessageConverter(); static MessageList convert(org.faktorips.runtime.MessageList ipsMessages); static Message convert(org.faktorips.runtime.Message ipsMessage);  }