You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by fa...@apache.org on 2022/05/17 15:10:46 UTC
svn commit: r1900987 - in /xmlbeans/trunk/src: main/java/org/apache/xmlbeans/XmlOptions.java test/java/xmlcursor/xpath/complex/detailed/TypesTest.java
Author: fanningpj
Date: Tue May 17 15:10:46 2022
New Revision: 1900987
URL: http://svn.apache.org/viewvc?rev=1900987&view=rev
Log:
spelling
Modified:
xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlOptions.java
xmlbeans/trunk/src/test/java/xmlcursor/xpath/complex/detailed/TypesTest.java
Modified: xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlOptions.java
URL: http://svn.apache.org/viewvc/xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlOptions.java?rev=1900987&r1=1900986&r2=1900987&view=diff
==============================================================================
--- xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlOptions.java (original)
+++ xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlOptions.java Tue May 17 15:10:46 2022
@@ -86,7 +86,7 @@ public class XmlOptions implements java.
// Complete set of XmlOption's
//
- // TODO - Add selectPath option to track the seletion (default is to clean selections fast).
+ // TODO - Add selectPath option to track the selection (default is to clean selections fast).
public enum XmlOptionsKeys {
SAVE_NAMESPACES_FIRST,
SAVE_SYNTHETIC_DOCUMENT_ELEMENT,
Modified: xmlbeans/trunk/src/test/java/xmlcursor/xpath/complex/detailed/TypesTest.java
URL: http://svn.apache.org/viewvc/xmlbeans/trunk/src/test/java/xmlcursor/xpath/complex/detailed/TypesTest.java?rev=1900987&r1=1900986&r2=1900987&view=diff
==============================================================================
--- xmlbeans/trunk/src/test/java/xmlcursor/xpath/complex/detailed/TypesTest.java (original)
+++ xmlbeans/trunk/src/test/java/xmlcursor/xpath/complex/detailed/TypesTest.java Tue May 17 15:10:46 2022
@@ -20,6 +20,7 @@ import org.junit.jupiter.api.Test;
import java.time.OffsetDateTime;
import java.util.Calendar;
+import java.util.Date;
import static org.junit.jupiter.api.Assertions.assertEquals;
@@ -116,6 +117,16 @@ public class TypesTest {
}
@Test
+ void testGDateTime() {
+ XmlDateTime xmlDateTime = XmlDateTime.Factory.newInstance();
+ xmlDateTime.setDateValue(new Date());
+ GDate gdate = xmlDateTime.getGDateValue();
+ Date date = gdate.getDate();
+ System.out.println(gdate);
+ System.out.println(date);
+ }
+
+ @Test
void testDecimal() {
XmlObject[] res = o.selectPath("seconds-from-dateTime(xs:dateTime('1997-07-16T19:20:30+01:00'))");
assertEquals(1, res.length);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org