Roop says

I created gravity?

Roop says header image 1

Assert Property Equality

October 23rd, 2007 · No Comments

When you start doing more thorough testing of your code you will quickly find that the existing JUnit functionatly is not always robust enough to relieve some of the tedium in testing. Let’s take for instance a simple equals method for a person object.

public boolean equals(Object o) {
Person person = (Person) o;
[…]

[Read more →]

Filed Under: programming · testing

JMock and AspectJ

October 4th, 2007 · 15 Comments

I think it is no secret that I have become obsessed with unit testing, more specifically the mockist theory of testing. Unfortunately over the last two weeks I have come across a scenario that JMock does not allow me to test very easily.
The scenario is basically when you instantiate an object inside of a method […]

[Read more →]

Filed Under: testing

JUnit 4.4

July 24th, 2007 · No Comments

A few months back I gave a presentation on testing software where I work. I believe the talk went well, and it definitely got me interested in testing, and different ideas and practices to ensure your code is working properly. I did all my examples using Java, and the JUnit framework, or derivatives […]

[Read more →]

Filed Under: testing