Configuration { public List<Color> getHeatMapColors() { final String colorsString = heatMapColorsProperty.getValue(); final List<Color> colors = new ArrayList<>(); for (final String colorString : colorsString.split(",")) { colors.add(Color.web(colorString)); } return colors; } protected  Configuration(final File configFile, final ApplicationConfig applicationConfig); @Deprecated void saveConfigIgnoringExceptions(); String getEyeTracker(); String getQuitKey(); String getLanguage(); String getCountry(); String getFileDir(); void setFileDir(final String s); Integer getFixationLength(); String getCssFile(); String getWhereIsItDir(); long getQuestionLength(); Boolean isEnableRewardSound(); boolean isLimiterS(); boolean isLimiterT(); int getLimiterTime(); int getLimiterScore(); String getMenuButtonsOrientation(); Boolean isHeatMapDisabled(); Double getHeatMapOpacity(); List<Color> getHeatMapColors(); Boolean isVideoRecordingEnabled(); Boolean isFixationSequenceDisabled(); String getMusicFolder(); String getVideoFolder(); Boolean isGazeMenuEnable(); Boolean isGazeMouseEnable(); BackgroundStyle getBackgroundStyle(); void setBackgroundStyle(final BackgroundStyle newValue); Boolean isBackgroundEnabled(); String getUserName(); String getUserPicture(); void setUserName(final String newName); void setUserPicture(final String newPicture); Boolean isLatestNewsDisplayForced(); static final String DEFAULT_VALUE_WHEREISIT_DIR; static final String DEFAULT_VALUE_HEATMAP_COLORS; static final double DEFAULT_VALUE_MUSIC_VOLUME; static final String DEFAULT_VALUE_MUSIC_FOLDER; static final String DEFAULT_VALUE_BACKGROUND_MUSIC; static final String DEFAULT_VALUE_COLORS_DEFAULT_IMAGE; }
@Test void shouldGetHeatMapColors() { configuration.getHeatMapColorsProperty().set("0000FF,00FF00,FFFF00,FF0000"); List<Color> expected = List.of( Color.web("0000FF"), Color.web("00FF00"), Color.web("FFFF00"), Color.web("FF0000") ); assertEquals(expected, configuration.getHeatMapColors()); }