org.mbari.siam.tests.moos.deployed
Class DeviceLogTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.mbari.siam.tests.moos.deployed.DeviceLogTest
All Implemented Interfaces:
junit.framework.Test

public class DeviceLogTest
extends junit.framework.TestCase

JUnit test harness for testing DeviceLog and related classes.

Author:
Tom O'Reilly

Constructor Summary
DeviceLogTest(java.lang.String methodName)
           
 
Method Summary
 void append()
          Verify that packet is properly appended to DeviceLog.
 void appendBadTime()
          Append a packet with timetag that is less than previous timetag.
 void appendMetadata()
          Append a metadata packet, then a subsequent packet.
 void setUp()
           
static junit.framework.Test suite()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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
 

Constructor Detail

DeviceLogTest

public DeviceLogTest(java.lang.String methodName)
Method Detail

setUp

public void setUp()
Overrides:
setUp in class junit.framework.TestCase

append

public void append()
Verify that packet is properly appended to DeviceLog.


appendMetadata

public void appendMetadata()
Append a metadata packet, then a subsequent packet. Check metadata reference on subsequent packet.


appendBadTime

public void appendBadTime()
Append a packet with timetag that is less than previous timetag. Verify that DeviceLog automatically appends a message packet with error message.


suite

public static junit.framework.Test suite()


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.