CCM NG: Some more things

git-svn-id: https://svn.libreccm.org/ccm/ccm_ng@3513 8810af33-2d31-482b-a856-94f89814c4df
pull/2/head
jensp 2015-07-01 16:10:45 +00:00
parent 31763e8a3c
commit 40f9b8d79d
2 changed files with 9 additions and 1 deletions

View File

@ -40,6 +40,8 @@ import org.h2.tools.RunScript;
import org.jboss.arquillian.persistence.dbunit.dataset.json.JsonDataSet;
import org.junit.runners.Parameterized;
import java.nio.charset.StandardCharsets;
/**
*
* For testing the CCM modules the Arquillian Persistence extension including
@ -88,7 +90,8 @@ public class DatasetsVerifier {
//Create DB schema
final Path schemaPath = Paths.get(getClass().getResource(
"/sql/ddl/auto/h2.sql").toURI());
RunScript.execute(connection, Files.newBufferedReader(schemaPath));
RunScript.execute(connection, Files.newBufferedReader(
schemaPath, StandardCharsets.UTF_8));
connection.commit();
//Get dataset to test

View File

@ -206,6 +206,11 @@
<artifactId>hibernate4-ddl-maven-plugin</artifactId>
<version>1.0.0-alpha.2</version>
</plugin>
<plugin>
<groupId>org.jboss.tattletale</groupId>
<artifactId>tattletale-maven</artifactId>
<version>1.1.2.Final</version>
</plugin>
</plugins>
</pluginManagement>
</build>