Java Virtal Machine.net

[ News ] rss

February 01, 2011

Mark Wielaard: New GPG key. Finally created a new GPG key using gnupg. The old one was a DSA/1024 bits one and 8 years old. The new one is a RSA/2048 bits one. I will use the new one in the future to sign any release tarballs I might create. pub 2048R/57816A6A 2011-01-29 Key f...

More »

February 01, 2011

Andrew Hughes: [SECURITY] IcedTea6 1.7.8, 1.8.5, 1.9.5 Released!. We are pleased to announce a new set of security releases, IcedTea6 1.7.8, IcedTea6 1.8.5 and IcedTea6 1.9.5. This update contains the following security updates: The IcedTea project provides a harness to build the source code from OpenJDK6 u...

More »

March/2024
SunMonTueWedThuFriSat
     12
3456789
10111213141516
171819 20212223
24252627282930
31      

[ Archives News
for 'Java Technology' ]

home > news > java technology > alexis moussine-pouchkine on glassfish testing with maven and javadb

Alexis Moussine-Pouchkine on GlassFish Testing with Maven and JavaDB

In this week's java.net Spotlight, we're highlighting Alexis Moussine-Pouchkine's recent post, Testing with the GlassFish Maven plugin and JavaDB Embedded. Alexis begins by referring back to some of his earlier posts, and showing how they're related to his current discussion: Having GlassFish v3 usable in embedded mode made it easy to create a maven plugin with multiple goals (see this previous entry). This in turn makes it easy to configure the plugin for maven-driven unit testing. Alexis goes illustrates how to do this with a code snippet that embeds the Maven plugin. Most business applications that utilize an application server (for example, GlassFish) are going to also interface with a database. One of the advantages of the GlassFish Maven plugin is that you can configure it (within your pom.xml file) such that testing can be repeated without your having to stop and restart the app server. Working with a database, however, add complexity. In particular, if the testing requires stopping and restarting the database, then the automation gained by embedding Maven is basically lost: you still have to stop and restart a large application each time you need to rerun your test. Solving this problem is the essential point of Alexis's post: This is where JavaDB embedded can come in handy. The trick with an application server like GlassFish is that it's not enough to use the embedded driver (org.apache.der...


Date: January, 18 2010
Url: http://www.java.net/blog/editor/archive/2010/01/18/alexis-moussine-pouchkine-glassfish-testing-maven-and-javadb


Others News

©2002-2019Java-Virtual-Machine.net static website generator | best website builder software | bootstrap menu | formoid.com | bootstrap forms