-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
4 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,8 +53,6 @@ | |
import org.exoplatform.wiki.service.WikiPageParams; | ||
import org.exoplatform.wiki.utils.NoteConstants; | ||
|
||
import static org.exoplatform.social.core.jpa.test.AbstractCoreTest.persist; | ||
|
||
/** | ||
* Created by The eXo Platform SAS Author : eXoPlatform [email protected] | ||
* 9/8/15 | ||
|
@@ -1161,7 +1159,7 @@ public void testDeleteOrphanDraftPagesByParentPage() throws Exception { | |
draft = draftPageDAO.create(draft); | ||
assertNotNull(draft); | ||
storage.deleteOrphanDraftPagesByParentPage(Long.parseLong(wiki.getWikiHome().getId())); | ||
persist(); | ||
restartTransaction(); | ||
assertNull(draftPageDAO.find(draft.getId())); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,8 +30,6 @@ | |
import org.exoplatform.wiki.jpa.entity.PageEntity; | ||
import org.exoplatform.wiki.jpa.entity.WikiEntity; | ||
|
||
import static org.exoplatform.social.core.jpa.test.AbstractCoreTest.persist; | ||
|
||
/** | ||
* Created by The eXo Platform SAS Author : eXoPlatform [email protected] Jun | ||
* 26, 2015 | ||
|
@@ -348,7 +346,7 @@ public void testFindLatestDraftPageByTargetPage() throws InterruptedException { | |
dp1.setCreatedDate(new Date()); | ||
dp1.setUpdatedDate(new Date()); | ||
draftPageDAO.create(dp1); | ||
persist(); | ||
restartTransaction(); | ||
|
||
// Added to fix random fail when draft pages | ||
// are added at the same time | ||
|
@@ -361,7 +359,7 @@ public void testFindLatestDraftPageByTargetPage() throws InterruptedException { | |
dp2.setCreatedDate(new Date()); | ||
dp2.setUpdatedDate(new Date()); | ||
draftPageDAO.create(dp2); | ||
persist(); | ||
restartTransaction(); | ||
|
||
// When | ||
DraftPageEntity latestDraft = draftPageDAO.findLatestDraftPageByTargetPage(page.getId()); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters