Test updates

This commit is contained in:
James Agnew 2015-05-12 18:08:10 -04:00
parent 54fdd44189
commit fbcd15a16d
3 changed files with 15 additions and 3 deletions

View File

@ -303,6 +303,17 @@
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<!--
These tests all use a shared database, so it's easier if
they run in a predictable order
-->
<runOrder>alphabetical</runOrder>
</configuration>
</plugin>
<plugin>
<groupId>de.juplo</groupId>
<artifactId>hibernate4-maven-plugin</artifactId>

View File

@ -46,7 +46,9 @@ public class SystemProviderTest {
ourLog.info(response);
}
// TODO: enable!
/**
* This is Gramahe's test transaction - it requires some set up in order to work
*/
// @Test
public void testTransactionFromBundle3() throws Exception {

View File

@ -60,8 +60,7 @@ public class ResourceValidatorTest {
*/
ourDefaultLocale = Locale.getDefault();
Locale[] available = Locale.getAvailableLocales();
Locale newLocale = available[(int)(Math.random() * available.length)];
Locale newLocale = Locale.GERMANY;
Locale.setDefault(newLocale);
ourLog.info("Tests are running in locale: " + newLocale.getDisplayName());