// Path: contrast-finder-api/src/main/java/org/opens/colorfinder/result/ColorCombinaison.java
// public interface ColorCombinaison {
//     
//     
//     /**
//      * 
//      * @return 
//      */
//     Float getGap();
//     
//     /**
//      *
//      * @return
//      */
//     Color getColor();
// 
//     /**
//      *
//      * @param color
//      */
//     void setColor(Color color);
// 
//     /**
//      *
//      * @return
//      */
//     Double getContrast();
//     
//     /**
//      * 
//      * @param distance 
//      */
//     void setDistanceFromInitialColor(Double distance);
//     
//     /**
//      * 
//      * @return 
//      */
//     Double getDistance();
//     
//     /**
//      * 
//      * @param threshold 
//      */
//     void setThreshold(Double threshold);
//     
//     /**
//      * 
//      * @return 
//      */
//     Double getThreshold();
//     
//     /**
//      * 
//      * @return 
//      */
//     boolean isContrastValid();
// 
//     /**
//      *
//      * @return
//      */
//     Color getComparisonColor();
// 
//     /**
//      *
//      * @param color
//      */
//     void setComparisonColor(Color color);
//     
//     /**
//      * 
//      * @param color 
//      */
//     String getHexaColor();
//     
//     /**
//      * 
//      * @return 
//      */
//     String getHslColor();
//     
//     /**
//      * 
//      * @param color 
//      */
//     String getHexaColorComp();
//     
//     /**
//      * 
//      * @return 
//      */
//     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.apache.log4j.Logger;
import org.opens.colorfinder.result.ColorCombinaison;
/*
 * Contrast Finder
 * Copyright (C) 2008-2013  Open-S Company
 *
 * 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: open-s AT open-s DOT com
 */
package org.opens.color.finder.hsv;


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

    private static final Logger LOGGER = Logger.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.
     */
    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: contrast-finder-api/src/main/java/org/opens/colorfinder/result/ColorCombinaison.java
// public interface ColorCombinaison {
//     
//     
//     /**
//      * 
//      * @return 
//      */
//     Float getGap();
//     
//     /**
//      *
//      * @return
//      */
//     Color getColor();
// 
//     /**
//      *
//      * @param color
//      */
//     void setColor(Color color);
// 
//     /**
//      *
//      * @return
//      */
//     Double getContrast();
//     
//     /**
//      * 
//      * @param distance 
//      */
//     void setDistanceFromInitialColor(Double distance);
//     
//     /**
//      * 
//      * @return 
//      */
//     Double getDistance();
//     
//     /**
//      * 
//      * @param threshold 
//      */
//     void setThreshold(Double threshold);
//     
//     /**
//      * 
//      * @return 
//      */
//     Double getThreshold();
//     
//     /**
//      * 
//      * @return 
//      */
//     boolean isContrastValid();
// 
//     /**
//      *
//      * @return
//      */
//     Color getComparisonColor();
// 
//     /**
//      *
//      * @param color
//      */
//     void setComparisonColor(Color color);
//     
//     /**
//      * 
//      * @param color 
//      */
//     String getHexaColor();
//     
//     /**
//      * 
//      * @return 
//      */
//     String getHslColor();
//     
//     /**
//      * 
//      * @param color 
//      */
//     String getHexaColorComp();
//     
//     /**
//      * 
//      * @return 
//      */
//     String getHslColorComp();
// }


// Path: contrast-finder-hsv/src/test/java/org/opens/color/finder/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.apache.log4j.Logger;
import org.opens.colorfinder.result.ColorCombinaison;

/*
 * Contrast Finder
 * Copyright (C) 2008-2013  Open-S Company
 *
 * 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: open-s AT open-s DOT com
 */
package org.opens.color.finder.hsv;


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

    private static final Logger LOGGER = Logger.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.
     */
    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>();