Menu

#24 Unit test failure w/Oracle

open
nobody
None
5
2002-04-12
2002-04-12
No

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?

Discussion


Log in to post a comment.

MongoDB Logo MongoDB