O'Reilly logo

Java EE 7 Developer Handbook by Peter A. Pilgrim

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Running a simple entity bean test

In this section, we will run a simple entity bean test with the Arquillian framework.

The Gradle build file for the entity bean test

We are using the setup of Gradle, Arquillian test framework, Apache Derby,and embedded Glassfish server. The project's Gradle build filebuild.gradle is as follows:

apply plugin: 'java' apply plugin: 'maven' apply plugin: 'eclipse' apply plugin: 'idea' // Define equivalent Maven GAV coordinates. group = 'com.javaeehandbook.book1' archivesBaseName = 'ch04-jpa-simple' version = '1.0' repositories { mavenLocal() mavenCentral() maven { url 'https://maven.java.net/content/groups/ promoted' } maven { url 'http://repository.jboss.org/nexus/content/groups/public' } } dependencies { compile 'javax:javaee-api:7.0' ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required