Posts Tagged ‘Java’

IntelliJ Structural Search to Convert from JUnit3 to Junit4

Wednesday, January 18th, 2012 by Jesper Rønn-Jensen

Just a quick tip for intellij users. For an old project i wanted to convert JUnit 3 testcases to JUnit4 format. Most stuff was already in place, but after the conversion, i found that some of the old “assertTrue”, “assertFalse”, and “assertEquals” statements were failing. So i ended up with some short search/replace, which are really […]

Java Friday Fun: @WTF annotations in code

Friday, September 16th, 2011 by Jesper Rønn-Jensen

Time for a little geeky gimmick. Some developers see and express a lot of “WTF??” while trying to understand code IN this spirit, i created a quick @WTF annotation for Java. Besides being completely useless (its removed at compile time), its only purpose is to give developers a new way to express themselves in code. […]

Fixed Strange Hudson Slave OutOfMemoryError

Friday, November 12th, 2010 by Jesper Rønn-Jensen

At a current project I am working on, we use Hudson and Maven to build our Java code. Strangely, one of the slaves constantly failed with an OutOfMemory error. We tried two obvious fixes. The first did not work: Not working strategy: To append memory params on the job itself. We modified the job inside […]

GWT relevant snippets for IntelliJ Idea editor

Tuesday, October 5th, 2010 by Jesper Rønn-Jensen

I created a list of snippets that I loaded into my IntelliJ editor, which I find useful when working with Google Webtoolkit (GWT). So far, it’s a very short list. Snippet 1: Live template to bootstrap a class to use UI binder logic. Very useful when converting existing (pre gwt 2.0) Java classes to UI […]