| | |
| | | */
|
| | | package com.gitblit.tests;
|
| | |
|
| | | import static org.junit.Assert.assertEquals;
|
| | | import static org.junit.Assert.assertTrue;
|
| | |
|
| | | import java.io.ByteArrayOutputStream;
|
| | | import java.util.ArrayList;
|
| | | import java.util.Date;
|
| | |
| | | import com.gitblit.models.FeedEntryModel;
|
| | | import com.gitblit.utils.SyndicationUtils;
|
| | |
|
| | | public class SyndicationUtilsTest {
|
| | | public class SyndicationUtilsTest extends GitblitUnitTest {
|
| | |
|
| | | @Test
|
| | | public void testSyndication() throws Exception {
|
| | |
| | | entries.add(entry);
|
| | | }
|
| | | ByteArrayOutputStream os = new ByteArrayOutputStream();
|
| | | SyndicationUtils.toRSS("http://localhost", "", "Title", "Description", |
| | | SyndicationUtils.toRSS("http://localhost", "", "Title", "Description",
|
| | | entries, os);
|
| | | String feed = os.toString();
|
| | | os.close();
|