Changeset 2189


Ignore:
Timestamp:
09/03/12 09:21:13 (12 years ago)
Author:
twagoo
Message:

Added mandatory 'version' attribute to RSS output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ComponentRegistry/trunk/ComponentRegistry/src/test/java/clarin/cmdi/componentregistry/RssMarshallingTest.java

    r2146 r2189  
    99import clarin.cmdi.componentregistry.rss.RssItem;
    1010import java.io.ByteArrayOutputStream;
     11import java.math.BigDecimal;
    1112import org.junit.Test;
    1213
     
    2425
    2526        final RssChannel channel = new RssChannel();
     27        rss.setVersion(BigDecimal.valueOf(2.0));
    2628        rss.setChannel(channel);
    2729
     
    3941        MDMarshaller.marshal(rss, os);
    4042        String expected = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n"
    41                 + "<rss>\n"
     43                + "<rss version=\"2.0\">\n"
    4244                + "    <channel>\n"
    4345                + "        <item>\n"
Note: See TracChangeset for help on using the changeset viewer.