TestSyndFeedAtom10prefix.java
/*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
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());
}
}