configure integration test

This commit is contained in:
DOHA 2016-10-25 13:51:51 +02:00
parent 62ca74121f
commit 672b6fe336
2 changed files with 12 additions and 1 deletions

View File

@ -11,6 +11,7 @@
<jee.version>7.0</jee.version> <jee.version>7.0</jee.version>
<hibernate.version>5.1.0.Final</hibernate.version> <hibernate.version>5.1.0.Final</hibernate.version>
<mysql.version>5.1.38</mysql.version> <mysql.version>5.1.38</mysql.version>
<maven-surefire-plugin.version>2.19.1</maven-surefire-plugin.version>
</properties> </properties>
<build> <build>
@ -33,6 +34,16 @@
</descriptorRefs> </descriptorRefs>
</configuration> </configuration>
</plugin> </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
<configuration>
<excludes>
<exclude>**/*IntegrationTest.java</exclude>
</excludes>
</configuration>
</plugin>
</plugins> </plugins>
</build> </build>

View File

@ -15,7 +15,7 @@ import org.junit.Test;
import com.baeldung.jpa.model.Car; import com.baeldung.jpa.model.Car;
public class StoredProcedureTest { public class StoredProcedureIntegrationTest {
private static EntityManagerFactory factory = null; private static EntityManagerFactory factory = null;
private static EntityManager entityManager = null; private static EntityManager entityManager = null;