Package com.rometools.rome.feed.module

Examples of com.rometools.rome.feed.module.DCModule


    }

    public void testDublinCoreDateIsPreferredWhenAvailableRatherThanRss20PubDate() throws Exception {
        final SyndFeed feed = this.getCachedSyndFeed();
        final SyndEntry entry = feed.getEntries().get(0);
        final DCModule dc = (DCModule) entry.getModule(DCModule.URI);
        final SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'", Locale.ENGLISH);
        sdf.setTimeZone(TimeZone.getTimeZone("UTC"));
        final Date expected = sdf.parse("2009-03-03T13:06:20Z");
        assertEquals("<dc:date/> element is returned as date, rather than <pubDate/>.", expected, dc.getDate());
    }
View Full Code Here

TOP

Related Classes of com.rometools.rome.feed.module.DCModule

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.