p2.tictactoe
Class GomokuTest
java.lang.Object
TestCase
p2.tictactoe.AbstractBoardGameTest
p2.tictactoe.GomokuTest
public class GomokuTest
- extends AbstractBoardGameTest
- Version:
- $Id: GomokuTest.java,v 1.2 2005/02/23 22:11:20 oscar Exp $
- Author:
- $Author: oscar $
Constructor Summary |
GomokuTest(java.lang.String name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GomokuTest
public GomokuTest(java.lang.String name)
main
public static void main(java.lang.String[] args)
setUp
protected void setUp()
throws java.lang.Exception
- Throws:
java.lang.Exception
testOKinput
public void testOKinput()
testBadRow
public void testBadRow()
testEmptyInput
public void testEmptyInput()
testBadCol
public void testBadCol()
testXWinsDiagonal
public void testXWinsDiagonal()
makeGame
protected BoardGame makeGame(Player X,
Player O)
- Description copied from class:
AbstractBoardGameTest
- Factory method so subclasses can create other games.
- Specified by:
makeGame
in class AbstractBoardGameTest