Search in sources :

Example 6 with FeedFileResource

use of org.olat.fileresource.types.FeedFileResource in project OpenOLAT by OpenOLAT.

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 7 with FeedFileResource

use of org.olat.fileresource.types.FeedFileResource in project OpenOLAT by OpenOLAT.

the class FeedFileStorgeTest method getOrCreateFeedContainer_get.

@Test
public void getOrCreateFeedContainer_get() {
    FeedFileResource ores = new BlogFileResource();
    sut.getOrCreateFeedContainer(ores);
    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 8 with FeedFileResource

use of org.olat.fileresource.types.FeedFileResource in project OpenOLAT by OpenOLAT.

the class FeedFileStorgeTest method getOrCreateFeedItemsContainer_get.

@Test
public void getOrCreateFeedItemsContainer_get() {
    FeedFileResource ores = new BlogFileResource();
    sut.getOrCreateFeedItemsContainer(ores);
    VFSContainer feedItemsContainer = sut.getOrCreateFeedItemsContainer(ores);
    assertThat(feedItemsContainer).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 9 with FeedFileResource

use of org.olat.fileresource.types.FeedFileResource in project OpenOLAT by OpenOLAT.

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)

Example 10 with FeedFileResource

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

the class FeedFileStorgeTest method getOrCreateFeedMediaContainer_get.

@Test
public void getOrCreateFeedMediaContainer_get() {
    FeedFileResource ores = new BlogFileResource();
    sut.getOrCreateFeedMediaContainer(ores);
    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