* Tests how the data from the parsed feeds is moved to the feed properties.
*/
public void testUpdateFeed()
throws MalformedURLException
{
Channel channel = new Channel();
channel.setTitle("A");
channel.setDescription("B");
channel.setAuthor("C");
channel.setFormat("D");
channel.setLanguage("E");
channel.setSiteURL(new URL("http://site"));
feed.updateFeed(channel);
assertEquals("Wrong base title.", "A", feed.getBaseTitle());
assertEquals("Wrong base description.", "B", feed.getBaseDescription());
assertEquals("Wrong base author.", "C", feed.getBaseAuthor());
assertEquals("Wrong format.", "D", feed.getFormat());
assertEquals("Wrong language.", "E", feed.getLanguage());
assertEquals("Wrong site URL.", "http://site", feed.getSiteURL().toString());
// Test not overriding by empty values
feed.updateFeed(new Channel());
assertEquals("Wrong base title.", "A", feed.getBaseTitle());
assertEquals("Wrong base description.", "B", feed.getBaseDescription());
assertEquals("Wrong base author.", "C", feed.getBaseAuthor());
assertEquals("Wrong format.", "D", feed.getFormat());