You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by im...@apache.org on 2006/11/07 21:43:27 UTC
svn commit: r472241 -
/myfaces/core/trunk/api/src/test/java/javax/faces/convert/DateTimeConverterTest.java
Author: imario
Date: Tue Nov 7 12:43:26 2006
New Revision: 472241
URL: http://svn.apache.org/viewvc?view=rev&rev=472241
Log:
fixed test case, parsing wrong if test-machine is not in US locale
Modified:
myfaces/core/trunk/api/src/test/java/javax/faces/convert/DateTimeConverterTest.java
Modified: myfaces/core/trunk/api/src/test/java/javax/faces/convert/DateTimeConverterTest.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/test/java/javax/faces/convert/DateTimeConverterTest.java?view=diff&rev=472241&r1=472240&r2=472241
==============================================================================
--- myfaces/core/trunk/api/src/test/java/javax/faces/convert/DateTimeConverterTest.java (original)
+++ myfaces/core/trunk/api/src/test/java/javax/faces/convert/DateTimeConverterTest.java Tue Nov 7 12:43:26 2006
@@ -116,8 +116,8 @@
df.setTimeZone(timeZone);
mock.setType("time");
mock.setTimeZone(timeZone);
- String current = df.format(new Date());
- System.out.println(current);
+ mock.setLocale(Locale.US);
+ String current = df.format(new Date());
UIInput input = new UIInput();
input.setValue(new Date());
Date date = (Date) mock.getAsObject(FacesContext.getCurrentInstance(), input, current);