public class JUnit_Domino extends JUnit_DominoSpecification
Domino
as specified by JUnit_DominoSpecification
.dominoUnderTest, doubleMax
Constructor and Description |
---|
JUnit_Domino() |
Modifier and Type | Method and Description |
---|---|
void |
setUp()
Should initialise dominoUnderTest to "MIN: MAX" and doubleMax to "MAX : MAX"
|
void |
test_Constructor()
Unit test for the constructor
Domino.Domino(int, int) |
void |
test_ConstructorException()
Unit test for the constructor
Domino.Domino(int, int) exception case |
void |
test_CopyConstructorKO()
Unit test for the copy constructor
Domino.Domino(DominoSpecification) exception case |
void |
test_CopyConstructorOK()
Unit test for the copy constructor
Domino.Domino(DominoSpecification) non exception case |
void |
test_DefaultConstructor()
Unit test for the default constructor
Domino.Domino() |
void |
test_RandomConstructor()
Unit test for the constructor
Domino.Domino(Random) : make a random domino 1000 times and check that
it is always valid.The 'randomness' of the constructor is tested by the validation test ValidationDomino . |
tearDown, test_copy, test_equals, test_getLeft, test_getRight, test_hashCode, test_setUp, test_switchSides, test_toString
public void setUp()
JUnit_DominoSpecification
setUp
in class JUnit_DominoSpecification
public void test_DefaultConstructor()
Domino.Domino()
public void test_CopyConstructorOK()
Domino.Domino(DominoSpecification)
non exception casepublic void test_CopyConstructorKO()
Domino.Domino(DominoSpecification)
exception casepublic void test_Constructor()
Domino.Domino(int, int)
public void test_RandomConstructor()
Domino.Domino(Random)
: make a random domino 1000 times and check that
it is always valid.ValidationDomino
.public void test_ConstructorException()
Domino.Domino(int, int)
exception case