• submit to reddit
Rob Williams01/16/12
0 replies

An Eclipse Template for Parameterized JUnit Tests

After refusing much of any changes, especially the ugly TestDecorator fixture, after TestNG showed up, JUnit went bonkers with a spasm of matching features. Parameterized tests were in 3.8.1, but in 4.x, they were redone with annotations. The results were...

Dustin Marx01/16/12
1 replies

Rendering HTML Within JavaFX

JavaFX 2.0 allows for inclusion of HTML code within a JavaFX application using JavaFX 2.0's WebView and WebEngine classes from the javafx.scene.web package. This post looks at a very simple example of how this can be done.

Cody Powell01/16/12
0 replies

Operations should Communicate Close to the Change

I have said this before but it bears repeating. If you are making a change and you want people to know you have made a change, add a note where someone is most likely to come in contact with your note. If you are editing a file, add a comment to the bit...

Lukas Eder01/16/12
3 replies

The Java Fluent API Designer Crash Course

Ever since Martin Fowler’s talks about fluent interfaces, people have started chaining methods all over the place, creating fluent API’s (or DSLs) for every possible use case.

Wayne Ellis01/16/12
1 replies

Playframework, Twitter Bootstrap and Google Maps API

So, what did you do over the Christmas break? Presents, plenty of family time, kick back a little? I did all that and wrote a little web application as well. I thought I would share a little insight into how I got on. Background

Wayne Adams01/16/12
1 replies

Asynchronous Java SE Web Services: 1. Implementation

A few years ago, I posted a how-to on Java-SE-based Web Services. More recently, I've become interested in asynchronous web-service invocation, and, as it turns out, Java SE supports that, too. This post, then, is the asynchronous version of that older...

Matt Raible01/16/12
1 replies

Upgrading AppFuse to Spring Security 3.1 and Spring 3.1

Before the holiday break, I spent some time upgrading AppFuse to use the latest releases of Spring and Spring Security. I started with Spring Security in early December and quickly discovered its 3.1 XSD required some changes. After changing to the 3.1 XSD...

Robert Diana01/15/12
0 replies

DZone Top Article of 2011: 7 Tenets Of Framework Selection

As you develop any application, you will need to choose various tools, libraries and frameworks that you want to integrate into the application. In some cases, this could be a very simple task of choosing the most popular and widely respected tool....

Michael Foord01/15/12
0 replies

Mocking of 'Open' as a Context Manager Made Simple In Python

Using open as a context manager is a great way to ensure your file handles are closed properly and is becoming common:with open('/some/path', 'w') as f: f.write('something')The issue is that even if you mock out the call to open it is the returned object...

Mitch Pronschinske01/15/12
0 replies

Lessons Learned: Refactoring a Solr-Based API App

In this case study I'll discuss architectural lessons learned from refactoring an existing REST-API backed by Apache Solr. The initial goal of the...

Nikhil Mungel01/15/12
0 replies

Time Saving Bash Tricks

This is a followup from the lightning talk '5 Time Saving Bash Tricks' at DevOpsDays, Bangalore 2011.   These work with the emacs-readline, which is the default configuration in most ditributions (including OS X). C means ControlM means Meta (usually...

Roger Hughes01/15/12
0 replies

Approaches to XML - Part 2 - What about SAX?

My last blog introduced the idea that there are different ways to approach XML parsing and highlighted the point that XML is NOT A STRING; rather it’s an object oriented document model that can be represented using a string. Today’s blog continues this...

Alex Staveley01/15/12
1 replies

Doing more with less in JUnit 4

JUnit is a popular testing framework for writing unit tests in Java projects. Every software engineer should always try to consider using less code to achieve objectives and the same is true for test code. This post shows one way to write less test code...

Jim Bird01/14/12
6 replies

Static Analysis isn’t Development Testing

I constantly get emails from Static Analysis vendors telling me why I need to buy their technology. Recently I’ve been receiving emails explaining how my team can use static analysis tools to do impressive things like “test millions of complex lines of...

Rick Copeland01/14/12
2 replies

MongoDB Rocks My World

I am delighted to announce that I'll be speaking at several MongoDB-related events over the next couple of months. So if you're in or near Dallas, Seattle, or Silicon Valley, I'd love it if you could make it to one of my talks. 10gen (the makers of...