@Override protected BaseModel<?> updateBaseModel(long primaryKey, ServiceContext serviceContext) throws Exception { JournalArticle article = JournalArticleLocalServiceUtil.getArticle(primaryKey); return JournalTestUtil.updateArticle( article, "Content: Enterprise. Open Source. For Life.", article.getContent(), false, true, serviceContext); }
@Override protected void moveBaseModelToTrash(long primaryKey) throws Exception { JournalArticle article = JournalArticleLocalServiceUtil.getArticle(primaryKey); JournalArticleLocalServiceUtil.moveArticleToTrash(TestPropsValues.getUserId(), article); }
@Override protected BaseModel<?> getBaseModel(long primaryKey) throws Exception { return JournalArticleLocalServiceUtil.getArticle(primaryKey); }