assertEquals("Incorrect value for 1st reverse color", new Color(maxColorInt,maxColorInt,maxColorInt), reverseColors.get(0));
}
@Test
public void jetColorRampTest() throws Exception {
JetColorRamp jetRamp = new JetColorRamp();
jetRamp.setNumClasses(10);
assertEquals(11, jetRamp.getNumClasses());
List<Color> colors = jetRamp.getRamp();
assertEquals("Incorrect size for color ramp", 10, colors.size());
assertEquals("Incorrect value for 1st color", new Color(0,0,255), colors.get(0));
assertEquals("Incorrect value for last color", new Color(255,0,0), colors.get(9));
jetRamp.revert();
List<Color> reverseColors = jetRamp.getRamp();
assertEquals("Incorrect value for last reverse color", new Color(0,0,255), reverseColors.get(9));
assertEquals("Incorrect value for 1st reverse color", new Color(255,0,0), reverseColors.get(0));
}