[hibernate-dev] mocking library for hibernate unit tests?

Hardy Ferentschik hardy at hibernate.org
Wed Aug 1 02:22:53 EDT 2012


Hi Eric,

None of the existing tests uses a mock framework. In fact a great part of our test cases are functional in nature (going through whole Session life cycles). We have often discussed that we need more actual unit tests. If you want to use a mocking framework to do this I don't see why you should not be able to use one.

--hardy



On 1 Aug 2012, at 06:02, Eric Dalquist <eric.dalquist at doit.wisc.edu> wrote:

> I'm working on a fix for https://hibernate.onjira.com/browse/HHH-7468 
> but I want to write a test first to reproduce the problem. Any 
> recommendations for mocking an EntityPersister and a SessionImplementor 
> in the hibernate (4.1 branch) project? I didn't see something like 
> mockito or easymock on the classpath.
> 
> Thanks,
> -Eric
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev



More information about the hibernate-dev mailing list