Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
skip MigratorTest on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
thradec committed Aug 6, 2015
1 parent f9b1be8 commit c0da469
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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");

Expand Down

0 comments on commit c0da469

Please sign in to comment.