org.hackystat.telemetry.analyzer.function.impl
Class TestAddFunction

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.hackystat.telemetry.analyzer.function.impl.TestAddFunction
All Implemented Interfaces:
junit.framework.Test

public class TestAddFunction
extends junit.framework.TestCase

Test suite for AddFunction.

Author:
(Cedric) Qin ZHANG

Constructor Summary
TestAddFunction()
           
 
Method Summary
protected  void setUp()
          Sets up this test case.
protected  void tearDown()
          Tears down this test case.
 void testWith2Numbers()
          Tests with 2 numbers.
 void testWith2TelemetryStreamCollections()
          Tests with 2 telemetry stream collections.
 void testWithNumberAndTelemetryStreamCollection()
          Tests with 1 numbers and 1 telemetry stream collection.
 void testWithTelemetryStreamCollectionAndNumber()
          Tests with 1 telemetry stream collection and 1 numbers.
 
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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestAddFunction

public TestAddFunction()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Sets up this test case.

Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception - If test case cannot be set up.

tearDown

protected void tearDown()
                 throws java.lang.Exception
Tears down this test case.

Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception - If tear down failed.

testWith2Numbers

public void testWith2Numbers()
                      throws java.lang.Exception
Tests with 2 numbers.

Throws:
java.lang.Exception - If test fails.

testWithTelemetryStreamCollectionAndNumber

public void testWithTelemetryStreamCollectionAndNumber()
                                                throws java.lang.Exception
Tests with 1 telemetry stream collection and 1 numbers.

Throws:
java.lang.Exception - If test fails.

testWithNumberAndTelemetryStreamCollection

public void testWithNumberAndTelemetryStreamCollection()
                                                throws java.lang.Exception
Tests with 1 numbers and 1 telemetry stream collection.

Throws:
java.lang.Exception - If test fails.

testWith2TelemetryStreamCollections

public void testWith2TelemetryStreamCollections()
                                         throws java.lang.Exception
Tests with 2 telemetry stream collections.

Throws:
java.lang.Exception - If test fails.