| | |
| | | import org.eclipse.jgit.lib.Repository;
|
| | | import org.eclipse.jgit.revwalk.RevCommit;
|
| | |
|
| | | import com.gitblit.models.SyndicatedEntryModel;
|
| | | import com.gitblit.utils.JGitUtils;
|
| | | import com.gitblit.utils.SyndicationUtils;
|
| | |
|
| | |
| | | assertTrue(feed.indexOf("<title>Title</title>") > -1);
|
| | | assertTrue(feed.indexOf("<description>Description</description>") > -1);
|
| | | }
|
| | |
|
| | | public void testFeedRead() throws Exception {
|
| | | List<SyndicatedEntryModel> feed = SyndicationUtils.readFeed("https://localhost:8443",
|
| | | "ticgit.git", "master", 5, "admin", "admin".toCharArray());
|
| | | assertTrue(feed != null);
|
| | | assertTrue(feed.size() > 0);
|
| | | assertEquals(5, feed.size());
|
| | | }
|
| | | } |