Download Standalone JPA Test Demo Free Java Code
Description
How to enable standalone JNDI and embedded in memory database in tests. The project uses only Java and Maven. It runs without an application server or other J2EE container.
Source Files
The download file Standalone-JPA-Test-Demo-master.zip has the following entries.
pom.xml// w ww. j a v a 2 s.c o m
src/main/java/org/meri/jpa/simplest/entity/Person.java
src/main/resources/META-INF/persistence.xml
src/test/java/org/meri/jpa/AbstractTestCase.java
src/test/java/org/meri/jpa/DemoJPATest.java
src/test/java/org/meri/jpa/jndi/JNDITestCase.java
src/test/java/org/meri/jpa/jndi/MyContextFactory.java
src/test/java/org/meri/jpa/simplest/DemoJPATest.java
src/test/java/org/meri/jpa/simplest/db.changelog.xml
src/test/java/org/meri/jpa/util/ConfigurationException.java
src/test/java/org/meri/jpa/util/InMemoryDBUtil.java
src/test/java/org/meri/jpa/util/JNDIUtil.java
src/test/java/org/meri/jpa/util/naming/CloseSafeMemoryContext.java
src/test/java/org/meri/jpa/util/naming/CloseSafeMemoryContextFactory.java
src/test/java/org/meri/jpa/util/naming/ImMemoryDefaultContextFactoryBuilder.java
Download
Click the following link to download Standalone-JPA-Test-Demo-master.zip.
Standalone-JPA-Test-Demo-master.zip