11121314151617
public class ColorTest { private Color color; @Before public void setUp() { color = new Color("#FFAA00"); }
272829303132333435
assertThat(setting.isUnderlineEnabled(), nullValue()); } @Test public void getColor() { Color color = setting.getColor(); assertThat(color, notNullValue()); assertThat(color.asHex(), is("#00FFAA")); }