*/
public void testWriteRssOutput() throws XMLStreamException,
FactoryConfigurationError {
{
StringWriter strWriter = new StringWriter();
GOMOutputWriter writer = new GOMStaxWriter(strWriter);
this.updateImpl.writeRssOutput(writer);
assertTrue(strWriter.toString().startsWith("<atom:updated>"));
assertTrue(strWriter.toString().endsWith("</atom:updated>"));
}
{
this.updateImpl.processElementValue(DATE);
StringWriter strWriter = new StringWriter();
GOMOutputWriter writer = new GOMStaxWriter(strWriter);
this.updateImpl.writeRssOutput(writer);
assertEquals("<atom:updated>" + DATE + "</atom:updated>", strWriter
.toString());
}
{
StringWriter strWriter = new StringWriter();
GOMOutputWriter writer = new GOMStaxWriter(strWriter);
this.publishImpl.writeRssOutput(writer);
assertTrue(strWriter.toString().startsWith("<pubDate>"));
assertTrue(strWriter.toString().endsWith("</pubDate>"));
}
{
this.publishImpl.processElementValue(DATE);
StringWriter strWriter = new StringWriter();
GOMOutputWriter writer = new GOMStaxWriter(strWriter);
this.publishImpl.writeRssOutput(writer);
assertEquals("<pubDate>" + DATE_RSS + "</pubDate>", strWriter
.toString());
}