de.kosi.model.gametest
Class BoardTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--de.kosi.model.gametest.BoardTest
All Implemented Interfaces:
junit.framework.Test

public class BoardTest
extends junit.framework.TestCase

This class is implemented for testing purposes only.

ChangeLog:

 $Log: BoardTest.java,v $
 Revision 1.1.1.1  2001/04/29 18:05:18  jiriki
 Imported sources from zola.

 Revision 1.1  2001/04/26 09:19:12  login
 previously forgot to add a file... ;)

 

Version:
$Revision: 1.1.1.1 $ ($Date: 2001/04/29 18:05:18 $)
Author:
Timo, Niklas, Ole

Field Summary
static int[] DIRECTIONS
          Valid player directions.
 
Constructor Summary
BoardTest(java.lang.String name)
          Create a new board test.
 
Method Summary
 void setUp()
          Set up the test.
 void testCardIntegrity()
          Check if each card appeares only once in a board.
 void testInvalidArguments()
          Check for invalid arguments.
 void testNumberOfCards()
          Check if each player gets 13 cards.
 void testOpener()
          Check if the opener is a valid direction constant.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, name, run, run, runBare, runTest, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DIRECTIONS

public static final int[] DIRECTIONS
Valid player directions.
Constructor Detail

BoardTest

public BoardTest(java.lang.String name)
Create a new board test.
Parameters:
name - Name of the test.
Method Detail

testOpener

public void testOpener()
Check if the opener is a valid direction constant.

testNumberOfCards

public void testNumberOfCards()
Check if each player gets 13 cards.

testCardIntegrity

public void testCardIntegrity()
Check if each card appeares only once in a board.

testInvalidArguments

public void testInvalidArguments()
Check for invalid arguments.

setUp

public void setUp()
Set up the test.
Overrides:
setUp in class junit.framework.TestCase