You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geode.apache.org by Xiaojian Zhou <gz...@pivotal.io> on 2016/02/28 19:10:40 UTC

Fwd: A shareable template to write mock-based junit test for gemfire legacy classes

---------- Forwarded message ----------
From: Xiaojian Zhou <gz...@pivotal.io>
Date: Fri, Feb 26, 2016 at 5:31 PM
Subject: A shareable template to write mock-based junit test for gemfire
legacy classes
To: gemfire-dev <ge...@pivotal.io>


Hi,

We've just added a chapter "Using Mockito to test region class" in
https://cwiki.apache.org/confluence/display/GEODE/Tips+and+Tricks+for+fixing+DUnit+test+failures
.

It introduced a template and 2 examples on how to write junit test for
DistributedRegion and BucketRegion.

The code can be shared and reused. More contributions are welcome.

Regards
Gester