/*
 * Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 *
 * This code is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License version 2 only, as
 * published by the Free Software Foundation.  Oracle designates this
 * particular file as subject to the "Classpath" exception as provided
 * by Oracle in the LICENSE file that accompanied this code.
 *
 * This code 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 General Public License
 * version 2 for more details (a copy is included in the LICENSE file that
 * accompanied this code).
 *
 * You should have received a copy of the GNU General Public License version
 * 2 along with this work; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 *
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 * or visit www.oracle.com if you need additional information or have any
 * questions.
 */

package test.com.sun.javafx.scene.layout.region;

import org.junit.Test;

/**
 * Tests for the BackgroundImage class
 */
public class BackgroundImageTest {

    @Test public void dummy() { }

//    @Test public void valuesAreSetCorrectly() {
//        Image image = new Image("http://dummyUrl", true);
//        BackgroundImage obj = new BackgroundImage(image, Repeat.SPACE, Repeat.ROUND,
//                1, 2, 3, 4, 5, 6, true, false, true, false, true, false);
//
//        assertEquals(image, obj.getImage());
//        assertEquals(Repeat.SPACE, obj.getRepeatX());
//        assertEquals(Repeat.ROUND, obj.getRepeatY());
//        assertEquals(1, obj.getTop(), 0);
//        assertEquals(2, obj.getRight(), 0);
//        assertEquals(3, obj.getBottom(), 0);
//        assertEquals(4, obj.getLeft(), 0);
//        assertEquals(5, obj.getWidth(), 0);
//        assertEquals(6, obj.getHeight(), 0);
//        assertTrue(obj.isProportionalHPos());
//        assertFalse(obj.isProportionalVPos());
//        assertTrue(obj.isProportionalWidth());
//        assertFalse(obj.isProportionalHeight());
//        assertTrue(obj.isContain());
//        assertFalse(obj.isCover());
//    }
//
//    @Test public void valuesAreSetCorrectly2() {
//        Image image = new Image("http://dummyUrl", true);
//        BackgroundImage obj = new BackgroundImage(image, Repeat.SPACE, Repeat.ROUND,
//                1, 2, 3, 4, 5, 6, false, true, false, true, false, true);
//
//        assertEquals(image, obj.getImage());
//        assertEquals(Repeat.SPACE, obj.getRepeatX());
//        assertEquals(Repeat.ROUND, obj.getRepeatY());
//        assertEquals(1, obj.getTop(), 0);
//        assertEquals(2, obj.getRight(), 0);
//        assertEquals(3, obj.getBottom(), 0);
//        assertEquals(4, obj.getLeft(), 0);
//        assertEquals(5, obj.getWidth(), 0);
//        assertEquals(6, obj.getHeight(), 0);
//        assertFalse(obj.isProportionalHPos());
//        assertTrue(obj.isProportionalVPos());
//        assertFalse(obj.isProportionalWidth());
//        assertTrue(obj.isProportionalHeight());
//        assertFalse(obj.isContain());
//        assertTrue(obj.isCover());
//    }
//
//    @Test public void hashingReturnsSameObject() {
//        Map map = new HashMap();
//        Image image = new Image("http://dummyUrl", true);
//        BackgroundImage obj = new BackgroundImage(image, Repeat.SPACE, Repeat.ROUND,
//                1, 2, 3, 4, 5, 6, true, false, true, false, true, false);
//        map.put(obj, "YES");
//        assertEquals("YES", map.get(obj));
//
//        BackgroundImage equivalent = new BackgroundImage(image, Repeat.SPACE, Repeat.ROUND,
//                1, 2, 3, 4, 5, 6, true, false, true, false, true, false);
//        assertEquals("YES", map.get(equivalent));
//
//        BackgroundImage different = new BackgroundImage(image, Repeat.SPACE, Repeat.ROUND,
//                1, 2, 3, 4, 5, 6, false, true, false, true, false, true);
//        assertFalse(map.containsKey(different));
//    }
//
//    @Test public void equality() {
//        Image image = new Image("http://dummyUrl", true);
//        BackgroundImage obj = new BackgroundImage(image, Repeat.SPACE, Repeat.ROUND,
//                1, 2, 3, 4, 5, 6, true, false, true, false, true, false);
//
//        BackgroundImage equivalent = new BackgroundImage(image, Repeat.SPACE, Repeat.ROUND,
//                1, 2, 3, 4, 5, 6, true, false, true, false, true, false);
//
//        assertEquals(obj, equivalent);
//
//        BackgroundImage different = new BackgroundImage(image, Repeat.SPACE, Repeat.ROUND,
//                1, 2, 3, 4, 5, 6, false, true, false, true, false, true);
//        assertFalse(obj.equals(different));
//    }
}
