tests
Class TestBase

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

public class TestBase
extends junit.framework.TestCase

Test class about modele.Base Class.
Tests of Getters and Setters are the most simple.
To test the isBase method, it is done with char used in a normal case some other codes (R, Y...), gap and some counter-examples.
Tests of isBaseOrGap is tested same as isBase (which is included).
MatchBases(char,char) is tested with all correct combinations and some uncorrect combinations, the MatchBasesGap(char,char) is tested with combinations with are not delayed to MatchBases(char,char).
MatchBases(Base,Base) and MatchBasesOrGap(Base,Base) are not tested because they directly delay to their (char,char) versions and getters which have been already tested.

Author:
Gabriel Chandesris (2008)
See Also:
modele

Field Summary
private  Base basetest
          A local instance of Base.
 
Constructor Summary
TestBase()
           
 
Method Summary
protected  void setUp()
          At the beginning of the tests, to instanciate a Base Object (and test constructor).
 void testEqualsFalseDe()
           
 void testEqualsFalseTr()
           
 void testEqualsFalseUn()
           
 void testEqualsTrue()
           
 void testGetBase()
           
 void testGetPosition()
           
 void testIsBaseA()
           
 void testIsBaseC()
           
 void testIsBaseG()
           
 void testIsBaseGap()
           
 void testIsBaseN()
           
 void testIsBaseOrGapC()
           
 void testIsBaseOrGapG()
           
 void testIsBaseOrGapGap()
           
 void testIsBaseOrGapN()
           
 void testIsBaseOrGapQ()
           
 void testIsBaseOrGapR()
           
 void testIsBaseOrGapT()
           
 void testIsBaseOrGapY()
           
 void testIsBaseOrGapZ()
           
 void testIsBaseQ()
           
 void testIsBaseR()
           
 void testIsBaseT()
           
 void testIsBaseY()
           
 void testIsBaseZ()
           
 void testMatchBasesCharCharAC()
           
 void testMatchBasesCharCharAG()
           
 void testMatchBasesCharCharAGap()
           
 void testMatchBasesCharCharAT()
           
 void testMatchBasesCharCharAU()
           
 void testMatchBasesCharCharCA()
           
 void testMatchBasesCharCharCG()
           
 void testMatchBasesCharCharCGap()
           
 void testMatchBasesCharCharCT()
           
 void testMatchBasesCharCharGA()
           
 void testMatchBasesCharCharGapA()
           
 void testMatchBasesCharCharGapC()
           
 void testMatchBasesCharCharGapG()
           
 void testMatchBasesCharCharGapGap()
           
 void testMatchBasesCharCharGapT()
           
 void testMatchBasesCharCharGC()
           
 void testMatchBasesCharCharGGap()
           
 void testMatchBasesCharCharGT()
           
 void testMatchBasesCharCharGU()
           
 void testMatchBasesCharCharTA()
           
 void testMatchBasesCharCharTC()
           
 void testMatchBasesCharCharTG()
           
 void testMatchBasesCharCharTGap()
           
 void testMatchBasesCharCharUA()
           
 void testMatchBasesCharCharUG()
           
 void testMatchBasesGapCharCharAGap()
           
 void testMatchBasesGapCharCharCGap()
           
 void testMatchBasesGapCharCharGapA()
           
 void testMatchBasesGapCharCharGapC()
           
 void testMatchBasesGapCharCharGapG()
           
 void testMatchBasesGapCharCharGapGap()
           
 void testMatchBasesGapCharCharGapT()
           
 void testMatchBasesGapCharCharGapU()
           
 void testMatchBasesGapCharCharGGap()
           
 void testMatchBasesGapCharCharTGap()
           
 void testMatchBasesGapCharCharUGap()
           
 void testScoreBasesAA()
           
 void testScoreBasesAG()
           
 void testScoreBasesAT()
           
 void testScoreBasesAU()
           
 void testScoreBasesCC()
           
 void testScoreBasesCG()
           
 void testScoreBasesGA()
           
 void testScoreBasesGC()
           
 void testScoreBasesGG()
           
 void testScoreBasesGT()
           
 void testScoreBasesGU()
           
 void testScoreBasesTA()
           
 void testScoreBasesTG()
           
 void testScoreBasesTT()
           
 void testScoreBasesUA()
           
 void testScoreBasesUG()
           
 void testScoreBasesUU()
           
 void testScoreBasesXX()
           
 void testSetBase()
           
 void testSetPosition()
           
 
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

basetest

private Base basetest
A local instance of Base.

Constructor Detail

TestBase

public TestBase()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
At the beginning of the tests, to instanciate a Base Object (and test constructor).

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

testEqualsTrue

public void testEqualsTrue()

testEqualsFalseUn

public void testEqualsFalseUn()

testEqualsFalseDe

public void testEqualsFalseDe()

testEqualsFalseTr

public void testEqualsFalseTr()

testGetBase

public void testGetBase()

testGetPosition

public void testGetPosition()

testSetBase

public void testSetBase()

testSetPosition

public void testSetPosition()

testIsBaseA

public void testIsBaseA()

testIsBaseC

public void testIsBaseC()

testIsBaseG

public void testIsBaseG()

testIsBaseT

public void testIsBaseT()

testIsBaseGap

public void testIsBaseGap()

testIsBaseZ

public void testIsBaseZ()

testIsBaseQ

public void testIsBaseQ()

testIsBaseN

public void testIsBaseN()

testIsBaseR

public void testIsBaseR()

testIsBaseY

public void testIsBaseY()

testIsBaseOrGapC

public void testIsBaseOrGapC()

testIsBaseOrGapG

public void testIsBaseOrGapG()

testIsBaseOrGapT

public void testIsBaseOrGapT()

testIsBaseOrGapGap

public void testIsBaseOrGapGap()

testIsBaseOrGapZ

public void testIsBaseOrGapZ()

testIsBaseOrGapQ

public void testIsBaseOrGapQ()

testIsBaseOrGapN

public void testIsBaseOrGapN()

testIsBaseOrGapR

public void testIsBaseOrGapR()

testIsBaseOrGapY

public void testIsBaseOrGapY()

testMatchBasesCharCharAU

public void testMatchBasesCharCharAU()

testMatchBasesCharCharUA

public void testMatchBasesCharCharUA()

testMatchBasesCharCharGC

public void testMatchBasesCharCharGC()

testMatchBasesCharCharCG

public void testMatchBasesCharCharCG()

testMatchBasesCharCharAT

public void testMatchBasesCharCharAT()

testMatchBasesCharCharTA

public void testMatchBasesCharCharTA()

testMatchBasesCharCharGU

public void testMatchBasesCharCharGU()

testMatchBasesCharCharUG

public void testMatchBasesCharCharUG()

testMatchBasesCharCharAG

public void testMatchBasesCharCharAG()

testMatchBasesCharCharGA

public void testMatchBasesCharCharGA()

testMatchBasesCharCharAC

public void testMatchBasesCharCharAC()

testMatchBasesCharCharCA

public void testMatchBasesCharCharCA()

testMatchBasesCharCharCT

public void testMatchBasesCharCharCT()

testMatchBasesCharCharTC

public void testMatchBasesCharCharTC()

testMatchBasesCharCharGT

public void testMatchBasesCharCharGT()

testMatchBasesCharCharTG

public void testMatchBasesCharCharTG()

testMatchBasesCharCharGapGap

public void testMatchBasesCharCharGapGap()

testMatchBasesCharCharAGap

public void testMatchBasesCharCharAGap()

testMatchBasesCharCharCGap

public void testMatchBasesCharCharCGap()

testMatchBasesCharCharGGap

public void testMatchBasesCharCharGGap()

testMatchBasesCharCharTGap

public void testMatchBasesCharCharTGap()

testMatchBasesCharCharGapA

public void testMatchBasesCharCharGapA()

testMatchBasesCharCharGapC

public void testMatchBasesCharCharGapC()

testMatchBasesCharCharGapG

public void testMatchBasesCharCharGapG()

testMatchBasesCharCharGapT

public void testMatchBasesCharCharGapT()

testMatchBasesGapCharCharGapGap

public void testMatchBasesGapCharCharGapGap()

testMatchBasesGapCharCharAGap

public void testMatchBasesGapCharCharAGap()

testMatchBasesGapCharCharCGap

public void testMatchBasesGapCharCharCGap()

testMatchBasesGapCharCharGGap

public void testMatchBasesGapCharCharGGap()

testMatchBasesGapCharCharTGap

public void testMatchBasesGapCharCharTGap()

testMatchBasesGapCharCharUGap

public void testMatchBasesGapCharCharUGap()

testMatchBasesGapCharCharGapA

public void testMatchBasesGapCharCharGapA()

testMatchBasesGapCharCharGapC

public void testMatchBasesGapCharCharGapC()

testMatchBasesGapCharCharGapG

public void testMatchBasesGapCharCharGapG()

testMatchBasesGapCharCharGapT

public void testMatchBasesGapCharCharGapT()

testMatchBasesGapCharCharGapU

public void testMatchBasesGapCharCharGapU()

testScoreBasesGC

public void testScoreBasesGC()

testScoreBasesCG

public void testScoreBasesCG()

testScoreBasesAU

public void testScoreBasesAU()

testScoreBasesUA

public void testScoreBasesUA()

testScoreBasesAT

public void testScoreBasesAT()

testScoreBasesTA

public void testScoreBasesTA()

testScoreBasesGU

public void testScoreBasesGU()

testScoreBasesUG

public void testScoreBasesUG()

testScoreBasesXX

public void testScoreBasesXX()

testScoreBasesGG

public void testScoreBasesGG()

testScoreBasesGT

public void testScoreBasesGT()

testScoreBasesTG

public void testScoreBasesTG()

testScoreBasesGA

public void testScoreBasesGA()

testScoreBasesAG

public void testScoreBasesAG()

testScoreBasesCC

public void testScoreBasesCC()

testScoreBasesAA

public void testScoreBasesAA()

testScoreBasesUU

public void testScoreBasesUU()

testScoreBasesTT

public void testScoreBasesTT()