21 Mar '12, 3pm

Make Java code for XAgents easy to test #xpages #xgents

I try to write my logic in Java. I use the SSJS only to fetch the values I need to call my Java function The functions of the Java class take always the OutputStream (or the ResponseWriter) as a parameter. This is where the output goes For rendering XML or HTML output I use SAX with a little helper (Making one of these for JSON would be an interesting exercise) I try to avoid using XPages specific (e.g. variable resolver) in my class containing the logic, but rather rely on Dependency Injection to ease testing I debug and test the Java parts outside of XPages

Full article: http://www.wissel.net/blog/d6plinks/SHWL-8SLCVR?Open

Tweets

VW announces Think Blue tour, details on E-Golf test fleet

VW announces Think Blue tour, details on E-Golf...

green.autoblog.com 21 Mar '12, 10pm

VOLKSWAGEN LAUNCHES THINK BLUE® TOUR - Sustainable mobility tour to bring interactive experiences and innovative technolog...

Do you know what the ASVAB is? It determines wh...

marines.com 22 Mar '12, 8pm

ASVAB testing for applicants is conducted at Military Entrance Processing Stations, known as MEPS. The MEPS are a Departme...

This Car Runs on Code

spectrum.ieee.org 25 Mar '12, 3pm

The avionics system in the F-22 Raptor, the current U.S. Air Force frontline jet fighter, consists of about 1.7 million li...

How I learned to test my Rails applications, Pa...

everydayrails.com 13 Mar '12, 2am

How I learned to test my Rails applications, Part 1: Introduction March 12, 2012 Ruby on Rails and automated testing go ha...