Package com.rometools.rome.unittest

Source Code of com.rometools.rome.unittest.TestSyndFeedAtom10prefix

package com.rometools.rome.unittest;

import com.rometools.rome.feed.atom.Feed;

public class TestSyndFeedAtom10prefix extends FeedTest {

    public TestSyndFeedAtom10prefix() {
        super("atom_1.0_prefix.xml");
    }

    public void testTitle() throws Exception {
        final Feed feed = (Feed) getWireFeed();
        assertEquals("1", feed.getId());
        assertEquals("xxx1", feed.getOtherLinks().get(0).getRel());
        assertEquals("xxx2", feed.getOtherLinks().get(1).getRel());
        assertEquals("xxx11", feed.getOtherLinks().get(0).getType());
        assertEquals("xxx22", feed.getOtherLinks().get(1).getType());
        assertEquals("http://foo.com/1", feed.getOtherLinks().get(0).getHref());
        assertEquals("http://foo.com/2", feed.getOtherLinks().get(1).getHref());
    }

}
TOP

Related Classes of com.rometools.rome.unittest.TestSyndFeedAtom10prefix

TOP
Copyright © 2018 www.massapi.com. 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.