@Test @Category(UnitTest.class) public void testGetColorScale_WithJSON() throws Exception { final String colorScaleJSON = getAspectColorScale(); final ColorScale cs = ColorScaleManager.fromJSON(colorScaleJSON); final ColorScale csExpected = ColorScale.loadFromJSON(colorScaleJSON); Assert.assertEquals(true, cs.equals(csExpected)); }
public static ColorScale fromJSON(String colorScaleJSON) throws ColorScaleException { ColorScale cs = null; if (colorScaleJSON != null) { cs = ColorScale.loadFromJSON(colorScaleJSON); } return cs; }
ColorScaleManager { public static ColorScale fromJSON(String colorScaleJSON) throws ColorScaleException { ColorScale cs = null; if (colorScaleJSON != null) { cs = ColorScale.loadFromJSON(colorScaleJSON); } return cs; } }
ColorScaleManager { public static ColorScale fromJSON(String colorScaleJSON) throws ColorScaleException { ColorScale cs = null; if (colorScaleJSON != null) { cs = ColorScale.loadFromJSON(colorScaleJSON); } return cs; }  }
ColorScaleManager { public static ColorScale fromJSON(String colorScaleJSON) throws ColorScaleException { ColorScale cs = null; if (colorScaleJSON != null) { cs = ColorScale.loadFromJSON(colorScaleJSON); } return cs; }  static ColorScale fromJSON(String colorScaleJSON); static ColorScale fromName(String colorScaleName); static ColorScale[] getColorScaleList(); }
ColorScaleManager { public static ColorScale fromJSON(String colorScaleJSON) throws ColorScaleException { ColorScale cs = null; if (colorScaleJSON != null) { cs = ColorScale.loadFromJSON(colorScaleJSON); } return cs; }  static ColorScale fromJSON(String colorScaleJSON); static ColorScale fromName(String colorScaleName); static ColorScale[] getColorScaleList();  }