Package org.apache.isis.viewer.bdd.common.parsers

Examples of org.apache.isis.viewer.bdd.common.parsers.DateParser


            // otherwise, see if date and if so compare as such
            final DateValueFacet dateValueFacet = resultAdapter.getSpecification().getFacet(DateValueFacet.class);
            if (dateValueFacet != null) {
                final Date resultDate = dateValueFacet.dateValue(resultAdapter);

                final DateParser dateParser = performContext.getDateParser();
                final Date expectedDate = dateParser.parse(expected);
                if (expectedDate != null) {
                    if (expectedDate.compareTo(resultDate) == 0) {
                        return resultAdapter; // ok
                    }
                }
                final String format = dateParser.format(resultDate);
                throw ScenarioBoundValueException.current(arg0Binding, format);
            }

            // otherwise, compare title
            if (!StringUtils.nullSafeEquals(resultTitle, expected)) {
View Full Code Here

TOP

Related Classes of org.apache.isis.viewer.bdd.common.parsers.DateParser

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.