Fast path switching between projects

Tuesday, December 29, 2009

I just finished some mods to the script I use when switching from one project to another.  The script makes it really fast and easy to try different versions of things that are wired into the command line path.  For example, switching grails versions is as simple as
use grails 1.1.1
grails run-app
Switching [...]

Developing and Debugging Liferay Plugin Portlets in Eclipse – Quickly Even!

Friday, December 18, 2009

Liferay 5.2.3, Eclipse 3.5, Tomcat 6.0.18
One of the biggest issues when creating portlets for deployment on Liferay is the large amount of time spent starting and stopping the Liferay instance and figuring out how to debug your code. This post outlines how to setup fairly rapid turns on Liferay 5.2.3 bundled with Tomcat 6.0.18 [...]

Simplifying JPA Testing with Spring’s PersistenceUnitPostProcessor

Friday, December 11, 2009

At my current client, we are writing an application that is deployed as an ear into Websphere. One of the goals of the project is to write out-of-container tests so that we don’t have to build and deploy over and over again. Two of the tools we are using in this application is JPA for [...]

Write Readable Tests with Mockito

Friday, December 4, 2009

A good mocking framework is a must have in any Java developers toolset. Mocking frameworks greatly reduce the amount of code needed to effectively mock dependent interfaces and/or classes. Over the past several years EasyMock has been my mocking framework of choice. But, the framework has a couple of issues that could [...]