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

Eric Dalquist eric.dalquist at doit.wisc.edu
Wed Aug 1 07:25:35 EDT 2012


Thanks, I'll add a dependency on Mockito for the test and include that 
with the pull request.

-Eric


On 8/1/12 1:22 AM, Hardy Ferentschik wrote:
> 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