jfreerails.network
Class AbstractFreerailsServerTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by jfreerails.network.AbstractFreerailsServerTestCase
All Implemented Interfaces:
junit.framework.Test

public abstract class AbstractFreerailsServerTestCase
extends junit.framework.TestCase

Test cases that use FreerailsGameServer and connect over the Internet should extend this class .

Author:
Luke

Field Summary
private  InetConnectionAccepter connectionAccepter
           
private  java.lang.String ipAddress
           
(package private)  FreerailsGameServer server
           
 
Constructor Summary
AbstractFreerailsServerTestCase()
           
 
Method Summary
(package private)  java.lang.String getIpAddress()
           
(package private)  int getPort()
           
protected  void setUp()
           
protected  void tearDown()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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

connectionAccepter

private InetConnectionAccepter connectionAccepter

server

FreerailsGameServer server

ipAddress

private final java.lang.String ipAddress
See Also:
Constant Field Values
Constructor Detail

AbstractFreerailsServerTestCase

public AbstractFreerailsServerTestCase()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

getPort

int getPort()

getIpAddress

java.lang.String getIpAddress()