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> </plugins>
</pluginManagement> </pluginManagement>
<plugins> <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> <plugin>
<groupId>de.juplo</groupId> <groupId>de.juplo</groupId>
<artifactId>hibernate4-maven-plugin</artifactId> <artifactId>hibernate4-maven-plugin</artifactId>

View File

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

View File

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