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