About Me
I'm a contract Java developer working in Melbourne for the past 10+ years.
More recently I created onmydoorstep.com.au, a place to find out more about where you live in Australia.
I'm also active in the open-source community with several projects ongoing.
Follow @richard_nichols
Also on Github.Tags
ant apple automation cluster css cv Design developer doclet documentation drm ebook Google guice guides images ioc IT jasperreports Java javadoc javascript jobs jpa junit markdown netbeans off-topic open-source performance recruitment regex releases servers soap-box syntax testing tips ui visural-common visural-wicket warp-persist web wicket windowsArchives
-
Popular Posts
- Converting Ebook Formats – .mobi to .epub
- Implementing Facebook OAuth 2.0 Authentication in Java
- Simple Guide To Sub-reports in JasperReports / iReport
- Face Detection in Java – Haar Cascade with JJIL (how-to)
- 1 Minute Guide – Installing Redmine on Windows
- 5 Minute Guide to Clustering – Java Web Apps in Tomcat
- Wicket – forcing page reload on browser back button…
- Use Hudson (now Jenkins) to restart a Windows service…
Tag Archives: junit
Writing reflective unit tests to improve code quality
I’ve found that writing JUnit tests that do classpath scanning combined with reflection is a way to write unit tests that cross-cut the entire application. This can be useful to prevent anti-patterns, enforce code standards or just to prevent common … Continue reading
Posted in Java, Software Engineering
Tagged Java, junit, tips, visural-common, warp-persist
3 Comments
NetBeans 6.7 Broke My Parameterized Tests
If you had some JUnit parameterized tests with code such as: import java.util.Collection; import junit.framework.TestCase; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; @RunWith(Parameterized.class) public class MyParamTest extends TestCase { public MyParamTest(String s1, String s2) { // do something with s1 and s2 } … Continue reading
Testing Abstract Classes With Mockito and JUnit
Often times in Java, you have an abstract parent class which has some concrete methods which call abstract methods which will be implemented by the child classes. So what’s an easy way to test this sort of pattern? A mock … Continue reading