directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r1746953 - /directory/studio/trunk/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/ImportExportTest.java
Date Sun, 05 Jun 2016 20:59:16 GMT
Author: seelmann
Date: Sun Jun  5 20:59:16 2016
New Revision: 1746953

URL: http://svn.apache.org/viewvc?rev=1746953&view=rev
Log:
Attempt to fix test on Jenkins

Modified:
    directory/studio/trunk/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/ImportExportTest.java

Modified: directory/studio/trunk/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/ImportExportTest.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/ImportExportTest.java?rev=1746953&r1=1746952&r2=1746953&view=diff
==============================================================================
--- directory/studio/trunk/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/ImportExportTest.java
(original)
+++ directory/studio/trunk/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/ImportExportTest.java
Sun Jun  5 20:59:16 2016
@@ -40,6 +40,8 @@ import org.apache.directory.server.core.
 import org.apache.directory.server.core.api.partition.Partition;
 import org.apache.directory.server.core.partition.impl.avl.AvlPartition;
 import org.apache.directory.api.ldap.model.name.Dn;
+import org.apache.directory.studio.ldapbrowser.core.BrowserCoreConstants;
+import org.apache.directory.studio.ldapbrowser.core.BrowserCorePlugin;
 import org.apache.directory.studio.ldapbrowser.core.events.EventRegistry;
 import org.apache.directory.studio.test.integration.ui.bots.BrowserViewBot;
 import org.apache.directory.studio.test.integration.ui.bots.ConnectionsViewBot;
@@ -49,6 +51,7 @@ import org.apache.directory.studio.test.
 import org.apache.directory.studio.test.integration.ui.bots.StudioBot;
 import org.apache.directory.studio.test.integration.ui.bots.utils.FrameworkRunnerWithScreenshotCaptureListener;
 import org.eclipse.core.runtime.Platform;
+import org.eclipse.core.runtime.Preferences;
 import org.junit.After;
 import org.junit.Before;
 import org.junit.Test;
@@ -274,13 +277,17 @@ public class ImportExportTest extends Ab
     @Test
     public void testExportCsvShouldPrefixFormulaWithApostrophe() throws Exception
     {
+        // set CSV encoding explicit to UTF-8, otherwise platform default encoding would
be used
+        Preferences store = BrowserCorePlugin.getDefault().getPluginPreferences();
+        store.setDefault( BrowserCoreConstants.PREFERENCE_FORMAT_CSV_ENCODING, "UTF-8" );
+
         URL url = Platform.getInstanceLocation().getURL();
         final String file = url.getFile() + "ImportExportTest.csv";
         System.out.println( file );
 
         browserViewBot.selectEntry( "DIT", "Root DSE", "ou=system", "ou=users", "cn=Wolfgang
K\u00f6lbel" );
 
-        // export LDIF
+        // export CSV
         ExportWizardBot wizardBot = browserViewBot.openExportCsvWizard();
         assertTrue( wizardBot.isVisible() );
         wizardBot.typeReturningAttributes( "cn, description" );



Mime
View raw message