SpringSource has recently released 3.0.1 of their Spring Framework. Spring 3 extended the REST functionalities inside the Web MVC part of the Framework. Rest Service are defined as Controller and can be tested with the new Resttemplate. In this little sample project is Spring 3 combined with JUnit 4, Maven, Hibernate 3.2, Jetty, MySQL, JPA, [...]
Continue reading about JUnit Tests for Spring 3 Rest Services
Sun has published milestone 5 (b76) of the upcoming Java JDK 7. JDK 7 release is currently scheduled for September 2010. My standard IDE is eclipse but the current production version 3.5 SR 1 support only Java up to JDK 6. I tried the new eclipse e4 1.0 milestone 2 (status: technical preview) which has [...]
Continue reading about ide for testing JDK 7 features (Milestone 5: Build b76)
SpringSource has published release candidate 2 of the upcoming 3.0 release of their Spring Framework. New Feature is the compliance with JSR-330 (“Dependency Injection for Java”). The JSR was developed together by Google (for their Guice Framework and SpringSource (for their Spring Framework) and is finally approved since 14.10.2009.
A little example shows how to develop [...]
Continue reading about Spring 3.0 RC 2 and JSR-330 (Dependency Injection for Java)
Most enterprises use LDAP as interface to their company structure database. In the Microsoft world is Active Directory the implementation for LDAP. Under Linux is OpenLDAP the common choice for admins. Such LDAP directories are tree based. OpenLDAP is the reference implementation for LDAP v3.
The JNDI API inside the Java SDK is usable as implementation [...]
Continue reading about Howto setup a OpenLDAP Server for Ubuntu 8.10
DBUnit is very nice for testing database content changes made by an application. You define in XML the data including the structure of your tables (dataset.xml).
Simple_Data is the name of the table and each column is a attribute in the xml doc with the content value e.g. id with value 1.
The Getting Started of DBUnit [...]
Continue reading about Dbunit with JUnit 4.x and Spring for testing Oracle DB Application