@Test public void paletteUtils_getLightMutedSwatchDescription() { String description = PaletteUtils.getSwatchDescription(PaletteSwatch.SwatchType.LIGHT_MUTED); assertEquals(description, mockContext.getString(R.string.swatch_light_muted)); }
public static String getSwatchDescription(PaletteSwatch.SwatchType type) { switch (type) { case VIBRANT: return RGBToolApplication.getCtx().getString(R.string.swatch_vibrant); case LIGHT_VIBRANT: return RGBToolApplication.getCtx().getString(R.string.swatch_light_vibrant); case DARK_VIBRANT: return RGBToolApplication.getCtx().getString(R.string.swatch_dark_vibrant); case MUTED: return RGBToolApplication.getCtx().getString(R.string.swatch_muted); case LIGHT_MUTED: return RGBToolApplication.getCtx().getString(R.string.swatch_light_muted); case DARK_MUTED: return RGBToolApplication.getCtx().getString(R.string.swatch_dark_muted); default: return ""; } }
PaletteUtils { public static String getSwatchDescription(PaletteSwatch.SwatchType type) { switch (type) { case VIBRANT: return RGBToolApplication.getCtx().getString(R.string.swatch_vibrant); case LIGHT_VIBRANT: return RGBToolApplication.getCtx().getString(R.string.swatch_light_vibrant); case DARK_VIBRANT: return RGBToolApplication.getCtx().getString(R.string.swatch_dark_vibrant); case MUTED: return RGBToolApplication.getCtx().getString(R.string.swatch_muted); case LIGHT_MUTED: return RGBToolApplication.getCtx().getString(R.string.swatch_light_muted); case DARK_MUTED: return RGBToolApplication.getCtx().getString(R.string.swatch_dark_muted); default: return ""; } } }
PaletteUtils { public static String getSwatchDescription(PaletteSwatch.SwatchType type) { switch (type) { case VIBRANT: return RGBToolApplication.getCtx().getString(R.string.swatch_vibrant); case LIGHT_VIBRANT: return RGBToolApplication.getCtx().getString(R.string.swatch_light_vibrant); case DARK_VIBRANT: return RGBToolApplication.getCtx().getString(R.string.swatch_dark_vibrant); case MUTED: return RGBToolApplication.getCtx().getString(R.string.swatch_muted); case LIGHT_MUTED: return RGBToolApplication.getCtx().getString(R.string.swatch_light_muted); case DARK_MUTED: return RGBToolApplication.getCtx().getString(R.string.swatch_dark_muted); default: return ""; } } private  PaletteUtils(); }
PaletteUtils { public static String getSwatchDescription(PaletteSwatch.SwatchType type) { switch (type) { case VIBRANT: return RGBToolApplication.getCtx().getString(R.string.swatch_vibrant); case LIGHT_VIBRANT: return RGBToolApplication.getCtx().getString(R.string.swatch_light_vibrant); case DARK_VIBRANT: return RGBToolApplication.getCtx().getString(R.string.swatch_dark_vibrant); case MUTED: return RGBToolApplication.getCtx().getString(R.string.swatch_muted); case LIGHT_MUTED: return RGBToolApplication.getCtx().getString(R.string.swatch_light_muted); case DARK_MUTED: return RGBToolApplication.getCtx().getString(R.string.swatch_dark_muted); default: return ""; } } private  PaletteUtils(); static String getSwatchDescription(PaletteSwatch.SwatchType type); static String getPaletteMessage(String filename, ArrayList<PaletteSwatch> swatches); }
PaletteUtils { public static String getSwatchDescription(PaletteSwatch.SwatchType type) { switch (type) { case VIBRANT: return RGBToolApplication.getCtx().getString(R.string.swatch_vibrant); case LIGHT_VIBRANT: return RGBToolApplication.getCtx().getString(R.string.swatch_light_vibrant); case DARK_VIBRANT: return RGBToolApplication.getCtx().getString(R.string.swatch_dark_vibrant); case MUTED: return RGBToolApplication.getCtx().getString(R.string.swatch_muted); case LIGHT_MUTED: return RGBToolApplication.getCtx().getString(R.string.swatch_light_muted); case DARK_MUTED: return RGBToolApplication.getCtx().getString(R.string.swatch_dark_muted); default: return ""; } } private  PaletteUtils(); static String getSwatchDescription(PaletteSwatch.SwatchType type); static String getPaletteMessage(String filename, ArrayList<PaletteSwatch> swatches);  }