Commit 31843219 authored by Liang Ding's avatar Liang Ding

🎨 #12764

parent 71d51115
......@@ -66,7 +66,5 @@ public class CommentRepositoryImplTestCase extends AbstractTestCase {
Assert.assertEquals(comments.size(), 1);
Assert.assertEquals(commentRepository.getComments("not found", 1, Integer.MAX_VALUE).size(), 0);
Assert.assertEquals(commentRepository.getRecentComments(3).size(), 1);
}
}
......@@ -73,7 +73,7 @@ public class PageRepositoryImplTestCase extends AbstractTestCase {
public void getByPermalink() throws Exception {
final PageRepository pageRepository = getPageRepository();
final JSONObject page1 = pageRepository.getByPermalink("page1 permalink");
final JSONObject page1 = pageRepository.getByPermalink(Latkes.getServePath() + "/p1");
Assert.assertNotNull(page1);
Assert.assertEquals(page1.getString(Page.PAGE_TITLE), "page1 title");
......@@ -124,7 +124,7 @@ public class PageRepositoryImplTestCase extends AbstractTestCase {
pageRepository.add(page);
transaction.commit();
final JSONObject page2 = pageRepository.getByPermalink("page2 permalink");
final JSONObject page2 = pageRepository.getByPermalink(Latkes.getServePath() + "/p2");
Assert.assertNotNull(page2);
final JSONObject page1 = pageRepository.getUpper(page2.getString(Keys.OBJECT_ID));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment