Unit test failure w/Oracle
Brought to you by:
joncrlsn
When I run the unit tests against an Oracle DB
test020Video() fails. The Video object returned by
i_videoDomain.find(ExampleData.s_goneWithTheWindVideo);
contains two other objects: media, and genre. The
test fails because genre is null. Ths source of the
failure is in the postFind method of VideoDomain at
the call to Genre genre = (Genre) new GenreDomain
().find(genreId, jdbcHelperClone); Both the genreId
and the jdbcHelperClone are non-null.
If I create and (Integer, String) ctor for Genre and
substitute Genre genre = new Genre
(genreId, "NNNNNN");
the test 'succeeds';
Any hints where to find the problem?