Package org.geotools.xml.schema.impl

Examples of org.geotools.xml.schema.impl.ElementValueGT


        Date expected;
        String sval;
        Object actual;

        sval = "2012-02-14";
        value = new ElementValue[] { new ElementValueGT(null, sval) };
        actual = dateBinding.getValue(element, value, attrs, hints);
        assertNotNull(actual);
        expected = Converters.convert(sval, java.sql.Date.class);
        assertEquals(expected.getClass().getName() + "[" + expected + "] : "
                + actual.getClass().getName() + "[" + actual + "]", expected, actual);

        sval = "2012-02-14Z";
        value = new ElementValue[] { new ElementValueGT(null, sval) };
        actual = dateBinding.getValue(element, value, attrs, hints);
        assertNotNull(actual);
        expected = Converters.convert(sval, java.sql.Date.class);
        assertEquals(expected.getClass().getName() + "[" + expected + "] : "
                + actual.getClass().getName() + "[" + actual + "]", expected, actual);

        sval = "2011-10-24T10:53:24.200Z";
        value = new ElementValue[] { new ElementValueGT(null, sval) };
        actual = dateBinding.getValue(element, value, attrs, hints);
        assertNotNull(actual);
        expected = Converters.convert(sval, java.sql.Date.class);
        assertEquals(expected.getClass().getName() + "[" + expected + "] : "
                + actual.getClass().getName() + "[" + actual + "]", expected, actual);

        sval = "10:53:24.255+03:00";
        value = new ElementValue[] { new ElementValueGT(null, sval) };
        try {
            dateBinding.getValue(element, value, attrs, hints);
        } catch (SAXException e) {
            assertTrue(true);
        }
View Full Code Here


        java.util.Date expected;
        String sval;
        Object actual;

        sval = "2012-02-14";
        value = new ElementValue[] { new ElementValueGT(null, sval) };
        actual = dateTimeBinding.getValue(element, value, attrs, hints);
        assertNotNull(actual);
        expected = Converters.convert(sval, java.sql.Timestamp.class);
        assertEquals(expected.getClass().getName() + "[" + expected + "] : "
                + actual.getClass().getName() + "[" + actual + "]", expected, actual);

        sval = "2012-02-14Z";
        value = new ElementValue[] { new ElementValueGT(null, sval) };
        actual = dateTimeBinding.getValue(element, value, attrs, hints);
        assertNotNull(actual);
        expected = Converters.convert(sval, java.sql.Timestamp.class);
        assertEquals(expected.getClass().getName() + "[" + expected + "] : "
                + actual.getClass().getName() + "[" + actual + "]", expected, actual);

        sval = "2011-10-24T10:53:24.200Z";
        value = new ElementValue[] { new ElementValueGT(null, sval) };
        actual = dateTimeBinding.getValue(element, value, attrs, hints);
        assertNotNull(actual);
        expected = Converters.convert(sval, java.sql.Timestamp.class);
        assertEquals(expected.getClass().getName() + "[" + expected + "] : "
                + actual.getClass().getName() + "[" + actual + "]", expected, actual);

        sval = "2011-10-24T00:00:00.200+03:00";
        value = new ElementValue[] { new ElementValueGT(null, sval) };
        actual = dateTimeBinding.getValue(element, value, attrs, hints);
        assertNotNull(actual);
        expected = Converters.convert(sval, java.sql.Timestamp.class);
        assertEquals(expected.getClass().getName() + "[" + expected + "] : "
                + actual.getClass().getName() + "[" + actual + "]", expected, actual);

        sval = "10:53:24.255+03:00";
        value = new ElementValue[] { new ElementValueGT(null, sval) };
        try {
            dateTimeBinding.getValue(element, value, attrs, hints);
        } catch (SAXException e) {
            assertTrue(true);
        }
View Full Code Here

        java.util.Date expected;
        String sval;
        Object actual;

        sval = "10:53:24Z";
        value = new ElementValue[] { new ElementValueGT(null, sval) };
        actual = timeBinding.getValue(element, value, attrs, hints);
        assertNotNull(actual);
        expected = Converters.convert(sval, java.sql.Time.class);
        assertEquals(expected.getClass().getName() + "[" + expected + "] : "
                + actual.getClass().getName() + "[" + actual + "]", expected, actual);

        sval = "10:53:24-03:00";
        value = new ElementValue[] { new ElementValueGT(null, sval) };
        actual = timeBinding.getValue(element, value, attrs, hints);
        assertNotNull(actual);
        expected = Converters.convert(sval, java.sql.Time.class);
        assertEquals(expected.getClass().getName() + "[" + expected + "] : "
                + actual.getClass().getName() + "[" + actual + "]", expected, actual);

        sval = "10:53:24.255+03:00";
        value = new ElementValue[] { new ElementValueGT(null, sval) };
        actual = timeBinding.getValue(element, value, attrs, hints);
        assertNotNull(actual);
        expected = Converters.convert(sval, java.sql.Time.class);
        assertEquals(expected.getClass().getName() + "[" + expected + "] : "
                + actual.getClass().getName() + "[" + actual + "]", expected, actual);

        sval = "2012-02-14";
        value = new ElementValue[] { new ElementValueGT(null, sval) };
        try {
            timeBinding.getValue(element, value, attrs, hints);
        } catch (SAXException e) {
            assertTrue(true);
        }
View Full Code Here

TOP

Related Classes of org.geotools.xml.schema.impl.ElementValueGT

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.