•  

PowerMock

A session at Øredev 2008

PowerMock can be used to test code normally regarded as untestable! Have you ever heard anyone say that you should never use static or final methods in your code because it makes them impossible to test? Have you ever changed a method from private to protected for the sake of testability?
What about avoiding "new"? Think again!

PowerMock lets you mock static methods, remove static initializers, allow mocking without dependency injection and much much more. And it works just as well for J2EE as J2ME! This presentation will give the audience a good understanding on how to easily unit-test your code without the limitations of the common mock frameworks such as EasyMock and JMock.

About the speaker

This person is speaking at this event.
Jan Kronquist

Consultant at Jayway

Sign in to add slides, notes or videos to this session

Øredev 2008

Sweden Sweden, Malmo

17th21st November 2008

Tell your friends!

View the schedule

Share

See something wrong?

Report an issue with this session