@@ -0,0 +1,622 @@
+/**%0A *%0A */%0Apackage com.github.apixandru.games.rummikub;%0A%0Aimport org.junit.Test;%0A%0A/**%0A * @author Alexandru-Constantin Bledea%0A * @since Sep 16, 2015%0A */%0A@SuppressWarnings (%7B%22unused%22, %22static-method%22%7D)%0Apublic final class CreateCardTest %7B%0A%0A%09@Test (expected = IllegalArgumentException.class)%0A%09public void testNoColorRank() %7B%0A%09%09new Card(null, Rank.EIGHT);%0A%09%7D%0A%0A%09@Test (expected = IllegalArgumentException.class)%0A%09public void testColorNoRank() %7B%0A%09%09new Card(Color.BLACK, null);%0A%09%7D%0A%0A%09@Test%0A%09public void testColorRank() %7B%0A%09%09new Card(Color.BLACK, Rank.ONE);%0A%09%7D%0A%0A%09@Test%0A%09public void testNoColorNoRank() %7B%0A%09%09new Card(null, null);%0A%09%7D%0A%0A%7D%0A

test create card logic