@Test public void testSetsColorOnCharmPresentationProperties() throws Exception { String xml = "<presentation>" //$NON-NLS-1$ + "\t<color red=\"139\" green=\"123\" blue=\"255\" />" //$NON-NLS-1$ + "</presentation>"; //$NON-NLS-1$ IPresentationProperties presentationProperties = parseXml(xml); assertEquals( new Color(139, 123, 255), presentationProperties.getCharmPresentationProperties().getColor()); }
@Test public void testDefaultsToWhiteIfNoColorIsSet() throws Exception { String xml = "<presentation/>"; // $NON-NLS-1$ IPresentationProperties presentationProperties = parseXml(xml); assertEquals(Color.WHITE, presentationProperties.getCharmPresentationProperties().getColor()); }