visidor/src/test/java/cz/xelfi/quoridor/visidor/ViewerTest.java
author Jaroslav Tulach <jtulach@netbeans.org>
Wed, 16 Sep 2009 22:28:11 +0200
branchdisplay-image
changeset 91 786df32c496b
parent 45 ba37a52fef86
permissions -rw-r--r--
First attempt to show the board as image
     1 package cz.xelfi.quoridor.visidor;
     2 
     3 import cz.xelfi.quoridor.Board;
     4 import java.awt.Image;
     5 import junit.framework.Test;
     6 import junit.framework.TestCase;
     7 import junit.framework.TestSuite;
     8 
     9 /**
    10  * Unit test for simple App.
    11  */
    12 public class ViewerTest extends TestCase {
    13 
    14     public ViewerTest(String testName) {
    15         super(testName);
    16     }
    17 
    18     public static Test suite() {
    19         return new TestSuite(ViewerTest.class);
    20     }
    21 
    22     public void testDrawBoard() {
    23         Image img = Visidor.draw(Board.empty());
    24         assertNotNull("Something has been drawn", img);
    25     }
    26 }