Message { public String getMessage() { return formatMessage(this.moosage); } Message(final String message, final boolean isThought); String getMessage(); String getThoughts(); void setWordwrap(final String wordwrap); int getWordwrap(); static final byte DEFAULT_WRAP; }
@Test public void testGetMessageWithNull() { System.out.println("getMessage with null message"); Message instance = new Message(null, false); String expResult = ""; String result = instance.getMessage(); Assert.assertEquals(expResult, result); }