Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

antichess
Class TestGameController  view TestGameController download TestGameController.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byantichess.TestGameController
All Implemented Interfaces:
junit.framework.Test

public class TestGameController
extends junit.framework.TestCase


Field Summary
(package private)  java.lang.String testfilesDir
           
(package private)  java.lang.String testfilesFile
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
TestGameController(java.lang.String name)
           
 
Method Summary
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 ";"
private  java.util.List linesToSortedList(java.lang.String s)
          Converts a string of line into a List of sorted strings
static junit.framework.Test suite()
           
 void testGameControllerReadWrite()
          Tests reading from file and generating string representation of board Reads a "test/tests" to get a list of filenames to use
 void testLoadFile(java.lang.String filename)
          Reads a file into gameController, and then get the string output from gameController, and compare results
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

testfilesFile

java.lang.String testfilesFile

testfilesDir

java.lang.String testfilesDir
Constructor Detail

TestGameController

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

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()