They might behave differently because they usually run together when running on command line, and individually in Eclipse. If using Spring, you need to use @DirtiesContext to rebuild the Spring context if one class has dirtied it, e.g. by setting up a mock object which then affects a later running test.
errors and problems
Problem Error with Oracle hanging on a stored procedure call or commit statement. Solution Does someone have an uncommitted session? SQL Developer will sometimes cause this (maybe a user doesn’t have autocommit on?). select s.seconds_in_wait, s.blocking_instance, s.blocking_session, s.event, t.start_time, s.sid, s.serial#, s.username, s.status, s.schemaname, s.osuser, s.process, s.machine, s.terminal, s.program, s.module, to_char(s.logon_time,’DD/MON/YY HH24:MI:SS’) logon_time from v$transaction […]