From c0da469fc776176bf73110387ffb96616589a51e Mon Sep 17 00:00:00 2001 From: thradec Date: Thu, 6 Aug 2015 17:35:56 +0200 Subject: [PATCH] skip MigratorTest on windows --- .../jboss/aerogear/unifiedpush/migrator/MigratorTest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/migrator/src/test/java/org/jboss/aerogear/unifiedpush/migrator/MigratorTest.java b/migrator/src/test/java/org/jboss/aerogear/unifiedpush/migrator/MigratorTest.java index b294a5fa37..609a61889f 100644 --- a/migrator/src/test/java/org/jboss/aerogear/unifiedpush/migrator/MigratorTest.java +++ b/migrator/src/test/java/org/jboss/aerogear/unifiedpush/migrator/MigratorTest.java @@ -16,6 +16,9 @@ */ package org.jboss.aerogear.unifiedpush.migrator; +import static liquibase.util.SystemUtils.IS_OS_WINDOWS; +import static org.junit.Assume.assumeTrue; + import liquibase.Liquibase; import liquibase.database.Database; import liquibase.database.DatabaseFactory; @@ -49,6 +52,8 @@ private void initDatabase() throws Exception { String password = System.getProperty("jdbc.password", "unifiedpush"); if (url == null) { + assumeTrue("Skip test on Windows, because mysql-connector-mxj has issue on new versions, see http://stackoverflow.com/questions/9520536/missingresourceexception-running-mxj-for-mysql for more details.", !IS_OS_WINDOWS); + embeddedMysqlDatabase = new EmbeddedMysqlDatabase(); embeddedMysqlDatabase.start("unifiedpush");