Click here to Skip to main content
13,088,846 members (64,398 online)
Click here to Skip to main content
Articles » Languages » Java » General » Revisions


5 bookmarked
Posted 4 Apr 2012

Mock Java Calendar - JMockit vs Mockito

, 19 May 2012
This post discusses the different possibilities to mock the behavior of Calendar class in Java, in order to unit test the business methods which depend on this class. Three solutions are proposed.



Compare Revision Minor Date Status Editor
6 - publicly available No 18-Jan-17 5:10 Available Deeksha Shenoy
Updates in content. Changes: 51
5 No 19-May-12 6:12 Available Smitha Nishant
4 No 19-May-12 3:59 Pending hoonzis
3 No 4-Apr-12 1:53 Available Smitha Nishant
2 No 3-Apr-12 23:11 Composing hoonzis
1 No 3-Apr-12 15:40 Composing hoonzis


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Software Developer (Junior) OCTO Technology
Czech Republic Czech Republic
Writing software at ITG RFQ-hub.
Articles at OCTO blog

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.170813.1 | Last Updated 19 May 2012
Article Copyright 2012 by hoonzis
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid