use of org.olat.fileresource.types.BlogFileResource in project openolat by klemens.
the class FeedFileStorgeTest method getOrCreateItemMediaContainer_get.
@Test
public void getOrCreateItemMediaContainer_get() {
BlogFileResource resource = new BlogFileResource();
Feed feed = new FeedImpl(resource);
Item item = new ItemImpl(feed);
item.setGuid("guid");
sut.getOrCreateItemMediaContainer(item);
VFSContainer itemMediaContainer = sut.getOrCreateItemMediaContainer(item);
assertThat(itemMediaContainer).isNotNull();
fileResourceManager.deleteFileResource(resource);
}
use of org.olat.fileresource.types.BlogFileResource in project openolat by klemens.
the class FeedFileStorgeTest method loadFeedFromXML_Ores_not_existing.
@Test
public void loadFeedFromXML_Ores_not_existing() {
BlogFileResource resource = new BlogFileResource();
Feed reloaded = sut.loadFeedFromXML(resource);
assertThat(reloaded).isNull();
fileResourceManager.deleteFileResource(resource);
}
use of org.olat.fileresource.types.BlogFileResource 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);
}
use of org.olat.fileresource.types.BlogFileResource 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);
}
use of org.olat.fileresource.types.BlogFileResource in project openolat by klemens.
the class FeedFileStorgeTest method getOrCreateItemContainer_guid_get.
@Test
public void getOrCreateItemContainer_guid_get() {
BlogFileResource resource = new BlogFileResource();
Feed feed = new FeedImpl(resource);
String guid = "guid 123";
sut.getOrCreateItemContainer(feed, guid);
VFSContainer itemContainer = sut.getOrCreateItemContainer(feed, guid);
assertThat(itemContainer).isNotNull();
fileResourceManager.deleteFileResource(resource);
}
Aggregations