/FileExtraction/Java_unseen/Asqatasun_Contrast-Finder/engine/hsv/src/test/java/org/asqatasun/contrastfinder/hsv/ColorFinderRgbTest.java
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.asqatasun.contrastfinder.hsv;

import java.awt.Color;
import java.util.ArrayList;
import java.util.List;
import junit.framework.TestCase;
import org.junit.Test;  // Junit 4 anotation @Test

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.asqatasun.contrastfinder.result.ColorCombinaison;

/**
 *
 * @author alingua
 */
public class ColorFinderRgbTest extends TestCase {

    private static final Logger LOGGER = LoggerFactory.getLogger(ColorFinderRgbTest.class);

    public ColorFinderRgbTest(String testName) {
        super(testName);
    }

    @Override
    protected void setUp() throws Exception {
        super.setUp();
    }

    @Override
    protected void tearDown() throws Exception {
        super.tearDown();
    }

    @Test
    public void testFindColorsNearColorOrange() {
        System.out.println("FindColorsNearColor");
        Color foregroundColor = new Color(255, 255, 255);
        Color backgroundColor = new Color(255, 192, 7);
        Float coefficientLevel = 3.0f;
        ColorFinderRgb instance = new ColorFinderRgb();
        List<ColorCombinaison> colorCombinaison = new ArrayList<ColorCombinaison>();
        instance.findColors(foregroundColor, backgroundColor, true, coefficientLevel);
        LOGGER.info("nb SuggestedColors: " + instance.getColorResult().getSuggestedColors().size());
        for (ColorCombinaison combinaisons : instance.getColorResult().getSuggestedColors()) {
            LOGGER.info("Color found " + combinaisons.getHexaColor());
        }
    }

    /**
     * Test of getColorFinderKey method, of class ColorFinderRgb.
     */
    @Test
    public void testGetColorFinderKey() {
        System.out.println("Key");
        ColorFinderHsv instance = new ColorFinderHsv();
        String result = instance.getColorFinderKey();
    }
}
