blog community
Sign in
|
Join
|
Help
Home
Blogs
Media
Paul Bakker
»
All Tags
»
Unit Testing
(
RSS
)
Browse by Tags
Paul Bakker
Home
Syndication
RSS for Posts
Atom
RSS for Comments
Email Notifications
Go
Recent Posts
Avoid mock setup duplication in unit tests
Mocking with JMockit
Tags
Adobe
agile
AIR
AspectJ
Catalyst
charts
Devoxx
DM server
Eclipse
Flex
Grails
IBM
Intellij
Java
Java 7
Java Groovy
JavaFX
JavaOne
JavaPolis
Jazz
JEE6
Mocking
Spring
Spring Source
Unit Testing
View more
Archives
October 2009 (1)
August 2009 (3)
July 2009 (1)
June 2009 (2)
March 2009 (1)
December 2008 (9)
November 2008 (1)
October 2008 (2)
July 2008 (2)
June 2008 (1)
May 2008 (1)
January 2008 (1)
December 2007 (5)
November 2007 (1)
August 2007 (1)
June 2007 (1)
May 2007 (2)
April 2007 (1)
Java
JMockit
Mocking
Avoid mock setup duplication in unit tests
At the project I'm currently working we do a lot of mocking. What we found is that our test methods sometimes contained a lot of duplicate code for setting up mocks. If you need some mockobjects in only two or three methods, you might not want to...
Published
12-06-2007 11:10
by
Paulb
Filed under:
Mocking
,
Java
,
Unit Testing
Mocking with JMockit
When writing Unit Tests, it's often necessary to mock classes. There are several good frameworks to do this, such as EasyMock. This works fine in most cases, but it's possible to run into problems when using certain designs. EasyMock (the same...
Published
23-04-2007 9:05
by
Paulb
Filed under:
Mocking
,
Java
,
Unit Testing
,
JMockit