@Test void markingsColorUsedBackgroundCanBeChanged() { Color color = Colors.BLUEVIOLET.getColorValue(); Configuration configuration = cut.setMarkingsColorUsedBackground(color); assertThat(cut.getMarkingsColorUsedBackground()).isEqualTo(color); assertThat(configuration).isSameAs(cut); }
@Test void markingsColorUsedOutlineCanBeChanged() { Color color = Colors.ALICEBLUE.getColorValue(); Configuration configuration = cut.setMarkingsColorUsedOutline(color); assertThat(cut.getMarkingsColorUsedOutline()).isEqualTo(color); assertThat(configuration).isSameAs(cut); }
@Test void markingsColorReadBackgroundCanBeChanged() { Color color = Colors.ANTIQUEWHITE.getColorValue(); Configuration configuration = cut.setMarkingsColorReadBackground(color); assertThat(cut.getMarkingsColorReadBackground()).isEqualTo(color); assertThat(configuration).isSameAs(cut); }
@Test void markingsColorReadOutlineCanBeChanged() { Color color = Colors.AZURE.getColorValue(); Configuration configuration = cut.setMarkingsColorReadOutline(color); assertThat(cut.getMarkingsColorReadOutline()).isEqualTo(color); assertThat(configuration).isSameAs(cut); }
private String toString(Color color) { for (Colors namedColor : Colors.values()) { if (namedColor.getColorValue().equals(color)) return namedColor.toString().toLowerCase(); } return color.asHex().toLowerCase(); }