assertEquals("1|0,0,0|SOLID", borderStyle.toString());
}
@Test
public void canRecreateInstanceFromAPersistedString() throws Exception {
BorderStyle borderStyle = new BorderStyle("2|100,110,120|DOTTED");
assertEquals(2, borderStyle.getThickness());
assertEquals(100, borderStyle.getColor().getRed());
assertEquals(110, borderStyle.getColor().getGreen());
assertEquals(120, borderStyle.getColor().getBlue());
assertEquals(LineStyleEnum.DOTTED, borderStyle.getLineStyle());
}