// Path: engine/api/src/main/java/org/asqatasun/contrastfinder/result/ColorCombinaison.java
// public interface ColorCombinaison {
// 
// 
//     /**
//      * @return Gap
//      */
//     Float getGap();
// 
//     /**
//      * @return Color object
//      */
//     Color getColor();
// 
//     /**
//      * @param color
//      */
//     void setColor(Color color);
// 
//     /**
//      * @return contrast
//      */
//     Double getContrast();
// 
//     /**
//      * @param distance from initial color
//      */
//     void setDistanceFromInitialColor(Double distance);
// 
//     /**
//      * @return distance
//      */
//     Double getDistance();
// 
//     /**
//      * @param threshold
//      */
//     void setThreshold(Double threshold);
// 
//     /**
//      * @return threshold
//      */
//     Double getThreshold();
// 
//     /**
//      * @return true if is valid contrast
//      */
//     boolean isContrastValid();
// 
//     /**
//      * @return Color object
//      */
//     Color getComparisonColor();
// 
//     /**
//      * @param color
//      */
//     void setComparisonColor(Color color);
// 
//     /**
//      * @return color in hexadecimal format, example: #FFFFFF
//      */
//     String getHexaColor();
// 
//     /**
//      *
//      * @return color in HSL format, example: hsl(0, 0%, 100%)
//      */
//     String getHslColor();
// 
//     /**
//      * @return color in hexadecimal format, example: #FFFFFF
//      */
//     String getHexaColorComp();
// 
//     /**
//      * @return color in HSL format, example: hsl(0, 0%, 100%)
//      */
//     String getHslColorComp();
// }


import java.awt.Color;
import java.util.ArrayList;
import java.util.List;
import static junit.framework.Assert.assertEquals;
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;
/*
 * Contrast Finder
 * Copyright (C) 2008-2019   Contrast-Finder.org
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 * Contact us by mail: asqatasun AT asqatasun DOT org
 */
package org.asqatasun.contrastfinder.hsv;



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

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

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

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

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

    /**
     * Test of findColors method, of class ColorFinderHsv.
     */
    @Test
    public void testFindColorsWithFgAndBg() {
        System.out.println("FindColorsWithFgAndBg");
        Color foregroundColor = new Color(127, 127, 127);
        Color backgroundColor = new Color(128, 128, 128);
        Float coefficientLevel = 4.5f;
        ColorFinderHsv instance = new ColorFinderHsv();
        instance.findColors(foregroundColor, backgroundColor, true, coefficientLevel);
// Path: engine/api/src/main/java/org/asqatasun/contrastfinder/result/ColorCombinaison.java
// public interface ColorCombinaison {
// 
// 
//     /**
//      * @return Gap
//      */
//     Float getGap();
// 
//     /**
//      * @return Color object
//      */
//     Color getColor();
// 
//     /**
//      * @param color
//      */
//     void setColor(Color color);
// 
//     /**
//      * @return contrast
//      */
//     Double getContrast();
// 
//     /**
//      * @param distance from initial color
//      */
//     void setDistanceFromInitialColor(Double distance);
// 
//     /**
//      * @return distance
//      */
//     Double getDistance();
// 
//     /**
//      * @param threshold
//      */
//     void setThreshold(Double threshold);
// 
//     /**
//      * @return threshold
//      */
//     Double getThreshold();
// 
//     /**
//      * @return true if is valid contrast
//      */
//     boolean isContrastValid();
// 
//     /**
//      * @return Color object
//      */
//     Color getComparisonColor();
// 
//     /**
//      * @param color
//      */
//     void setComparisonColor(Color color);
// 
//     /**
//      * @return color in hexadecimal format, example: #FFFFFF
//      */
//     String getHexaColor();
// 
//     /**
//      *
//      * @return color in HSL format, example: hsl(0, 0%, 100%)
//      */
//     String getHslColor();
// 
//     /**
//      * @return color in hexadecimal format, example: #FFFFFF
//      */
//     String getHexaColorComp();
// 
//     /**
//      * @return color in HSL format, example: hsl(0, 0%, 100%)
//      */
//     String getHslColorComp();
// }


// Path: engine/hsv/src/test/java/org/asqatasun/contrastfinder/hsv/ColorFinderHsvTest.java
import java.awt.Color;
import java.util.ArrayList;
import java.util.List;
import static junit.framework.Assert.assertEquals;
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;

/*
 * Contrast Finder
 * Copyright (C) 2008-2019   Contrast-Finder.org
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 * Contact us by mail: asqatasun AT asqatasun DOT org
 */
package org.asqatasun.contrastfinder.hsv;



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

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

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

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

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

    /**
     * Test of findColors method, of class ColorFinderHsv.
     */
    @Test
    public void testFindColorsWithFgAndBg() {
        System.out.println("FindColorsWithFgAndBg");
        Color foregroundColor = new Color(127, 127, 127);
        Color backgroundColor = new Color(128, 128, 128);
        Float coefficientLevel = 4.5f;
        ColorFinderHsv instance = new ColorFinderHsv();
        instance.findColors(foregroundColor, backgroundColor, true, coefficientLevel);
        List<ColorCombinaison> colorCombinaison = new ArrayList<ColorCombinaison>();