Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Vosburgh2013-10-16 16:33:08 +0000
committerBrian Vosburgh2013-10-16 16:33:08 +0000
commit6726d38906d7d61e952dfade12c98bda28c8b1e4 (patch)
treee817db28a93c36246820ec35d500c3aa067fbc7e
parent5714daf4db29dfa0152bcb649710ad0bb9a6c82a (diff)
downloadwebtools.dali-6726d38906d7d61e952dfade12c98bda28c8b1e4.tar.gz
webtools.dali-6726d38906d7d61e952dfade12c98bda28c8b1e4.tar.xz
webtools.dali-6726d38906d7d61e952dfade12c98bda28c8b1e4.zip
fix ComparatorToolsTests to use "mm/dd/yyyy" (not "mm/dd/yy") dates(!)v201310170209
-rw-r--r--common/tests/org.eclipse.jpt.common.utility.tests/src/org/eclipse/jpt/common/utility/tests/internal/comparator/ComparatorToolsTests.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/tests/org.eclipse.jpt.common.utility.tests/src/org/eclipse/jpt/common/utility/tests/internal/comparator/ComparatorToolsTests.java b/common/tests/org.eclipse.jpt.common.utility.tests/src/org/eclipse/jpt/common/utility/tests/internal/comparator/ComparatorToolsTests.java
index 1b99f554ae..191298d139 100644
--- a/common/tests/org.eclipse.jpt.common.utility.tests/src/org/eclipse/jpt/common/utility/tests/internal/comparator/ComparatorToolsTests.java
+++ b/common/tests/org.eclipse.jpt.common.utility.tests/src/org/eclipse/jpt/common/utility/tests/internal/comparator/ComparatorToolsTests.java
@@ -69,12 +69,12 @@ public class ComparatorToolsTests
public void testComparatorChain() throws Exception {
@SuppressWarnings("unchecked")
Comparator<Person> comparator = ComparatorTools.chain(Person.LAST_NAME_COMPARATOR, Person.FIRST_NAME_COMPARATOR, Person.BIRTH_DATE_COMPARATOR);
- Person john = new Person("John", "Smith", DateFormat.getDateInstance(DateFormat.SHORT).parse("10/11/55"));
- Person jane = new Person("Jane", "Smith", DateFormat.getDateInstance(DateFormat.SHORT).parse("10/11/55"));
+ Person john = new Person("John", "Smith", DateFormat.getDateInstance(DateFormat.SHORT).parse("10/11/1955"));
+ Person jane = new Person("Jane", "Smith", DateFormat.getDateInstance(DateFormat.SHORT).parse("10/11/1955"));
assertTrue(comparator.compare(john, john) == 0);
assertTrue(comparator.compare(jane, john) < 0);
assertTrue(comparator.compare(john, jane) > 0);
- Person oldJohn = new Person("John", "Smith", DateFormat.getDateInstance(DateFormat.SHORT).parse("10/11/33"));
+ Person oldJohn = new Person("John", "Smith", DateFormat.getDateInstance(DateFormat.SHORT).parse("10/11/1933"));
assertTrue(comparator.compare(oldJohn, oldJohn) == 0);
assertTrue(comparator.compare(oldJohn, john) < 0);
assertTrue(comparator.compare(john, oldJohn) > 0);

Back to the top