Search in sources :

Example 11 with FeedFileResource

use of org.olat.fileresource.types.FeedFileResource in project openolat by klemens.

the class FeedFileStorgeTest method getOrCreateFeedContainer_create.

@Test
public void getOrCreateFeedContainer_create() {
    FeedFileResource ores = new BlogFileResource();
    VFSContainer feedContainer = sut.getOrCreateFeedContainer(ores);
    assertThat(feedContainer).isNotNull();
    fileResourceManager.deleteFileResource(ores);
}
Also used : VFSContainer(org.olat.core.util.vfs.VFSContainer) FeedFileResource(org.olat.fileresource.types.FeedFileResource) BlogFileResource(org.olat.fileresource.types.BlogFileResource) Test(org.junit.Test)

Example 12 with FeedFileResource

use of org.olat.fileresource.types.FeedFileResource in project openolat by klemens.

the class FeedFileStorgeTest method getOrCreateFeedMediaContainer_create.

@Test
public void getOrCreateFeedMediaContainer_create() {
    FeedFileResource ores = new BlogFileResource();
    VFSContainer feedMediaContainer = sut.getOrCreateFeedMediaContainer(ores);
    assertThat(feedMediaContainer).isNotNull();
    fileResourceManager.deleteFileResource(ores);
}
Also used : VFSContainer(org.olat.core.util.vfs.VFSContainer) FeedFileResource(org.olat.fileresource.types.FeedFileResource) BlogFileResource(org.olat.fileresource.types.BlogFileResource) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)12 VFSContainer (org.olat.core.util.vfs.VFSContainer)12 BlogFileResource (org.olat.fileresource.types.BlogFileResource)12 FeedFileResource (org.olat.fileresource.types.FeedFileResource)12