A new Java Power Tools Newsletter is out! In this issue, we study the theory and practice of Mock Objects, including the subtle differences between mocks and stubs, and a simple case study using Mockito, the new kid on the block of Mock Objects frameworks for Java. Check it out!Test-Driven Development, or TDD, is often quoted as an essential Agile best practice, and so it is. It works wonders on green-fields projects and new code bases where you can start afresh and ensure that all your code is both easily testable and well tested. But what about legacy code? (By legacy code, I mean any code that does not have a comprehensive set of automated tests, so you might be writing legacy code as we speak). For most of us, most of the code we will ever work on will not have originally been our own work. And, unfortunately for the software industry, only a small fraction of code can really boast comprehensive unit and integration tests. How can techniques like Test-Driven Development make our work as developers more productive and less frustrating?
Come get up to speed on the latest techniques in Test-Driven Development, Behaviour-Driven Development and Automated Acceptance Testing!

The Wakaleo TDD/BDD workshop schedule for the next six months is out!
In response to popular demand, the TDD/BDD workshops have been extended to a 3-day format, and include more time for numerous labs, group programming exercises, and live coding demonstrations.
You will learn about vital modern development best practices such as Test-Driven Development, Behaviour-Driven Development, and Automated Acceptance Tests, and how to apply them in your own projects. You will gain practical experience with the latest in open source testing tools, including JUnit 4.8, Mockito, automated web testing using Page Objects with Selenium 2/Web Driver, and JOLT-Award winner easyb.
You will also learn about the relationship between Automated Acceptance Tests (ATDD) and Test-Driven Development (TDD). You will also learn how to refactor code to make it easier to maintain and to test, and how to use code coverage and code quality tools such as Cobertura to isolate poor quality or poorly-tested code.
A general outline of the course program is shown here:
Over the first 4 months of 2011, we currently have public sessions planned for Sydney, Melbourne, Wellington, Canberra and Brisbane. And of course we can also run tailored versions of the course onsite.
These workshops are becoming increasingly popular, so it's worthwhile booking ahead. So what are you waiting for? Sign up now!
There are 3 items tagged with Mockito. You can view all our tags in the Tag Cloud
In this slideshow you will learn how automated web tests can:
|