@Test public void GIVEN_conditions_WHEN_formatting_requested_THEN_returns_conditions_description() { testee = new ConditionsFormatter(Conditions.CLEAR_NIGHT); assertEquals("Clear Night", testee.format()); }
public String format() { String formatted = "-"; if (conditions != null) { formatted = conditions.getDescription(); } return formatted; }
ConditionsFormatter { public String format() { String formatted = "-"; if (conditions != null) { formatted = conditions.getDescription(); } return formatted; } }
ConditionsFormatter { public String format() { String formatted = "-"; if (conditions != null) { formatted = conditions.getDescription(); } return formatted; } ConditionsFormatter(Conditions conditions); }
ConditionsFormatter { public String format() { String formatted = "-"; if (conditions != null) { formatted = conditions.getDescription(); } return formatted; } ConditionsFormatter(Conditions conditions); String format(); }
ConditionsFormatter { public String format() { String formatted = "-"; if (conditions != null) { formatted = conditions.getDescription(); } return formatted; } ConditionsFormatter(Conditions conditions); String format();  }