ctf.network
Class TCPTests

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

public class TCPTests
extends junit.framework.TestCase

Tests TCP communication


Nested Class Summary
(package private)  class TCPTests.ConnectionAcceptor
           
 
Field Summary
(package private)  Connection tmp
           
(package private)  java.util.concurrent.locks.Condition tmpCondition
           
(package private)  java.util.concurrent.locks.Lock tmpLock
           
 
Constructor Summary
TCPTests()
           
 
Method Summary
 void testClient()
          Test opening a client to a server port, first sending and then receiving a String
 
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, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

tmp

Connection tmp

tmpLock

java.util.concurrent.locks.Lock tmpLock

tmpCondition

java.util.concurrent.locks.Condition tmpCondition
Constructor Detail

TCPTests

public TCPTests()
Method Detail

testClient

public void testClient()
                throws java.lang.Exception
Test opening a client to a server port, first sending and then receiving a String

Throws:
java.lang.Exception