Examples of DeckOfCards


Examples of uk.co.iscoding.freecell.cards.DeckOfCards

    }

    @Test
    public void testEqualsAndHashCode() throws Exception {
        FreeCellLayout layout1 = new FreeCellLayout(new DeckOfCards());
        FreeCellLayout layout2 = new FreeCellLayout(new DeckOfCards());

        // These will not be the same because all areas are based on sets, but should be equal
        assertNotSame("Layouts are not the same object", layout1, layout2);
        assertEquals("Hashcodes are equal", layout1.hashCode(), layout2.hashCode());
        assertEquals("Layouts are equal", layout1, layout2);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.