Class CompetitionTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by CompetitionTest
All Implemented Interfaces:
junit.framework.Test

public class CompetitionTest
extends junit.framework.TestCase

The test class CompetitionTest.

Version:
Summer 2014
Author:
Tina Comston

Constructor Summary
CompetitionTest()
           
 
Method Summary
protected  void setUp()
          Sets up the test fixture.
 void testAddMazeResult()
          Test add maze result.
 void testCreateObject()
          Test domain class constructor.
 void testGetCount()
          Test get count.
 void testGetMazeAve()
          Test get maze average time by category: MALE, FEMALE, VACCINATED, NOT_VACCINATED, ALL.
 void testGetMazeCount()
          Test get maze count by category: MALE, FEMALE, VACCINATED, NOT_VACCINATED, ALL.
 void testGetMazeResultByChipID()
          Test get maze result by rat chip ID name.
 void testGetMazeResultByPos()
          Test get maze result by postion.
 void testIsCategoryMatch()
          Test is category valid helper method by category: MALE, FEMALE, VACCINATED, NOT_VACCINATED, ALL.
 void testSetDesc()
          Test set Competition description.
 void testToString()
          Test the toString method.
 
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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompetitionTest

public CompetitionTest()
Method Detail

setUp

protected void setUp()
              throws Exception
Sets up the test fixture. Called before every test case method.

Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

testAddMazeResult

public void testAddMazeResult()
Test add maze result.


testCreateObject

public void testCreateObject()
Test domain class constructor.


testGetCount

public void testGetCount()
Test get count.


testGetMazeAve

public void testGetMazeAve()
Test get maze average time by category: MALE, FEMALE, VACCINATED, NOT_VACCINATED, ALL.


testGetMazeCount

public void testGetMazeCount()
Test get maze count by category: MALE, FEMALE, VACCINATED, NOT_VACCINATED, ALL.


testGetMazeResultByChipID

public void testGetMazeResultByChipID()
Test get maze result by rat chip ID name.


testGetMazeResultByPos

public void testGetMazeResultByPos()
Test get maze result by postion.


testIsCategoryMatch

public void testIsCategoryMatch()
Test is category valid helper method by category: MALE, FEMALE, VACCINATED, NOT_VACCINATED, ALL.


testSetDesc

public void testSetDesc()
Test set Competition description.


testToString

public void testToString()
Test the toString method.