@Test public void GIVEN_null_string_WHEN_formatting_requested_THEN_returns_blank_value() { testee = new StringFormatter(null); assertEquals("-----", testee.format()); }
public String format() { String formatted = "-----"; if (string != null) { formatted = string; } return formatted; }
StringFormatter { public String format() { String formatted = "-----"; if (string != null) { formatted = string; } return formatted; } }
StringFormatter { public String format() { String formatted = "-----"; if (string != null) { formatted = string; } return formatted; } StringFormatter(String string); }
StringFormatter { public String format() { String formatted = "-----"; if (string != null) { formatted = string; } return formatted; } StringFormatter(String string); String format(); }
StringFormatter { public String format() { String formatted = "-----"; if (string != null) { formatted = string; } return formatted; } StringFormatter(String string); String format();  }