Author: adietish
Date: 2011-02-08 12:27:53 -0500 (Tue, 08 Feb 2011)
New Revision: 29068
Modified:
trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/src/org/jboss/tools/internal/deltacloud/test/ui/preferences/StringsPreferenceValueTest.java
Log:
[JBIDE-8357]
Modified:
trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/src/org/jboss/tools/internal/deltacloud/test/ui/preferences/StringsPreferenceValueTest.java
===================================================================
---
trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/src/org/jboss/tools/internal/deltacloud/test/ui/preferences/StringsPreferenceValueTest.java 2011-02-08
17:27:38 UTC (rev 29067)
+++
trunk/deltacloud/tests/org.jboss.tools.deltacloud.test/src/org/jboss/tools/internal/deltacloud/test/ui/preferences/StringsPreferenceValueTest.java 2011-02-08
17:27:53 UTC (rev 29068)
@@ -79,4 +79,16 @@
stringValues.add(DELIMITER + "");
assertEquals(2, stringValues.get().length);
}
+
+ @Test
+ public void delimiterValueIsReturnedCorrectly() {
+ stringValues.add("11");
+ assertEquals(1, stringValues.get().length);
+ String delimiterValue = DELIMITER + "";
+ stringValues.add(delimiterValue);
+ String[] values = stringValues.get();
+ assertEquals(2, values.length);
+ values[1] = delimiterValue;
+ }
+
}
Show replies by date