@DemoTest @IntegrationTest public class MediaServiceDemoTest extends ServicelayerTransactionalTest
importServicejaloSession| Constructor and Description |
|---|
MediaServiceDemoTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp()
Prepares data for testing - sample media items, media folders, formats, containers, context and other data that
will be used.
|
void |
testAddMediaToContainer()
Here we show how to add new media model to the existing container.
|
void |
testCopyData()
This test demonstrates how to copy data from one media item to other one.
|
void |
testDuplicateData()
Here we demonstrate how to duplicate underlying media data.
|
void |
testGetDataFromMedia()
Demonstrates how to use media service to retrieve byte array that contains data from file assigned to media item.
|
void |
testGetFiles()
Here we have a test that demostrates usage of the method getFiles.
|
void |
testGetMediaByContext()
Here we show how to get corresponding media item byt its context.
|
void |
testGetMediaByFormat()
Here we have other situation with media container.
|
void |
testGetMediaFormatForSourceFormat()
This method demonstrates usage of the method that returns to us target media format for the given source format
from the specified media context.
|
void |
testGetStreamFromMedia()
Demonstrates how to use media service to retrieve input stream that represents file that media item contains.
|
void |
testMoveData()
Test shows how to move data from one media object to another.
|
void |
testRemoveMediaFromContainer()
Here we present very simple method that removes media from container.
|
void |
testSetDataForMedia()
Demonstrates how to use media service to put byte array as data for underlying media file.
|
void |
testSetFolderForMedia()
In this test we set new media folder for selected media.
|
void |
testSetStreamForMedia()
Test demonstrates how to use media service to set input stream into underlying media file.
|
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionestablishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionpublic void setUp()
throws java.lang.Exception
java.lang.Exceptionpublic void testGetStreamFromMedia()
public void testGetDataFromMedia()
public void testSetDataForMedia()
public void testSetStreamForMedia()
public void testSetFolderForMedia()
public void testMoveData()
public void testCopyData()
public void testDuplicateData()
public void testGetMediaByContext()
public void testGetMediaByFormat()
public void testGetFiles()
public void testAddMediaToContainer()
public void testRemoveMediaFromContainer()
public void testGetMediaFormatForSourceFormat()
Copyright © 2018 SAP SE. All Rights Reserved.