![]() ![]() |
Jan Kronquist & Johan Haleby, Jayway, Sweden
Johan is a software consultant at Jayway where he's been working on several business critical systems. He's often called upon for advice especially when it comes to unit testing. Doing programming for as long as he can remember he has now taken a very special interest in Java and especially in the open source community. One of the projects he's currently working on is PowerMock which allows you to unit-test code normally regarded as untestable. He's given lectures and written several articles on various Java subjects including testing, mocking, web development and more. Jan is working as a consultant at Jayway. He is an experienced developer who has worked with everything from game development to enterprise applications and has been programming in Java since 1997. He is a strong believer in agile methodology and finding simple solutions to seemingly complex problems. Jan often coaches colleagues in learning new tools and techniques and has held seminars at various Java usergroups.
PowerMock
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! |