| com.ibm.emb.test.MediaFormatTest com.ibm.emb.test.mfb.GenericPlayListTest
Method Summary | |
public MediaFormat | createMediaFormat() | public static void | main(String args) | protected void | setUp() | protected void | tearDown() | public void | testTEMB0108SBA() | public void | testTEMB0109SBA()
Testcase Name: assembleContent(URL, MediaSegment[])
Testcase Number: TEMB0109SBA
Test 1:
call disassembleContent and pass in the content of testPlaylist1.lst and "file://myip/embtest/test.lst" as URL
call assembleContent and pass in the result from before and "file://myip/embtest/test.lst" as URL
--> check if no exception occurs
Test 2:
call disassembleContent and pass in the content of test.lst and "file://myip/embtest/test.lst" as URL
call assembleContent and pass in the result from before and null as URL
--> check if no exception occurs
--> check if length of the resulting byte array is larger than the length of the original content
Test 3:
call assembleContent and pass in an empty segment array and null as URL
--> check if no exception occurs
--> check if length of the resulting byte array is 0. | public void | testTEMB0110SBA() | public void | testTEMB0111SBA() | public void | testTEMB0112SBA() | public void | testTEMB0113SBA() |
GenericPlayListTest | public GenericPlayListTest(String name) throws MediaException(Code) | | constructor
|
createMediaFormat | public MediaFormat createMediaFormat()(Code) | | creates an instance of GenericPlaylistFormat with the given Parameters
used in super clas of GenericPlaylistFormatTest
|
setUp | protected void setUp()(Code) | | do initialisation here
|
tearDown | protected void tearDown()(Code) | | freeup resources
|
testTEMB0108SBA | public void testTEMB0108SBA() throws MediaException, MalformedURLException, IOException(Code) | |
Testcase Name: disassembleContent(URL, byte[])
Testcase Number: TEMB0108SBA
Test 1:
call disassembleContent and pass in the content of test.lst and null as URL
--> check for LinkTranslationException
Test 2:
call disassembleContent and pass in the content of test.lst and "file://myip/embtest/test.lst" as URL
--> check result for 3 elements
--> check each element for childLink "file://myip/embtest/test.jpg"
Test 3:
call disassembleContent and pass in "file://foo".getBytes() as content and "file://myip/embtest/test.lst" as URL
--> check for MalformedLocationException
|
testTEMB0109SBA | public void testTEMB0109SBA() throws MediaException, MalformedURLException, IOException(Code) | |
Testcase Name: assembleContent(URL, MediaSegment[])
Testcase Number: TEMB0109SBA
Test 1:
call disassembleContent and pass in the content of testPlaylist1.lst and "file://myip/embtest/test.lst" as URL
call assembleContent and pass in the result from before and "file://myip/embtest/test.lst" as URL
--> check if no exception occurs
Test 2:
call disassembleContent and pass in the content of test.lst and "file://myip/embtest/test.lst" as URL
call assembleContent and pass in the result from before and null as URL
--> check if no exception occurs
--> check if length of the resulting byte array is larger than the length of the original content
Test 3:
call assembleContent and pass in an empty segment array and null as URL
--> check if no exception occurs
--> check if length of the resulting byte array is 0.
|
testTEMB0110SBA | public void testTEMB0110SBA() throws MediaException, RemoteException(Code) | |
Testcase Name: extractSurrogate(Media)
Testcase Number: TEMB0110SBA
Test 1:
call extractSurrogate passing null
check result to be an instance of Media
access the content of the resulting media ----> to verify it is accessible
|
testTEMB0111SBA | public void testTEMB0111SBA()(Code) | |
Testcase Name: isStreamingDesirable()
Testcase Number: TEMB0111SBA
call isStreamingDesirable
--->check if result is true
|
testTEMB0112SBA | public void testTEMB0112SBA() throws MediaException(Code) | |
Testcase Name: getDefaultMimeType()
Testcase Number: TEMB0112SBA
Test 1:
call getDefaultMimeType
--->check if result equals "www/unknown"
|
testTEMB0113SBA | public void testTEMB0113SBA() throws MediaException(Code) | |
Testcase Name: extractHeader(Media)
Testcase Number: TEMB0113SBA
Test 1:
call extractHeader passing null
--> check result to be an instance of GenericMediaHeader
|
|
|