openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gerdo...@apache.org
Subject svn commit: r732468 - in /incubator/openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test: unittests/xml/XMLFieldTest.java xml/ComponentForField.java
Date Wed, 07 Jan 2009 20:25:57 GMT
Author: gerdogdu
Date: Wed Jan  7 12:25:56 2009
New Revision: 732468

URL: http://svn.apache.org/viewvc?rev=732468&view=rev
Log:
Date type related XML injection value is updated. SimpleDateFormatting is supported.Thanks
Mark Struberg!

Modified:
    incubator/openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/unittests/xml/XMLFieldTest.java
    incubator/openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/xml/ComponentForField.java

Modified: incubator/openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/unittests/xml/XMLFieldTest.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/unittests/xml/XMLFieldTest.java?rev=732468&r1=732467&r2=732468&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/unittests/xml/XMLFieldTest.java
(original)
+++ incubator/openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/unittests/xml/XMLFieldTest.java
Wed Jan  7 12:25:56 2009
@@ -86,6 +86,8 @@
 			Assert.assertEquals("dskfj", cff.getStrField());
 			Assert.assertNotNull(cff.getDateField());
 			Assert.assertNotNull(cff.getCalendarField());
+			Assert.assertNotNull(cff.getDateField2());
+			Assert.assertNotNull(cff.getCalendarField2());			
 			Assert.assertEquals(ComponentForField.class, cff.getClazzField());
 			Assert.assertNotNull(cff.getListStrField());
 			Assert.assertNotNull(cff.getListEnumField());

Modified: incubator/openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/xml/ComponentForField.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/xml/ComponentForField.java?rev=732468&r1=732467&r2=732468&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/xml/ComponentForField.java
(original)
+++ incubator/openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/xml/ComponentForField.java
Wed Jan  7 12:25:56 2009
@@ -46,6 +46,10 @@
 	
 	private Calendar calendarField;
 	
+	private Date dateField2;
+	
+	private Calendar calendarField2;
+	
 	private Class<?> clazzField;
 	
 	private List<String> listStrField;
@@ -296,5 +300,54 @@
 	{
 		this.listEnumField = listEnumField;
 	}
+
+	/**
+	 * @return the enum1Field
+	 */
+	public XEnum getEnum1Field()
+	{
+		return enum1Field;
+	}
+
+	/**
+	 * @param enum1Field the enum1Field to set
+	 */
+	public void setEnum1Field(XEnum enum1Field)
+	{
+		this.enum1Field = enum1Field;
+	}
+
+	/**
+	 * @return the dateField2
+	 */
+	public Date getDateField2()
+	{
+		return dateField2;
+	}
+
+	/**
+	 * @param dateField2 the dateField2 to set
+	 */
+	public void setDateField2(Date dateField2)
+	{
+		this.dateField2 = dateField2;
+	}
+
+	/**
+	 * @return the calendarField2
+	 */
+	public Calendar getCalendarField2()
+	{
+		return calendarField2;
+	}
+
+	/**
+	 * @param calendarField2 the calendarField2 to set
+	 */
+	public void setCalendarField2(Calendar calendarField2)
+	{
+		this.calendarField2 = calendarField2;
+	}
+	
 	
 }



Mime
View raw message