use of org.olat.modules.fo.portfolio.ForumArtefact in project openolat by klemens.
the class EPArtefactManagerTest method testCreateForumArtefactAlternateVersion.
@Test
public void testCreateForumArtefactAlternateVersion() {
AbstractArtefact artefact = epFrontendManager.createAndPersistArtefact(ident1, "Forum");
assertNotNull(artefact);
assertTrue(artefact instanceof ForumArtefact);
dbInstance.commitAndCloseSession();
assertNotNull(artefact.getKey());
// reload the artefact
AbstractArtefact persistedArtefact = epFrontendManager.loadArtefactByKey(artefact.getKey());
assertNotNull(persistedArtefact);
assertTrue(persistedArtefact instanceof ForumArtefact);
}
Aggregations