p2.tictactoe
Class GomokuTest

java.lang.Object
  extended by TestCase
      extended by p2.tictactoe.AbstractBoardGameTest
          extended by p2.tictactoe.GomokuTest

public class GomokuTest
extends AbstractBoardGameTest

Version:
$Id: GomokuTest.java,v 1.3 2005/03/02 14:32:34 oscar Exp $
Author:
$Author: oscar $

Field Summary
 
Fields inherited from class p2.tictactoe.AbstractBoardGameTest
err_, game, out_
 
Constructor Summary
GomokuTest(java.lang.String name)
           
 
Method Summary
static void main(java.lang.String[] args)
           
protected  BoardGame makeGame(Player X, Player O)
          Factory method so subclasses can create other games.
protected  void setUp()
           
 void testBadCol()
           
 void testBadRow()
           
 void testEmptyInput()
           
 void testOKinput()
           
 void testXWinsDiagonal()
           
 
Methods inherited from class p2.tictactoe.AbstractBoardGameTest
assertFails, checkGame, silent, verbose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GomokuTest

public GomokuTest(java.lang.String name)
Method Detail

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