com.jrefinery.data.junit
Class BasicTimeSeriesTests

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.jrefinery.data.junit.BasicTimeSeriesTests
All Implemented Interfaces:
junit.framework.Test

public class BasicTimeSeriesTests
extends junit.framework.TestCase

An incomplete collection of test cases for the BasicTimeSeries class.


Field Summary
protected  BasicTimeSeries seriesA
           
protected  BasicTimeSeries seriesB
           
protected  BasicTimeSeries seriesC
           
 
Constructor Summary
BasicTimeSeriesTests(java.lang.String name)
          Constructs a new set of tests.
 
Method Summary
protected  void setUp()
          Common test setup.
static junit.framework.Test suite()
          Returns the tests as a test suite.
 void testAddValue()
          Add a value to series A for 1999.
 void testClone()
          Set up a quarter equal to Q1 1900.
 void testDelete()
          Tests the deletion of values.
 void testGetValue()
          Tests the retrieval of values.
 
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
 

Field Detail

seriesA

protected BasicTimeSeries seriesA

seriesB

protected BasicTimeSeries seriesB

seriesC

protected BasicTimeSeries seriesC
Constructor Detail

BasicTimeSeriesTests

public BasicTimeSeriesTests(java.lang.String name)
Constructs a new set of tests.

Parameters:
The - name of the tests.
Method Detail

suite

public static junit.framework.Test suite()
Returns the tests as a test suite.


setUp

protected void setUp()
Common test setup.

Overrides:
setUp in class junit.framework.TestCase

testClone

public void testClone()
Set up a quarter equal to Q1 1900. Request the previous quarter, it should be null.


testAddValue

public void testAddValue()
Add a value to series A for 1999. It should be added at index 0.


testGetValue

public void testGetValue()
Tests the retrieval of values.


testDelete

public void testDelete()
Tests the deletion of values.



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.