CCM NG: Some more things
git-svn-id: https://svn.libreccm.org/ccm/ccm_ng@3513 8810af33-2d31-482b-a856-94f89814c4dfpull/2/head
parent
31763e8a3c
commit
40f9b8d79d
|
|
@ -40,6 +40,8 @@ import org.h2.tools.RunScript;
|
||||||
import org.jboss.arquillian.persistence.dbunit.dataset.json.JsonDataSet;
|
import org.jboss.arquillian.persistence.dbunit.dataset.json.JsonDataSet;
|
||||||
import org.junit.runners.Parameterized;
|
import org.junit.runners.Parameterized;
|
||||||
|
|
||||||
|
import java.nio.charset.StandardCharsets;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* For testing the CCM modules the Arquillian Persistence extension including
|
* For testing the CCM modules the Arquillian Persistence extension including
|
||||||
|
|
@ -88,7 +90,8 @@ public class DatasetsVerifier {
|
||||||
//Create DB schema
|
//Create DB schema
|
||||||
final Path schemaPath = Paths.get(getClass().getResource(
|
final Path schemaPath = Paths.get(getClass().getResource(
|
||||||
"/sql/ddl/auto/h2.sql").toURI());
|
"/sql/ddl/auto/h2.sql").toURI());
|
||||||
RunScript.execute(connection, Files.newBufferedReader(schemaPath));
|
RunScript.execute(connection, Files.newBufferedReader(
|
||||||
|
schemaPath, StandardCharsets.UTF_8));
|
||||||
connection.commit();
|
connection.commit();
|
||||||
|
|
||||||
//Get dataset to test
|
//Get dataset to test
|
||||||
|
|
|
||||||
5
pom.xml
5
pom.xml
|
|
@ -206,6 +206,11 @@
|
||||||
<artifactId>hibernate4-ddl-maven-plugin</artifactId>
|
<artifactId>hibernate4-ddl-maven-plugin</artifactId>
|
||||||
<version>1.0.0-alpha.2</version>
|
<version>1.0.0-alpha.2</version>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.jboss.tattletale</groupId>
|
||||||
|
<artifactId>tattletale-maven</artifactId>
|
||||||
|
<version>1.1.2.Final</version>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</pluginManagement>
|
</pluginManagement>
|
||||||
</build>
|
</build>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue