antichess
Class TestGameController

java.lang.Object
junit.framework.Assert
junit.framework.TestCase
antichess.TestGameController
- All Implemented Interfaces:
- junit.framework.Test
- public class TestGameController
- extends junit.framework.TestCase
| Fields inherited from class junit.framework.TestCase |
|
| Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString |
| Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
testfilesFile
java.lang.String testfilesFile
testfilesDir
java.lang.String testfilesDir
TestGameController
public TestGameController(java.lang.String name)
testLoadFile
public void testLoadFile(java.lang.String filename)
- Reads a file into gameController, and then get the
string output from gameController, and compare results
testGameControllerReadWrite
public void testGameControllerReadWrite()
- Tests reading from file and generating string representation of board
Reads a "test/tests" to get a list of filenames to use
linesToSortedList
private java.util.List linesToSortedList(java.lang.String s)
- Converts a string of line into a List of sorted strings
fileRead
private java.lang.String fileRead(java.lang.String filename,
boolean readAll)
- This function only returns all text before the first ";"
and sets comments to contain all text after the first ";"
suite
public static junit.framework.Test suite()