Package org.opensaml.core.xml.schema
Class XSDateTimeTest
- java.lang.Object
-
- org.opensaml.core.testing.OpenSAMLInitBaseTestCase
-
- org.opensaml.core.testing.XMLObjectBaseTestCase
-
- org.opensaml.core.xml.schema.XSDateTimeTest
-
public class XSDateTimeTest extends XMLObjectBaseTestCase
Unit test forXSDateTime
-
-
Field Summary
Fields Modifier and Type Field Description private InstantexpectedValueprivate QNameexpectedXMLObjectQName-
Fields inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
builderFactory, marshallerFactory, parserPool, simpleXMLObjectQName, unmarshallerFactory
-
-
Constructor Summary
Constructors Constructor Description XSDateTimeTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidsetUp()voidtestMarshall()Tests Marshalling a dateTime type.voidtestUnmarshall()Tests Unmarshalling a dateTime type.voidtestUnmarshallCanonical()Tests Unmarshalling a dateTime type in canonical form, i.e.voidtestUnmarshallNoFractional()Tests Unmarshalling a dateTime type that has no fractional seconds.-
Methods inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
assertXMLEquals, assertXMLEquals, buildXMLObject, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElement, unmarshallElement
-
Methods inherited from class org.opensaml.core.testing.OpenSAMLInitBaseTestCase
initOpenSAML
-
-
-
-
Method Detail
-
testMarshall
public void testMarshall() throws MarshallingException, XMLParserExceptionTests Marshalling a dateTime type.- Throws:
MarshallingException- ...XMLParserException- ...
-
testUnmarshall
public void testUnmarshall() throws XMLParserException, UnmarshallingExceptionTests Unmarshalling a dateTime type.- Throws:
XMLParserException- ...UnmarshallingException- ...
-
testUnmarshallCanonical
public void testUnmarshallCanonical() throws XMLParserException, UnmarshallingExceptionTests Unmarshalling a dateTime type in canonical form, i.e. no trailing zeros in fractional seconds.- Throws:
XMLParserException- ...UnmarshallingException- ...
-
testUnmarshallNoFractional
public void testUnmarshallNoFractional() throws XMLParserException, UnmarshallingExceptionTests Unmarshalling a dateTime type that has no fractional seconds.- Throws:
XMLParserException- ...UnmarshallingException- ...
-
-