Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDJ Houghton2008-09-30 15:40:35 +0000
committerDJ Houghton2008-09-30 15:40:35 +0000
commit2e8744bc0f16da670f81e50ca8833528e961bc83 (patch)
tree17480b3ae1e03f92450ad24353b44d4db4ea9878 /bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/core
parentda566574f1a661e1079d0fb9201a1ba29749721e (diff)
downloadrt.equinox.p2-2e8744bc0f16da670f81e50ca8833528e961bc83.tar.gz
rt.equinox.p2-2e8744bc0f16da670f81e50ca8833528e961bc83.tar.xz
rt.equinox.p2-2e8744bc0f16da670f81e50ca8833528e961bc83.zip
Bug 249125 - OrderedProperties and equality
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/core')
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/core/AllTests.java1
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/core/OrderedPropertiesTest.java35
2 files changed, 36 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/core/AllTests.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/core/AllTests.java
index a0f43e9c8..e203587a7 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/core/AllTests.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/core/AllTests.java
@@ -19,6 +19,7 @@ public class AllTests extends TestCase {
public static Test suite() {
TestSuite suite = new TestSuite(AllTests.class.getName());
+ suite.addTestSuite(OrderedPropertiesTest.class);
suite.addTestSuite(URLUtilTest.class);
return suite;
}
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/core/OrderedPropertiesTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/core/OrderedPropertiesTest.java
new file mode 100644
index 000000000..d1b3cf51b
--- /dev/null
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/core/OrderedPropertiesTest.java
@@ -0,0 +1,35 @@
+/*******************************************************************************
+ * Copyright (c) 2008 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.equinox.p2.tests.core;
+
+import org.eclipse.equinox.internal.p2.core.helpers.OrderedProperties;
+import org.eclipse.equinox.p2.tests.AbstractProvisioningTest;
+
+/**
+ * @since 3.5
+ */
+public class OrderedPropertiesTest extends AbstractProvisioningTest {
+
+ public void test_249125() {
+ OrderedProperties one = new OrderedProperties();
+ OrderedProperties two = new OrderedProperties();
+ assertEquals("1.0", one, two);
+
+ one = new OrderedProperties();
+ two = new OrderedProperties(1);
+ assertEquals("1.1", one, two);
+
+ one = new OrderedProperties(1);
+ two = new OrderedProperties();
+ assertEquals("1.2", one, two);
+ }
+
+}

Back to the top