You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2019/09/27 06:45:59 UTC

[syncope] branch 2_0_X updated: [SYNCOPE-1498] Fix CLI test

This is an automated email from the ASF dual-hosted git repository.

ilgrosso pushed a commit to branch 2_0_X
in repository https://gitbox.apache.org/repos/asf/syncope.git


The following commit(s) were added to refs/heads/2_0_X by this push:
     new d7c2b6b  [SYNCOPE-1498] Fix CLI test
d7c2b6b is described below

commit d7c2b6b02bbad66a32017c15d2950ec666e37982
Author: Francesco Chicchiriccò <il...@apache.org>
AuthorDate: Fri Sep 27 08:45:24 2019 +0200

    [SYNCOPE-1498] Fix CLI test
---
 .../test/java/org/apache/syncope/client/cli/commands/MigrateTest.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/client/cli/src/test/java/org/apache/syncope/client/cli/commands/MigrateTest.java b/client/cli/src/test/java/org/apache/syncope/client/cli/commands/MigrateTest.java
index a2be175..0406cfa 100644
--- a/client/cli/src/test/java/org/apache/syncope/client/cli/commands/MigrateTest.java
+++ b/client/cli/src/test/java/org/apache/syncope/client/cli/commands/MigrateTest.java
@@ -34,6 +34,7 @@ import org.apache.syncope.client.cli.commands.migrate.MigrateCommand;
 import org.apache.syncope.core.persistence.jpa.content.ContentLoaderHandler;
 import org.junit.BeforeClass;
 import org.junit.Test;
+import org.springframework.core.env.StandardEnvironment;
 import org.springframework.core.io.ClassPathResource;
 import org.springframework.jdbc.datasource.DriverManagerDataSource;
 import org.springframework.jdbc.datasource.init.ResourceDatabasePopulator;
@@ -77,7 +78,7 @@ public class MigrateTest {
         SAXParserFactory factory = SAXParserFactory.newInstance();
         try (InputStream in = new FileInputStream(args[3])) {
             SAXParser parser = factory.newSAXParser();
-            parser.parse(in, new ContentLoaderHandler(dataSource, ROOT_ELEMENT, false));
+            parser.parse(in, new ContentLoaderHandler(dataSource, ROOT_ELEMENT, false, new StandardEnvironment()));
         }
     }
 }