Geoffrey Wiseman wrote: > > On Tue, Dec 16, 2008 at 5:20 PM, James Adams <[email protected]> wrote: > >> The tests run fine when I run them individually using Maven at the >> command >> line (or from within NetBeans or Eclipse -- I don't think the IDE is an >> issue since the same thing happens in the IDE as at the command line): > > > [nod] So, sounds more like a problem with the tests themselves, at this > point, rather than Maven vs. IDE; Can NB run the whole suite at once, and > if > so, does that exhibit the same result? > >
Yes I get the same thing from within the IDE -- a full build fails with the same errors as when using command line. > > Failed tests: >> >> >> testSaveDeleteFindAll(com.mycom.network.lifecycle.persistence.dao.MultipleDaoTest) > > > What's the failure that's occurring? > > I am getting errors such as the number of expected objects found in the database are greater than what was expected. I am running my DAO tests using an embedded HSQLDB database, so I expect to start with a fresh table every time, then do some inserts, etc., then do a find call to see how many are in the table, and then make an assertion based on the expected number, and this is where it fails when running a full build. I also get errors for a test which is listening to a message queue for messages to be consumed, and this one fails as often as not during a full build but passes every time when running by itself. -- View this message in context: http://www.nabble.com/Tests-run-fine-individually%2C-but-some-fail-when-run-as-part-of-%27mvn-install%27-tp21019373p21043481.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
