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 testDeleteMazeResultByPos()
          Test delete Rat result by postion.
 void testDeleteMazeResultByRFID()
          Test delete Maze result by RFID.
 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 testGetMazeResultByPos()
          Test get maze result by postion.
 void testGetMazeResultByRFID()
          Test get maze result by rat RFID name.
 void testIsCategoryMatch()
          Test is category valid helper method by category: MALE, FEMALE, VACCINATED, NOT_VACCINATED, ALL.
 void testSetDescription()
          Test set Competition description.
 void testSortByTime()
          Test sort results by time.
 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.


testDeleteMazeResultByPos

public void testDeleteMazeResultByPos()
Test delete Rat result by postion.


testDeleteMazeResultByRFID

public void testDeleteMazeResultByRFID()
Test delete Maze result by RFID.


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.


testGetMazeResultByPos

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


testGetMazeResultByRFID

public void testGetMazeResultByRFID()
Test get maze result by rat RFID name.


testIsCategoryMatch

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


testSetDescription

public void testSetDescription()
Test set Competition description.


testSortByTime

public void testSortByTime()
Test sort results by time.


testToString

public void testToString()
Test the toString method.