Giter VIP home page Giter VIP logo

apache-tomee-datanucleus-test's Introduction

Apache TomEE DataNucleus Test

The purpose of this project is to test whether DataNucleus can be used as the JPA provider in Apache TomEE 7.

Overview

This project consists of a Java EE 7 web application with a Maven build. The project is tested using Arquillian.

Setup

Importing the project into an IDE

We recommend that you import the Maven project into your IDE (i.e., IntelliJ IDEA Ultimate or Eclipse IDE for Java EE Developers). You’ll unlock the most functionality by importing the Maven project since it provides access to profiles that can be used to run the test on different container profiles.

Usage

Running the tests using Maven

To run the tests on TomEE in embedded mode from a terminal using Maven, simply run:

$ mvn test

You can run a single test method using:

$ mvn test -Dtest=EntityrakerTest#shouldBeRakedIn

To run the tests on TomEE in managed mode, you first need to build a configured TomEE instance that contains the jar files for the JPA provider. You can use the TomEE Maven plugin to build that instance, already configured in this project. Simply run the following command from a terminal:

$ mvn tomee:build -Dtomee-plugin.skipCurrentProject=true

A new server instance has been prepared for you at the path servers/apache-tomee-webprofile-7.0.2. You can now run the tests on TomEE in managed mode from a terminal using Maven with:

$ mvn test -Parquillian=tomee-managed

You can run a single test method using:

$ mvn test -Parquillian=tomee-managed -Dtest=EntityrakerTest#shouldBeRakedIn

Running the tests in the IDE

Once the project is imported, you can navigate to a test case, EntityrakerTest, and run it just like you would any other JUnit test. That will run the test on TomEE in embedded mode by default.

To run the tests on TomEE in managed mode from the IDE, you first need to activate the arquillian=tomee-managed Maven profile. Then you need to set the arquillian.launch system property to tomee-managed in the run configuration for the test.

apache-tomee-datanucleus-test's People

Contributors

mojavelinux avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.