| org.springunit.examples.constructor.junit.v3.CompositeDateConstructorTest
CompositeDateConstructorTest | public class CompositeDateConstructorTest extends TestCase (Code) | | Moves test data inputs and expected values into a map.
Note that data values should be stored and retrieved as Objects,
not primitives. Autoboxing is used on the calls to runValid
and runInvalid. If values retrieved from the map are
autoboxed to primitives, then NullPointerExceptions must
be handled at this point, which is far less convenient.
author: Ted.Velkoff |
runInvalid | protected void runInvalid(int year, int month, int day) throws Exception(Code) | | |
runValid | protected void runValid(int year, int month, int day, int expectedYear, int expectedMonth, int expectedDay) throws Exception(Code) | | |
testFeb29NoLeap1900 | public void testFeb29NoLeap1900() throws Exception(Code) | | |
|
|