Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Niefer2010-04-12 18:18:56 +0000
committerAndrew Niefer2010-04-12 18:18:56 +0000
commit2e911067afdde1a3153dc49680efb48fd05422ce (patch)
tree30c2aebba5353840900a7bc57014f456e463ecda /bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/simpleconfigurator
parentf79eae3a74746ff8ddd071395e6c4aa3d98ddcc9 (diff)
downloadrt.equinox.p2-2e911067afdde1a3153dc49680efb48fd05422ce.tar.gz
rt.equinox.p2-2e911067afdde1a3153dc49680efb48fd05422ce.tar.xz
rt.equinox.p2-2e911067afdde1a3153dc49680efb48fd05422ce.zip
bug 289644 - bundles.info should be in utf-8v20100416
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/simpleconfigurator')
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/simpleconfigurator/manipulator/SimpleConfiguratorManipulatorTests.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/simpleconfigurator/manipulator/SimpleConfiguratorManipulatorTests.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/simpleconfigurator/manipulator/SimpleConfiguratorManipulatorTests.java
index 40913ec28..1ce5fc218 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/simpleconfigurator/manipulator/SimpleConfiguratorManipulatorTests.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/simpleconfigurator/manipulator/SimpleConfiguratorManipulatorTests.java
@@ -64,4 +64,19 @@ public class SimpleConfiguratorManipulatorTests extends AbstractProvisioningTest
assertEquals(bundles[0].getLocation(), new File(folder, "plu%2Cins/a_1.0.0.jar").toURI());
assertEquals(bundles[1].getLocation(), new File(folder, "plu,ins/b_1.0.0.jar").toURI());
}
+
+ public void testUTF8Encoding() throws Exception {
+ File folder = getTestFolder("utf8Test");
+
+ File configurationFile = new File(folder, "bundle.info");
+
+ BundleInfo[] bundles = new BundleInfo[1];
+ bundles[0] = new BundleInfo("a", "1.0.0", new File(folder, "\u0CA0_\u0CA0.jar").toURI(), BundleInfo.NO_LEVEL, false);
+
+ SimpleConfiguratorManipulator manipulator = new SimpleConfiguratorManipulatorImpl();
+ manipulator.saveConfiguration(bundles, configurationFile, folder.toURI());
+
+ bundles = manipulator.loadConfiguration(new FileInputStream(configurationFile), folder.toURI());
+ assertEquals(bundles[0].getLocation(), new File(folder, "\u0CA0_\u0CA0.jar").toURI());
+ }
}

Back to the top