use of org.olat.fileresource.types.BlogFileResource in project openolat by klemens.
the class FeedFileStorgeTest method getOrCreateItemContainer_guid_Guid_empty.
@Test
public void getOrCreateItemContainer_guid_Guid_empty() {
BlogFileResource resource = new BlogFileResource();
Feed feed = new FeedImpl(resource);
VFSContainer itemContainer = sut.getOrCreateItemContainer(feed, null);
assertThat(itemContainer).isNull();
fileResourceManager.deleteFileResource(resource);
}
use of org.olat.fileresource.types.BlogFileResource in project openolat by klemens.
the class FeedFileStorgeTest method loadItemsFromXML_empty.
@Test
public void loadItemsFromXML_empty() {
BlogFileResource resource = new BlogFileResource();
Feed feed = new FeedImpl(resource);
List<Item> items = sut.loadItemsFromXML(feed);
assertThat(items.size()).isEqualTo(0);
fileResourceManager.deleteFileResource(resource);
}
use of org.olat.fileresource.types.BlogFileResource 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);
}
use of org.olat.fileresource.types.BlogFileResource in project openolat by klemens.
the class FeedFileStorgeTest method getOrCreateItemContainer_create.
@Test
public void getOrCreateItemContainer_create() {
BlogFileResource resource = new BlogFileResource();
Feed feed = new FeedImpl(resource);
Item item = new ItemImpl(feed);
item.setGuid("guid");
VFSContainer itemContainer = sut.getOrCreateItemContainer(item);
assertThat(itemContainer).isNotNull();
fileResourceManager.deleteFileResource(resource);
}
Aggregations