org.apache.commons.net.time
Class TimeTCPClientTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.net.time.TimeTCPClientTest
All Implemented Interfaces:
junit.framework.Test

public class TimeTCPClientTest
extends junit.framework.TestCase


Constructor Summary
TimeTCPClientTest()
           
 
Method Summary
protected  void closeConnections()
          closes all the connections
protected  void openConnections()
          open connections needed for the tests for the test.
 void testCompareTimes()
          tests the times retrieved via the Time protocol implementation.
 void testInitial()
          tests the constant basetime used by TimeClient against tha computed from Calendar class.
 
Methods inherited from class junit.framework.TestCase
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimeTCPClientTest

public TimeTCPClientTest()
Method Detail

openConnections

protected void openConnections()
                        throws Exception
open connections needed for the tests for the test.

Throws:
Exception

testInitial

public void testInitial()
tests the constant basetime used by TimeClient against tha computed from Calendar class.


testCompareTimes

public void testCompareTimes()
                      throws Exception
tests the times retrieved via the Time protocol implementation.

Throws:
Exception

closeConnections

protected void closeConnections()
closes all the connections



Copyright © 2001-2014 The Apache Software Foundation. All Rights Reserved.