| com.ibm.emb.test.MediaFormatTest com.ibm.emb.test.GenericMediaFormatTest
GenericMediaFormatTest | public class GenericMediaFormatTest extends MediaFormatTest (Code) | |
Line Item: MFB API
Subcategory 1: javax.emb
Subcategory 2: GenericMediaFormat
Test class for javax.emb.GenericMediaFormat which extends the
super class MediaFormatTest. These tests are more specific
to the GenericMediaFormat
|
GenericMediaFormatTest | public GenericMediaFormatTest(String name) throws MediaException(Code) | | |
createMediaFormat | public MediaFormat createMediaFormat()(Code) | | |
testEMB020 | public void testEMB020() throws MediaException, MalformedURLException(Code) | |
Testcase Name: assembleContent(URL mediaLocation, MediaSegment[] mediaSegments)
Testcase Number: EMB020
setup:
test procedure:
1.create 2 element segment array
call assembleContent with the segment array created and null as location
expected result: FormatSyntaxException
2.create 0 element segment array
call assembleContent with the segment array created and null as location
expected result: empty byte array
3.create 1 element segment array, fill in random content and valid random child location
call assembleContent with the segment array created and null as location
expected result: FormatSyntaxException
4.call assembleContent with null as segment array and null as location
expected result: NullPointerException
5.create 1 element segment array with null as element
call assembleContent with the segment array created and null as location
expected result: NullPointerException
6.create 1 element segment array, fill in random content null as child location
call assembleContent with the segment array created and null as location
expected result: content equal to the random content passed with the segment array
|
testEMB021 | public void testEMB021() throws MediaException(Code) | |
Testcase Name: disassembleContent(URL mediaLocation, byte[] mediaContent)
Testcase Number: EMB021
setup:
test procedure:
1.call disassembleContent with null as mediaContent and null as location
expected result: NullPointerException
2.create random content byte array
call disassembleContent with the random media content created and null as location
expected result: 1 element segment array containing content equal to random content and null childLocation
|
testEMB022 | public void testEMB022() throws MediaException, IOException(Code) | |
Testcase Name: extractHeader(Media media)
Testcase Number: EMB022
setup:
test procedure:
1.call extractHeader(null)
expected result: NullPointerException
2.create random content, call extractHeader with input stream
expected result: instance of GenericMediaHeader
|
testEMB023 | public void testEMB023() throws MediaException, IOException(Code) | |
Testcase Name: extractProxy(Media media)
Testcase Number: EMB023
setup:
test procedure:
1.call extractProxy passing null
expected result: NullPointerException
2.create random content, call extractProxy with input stream
expected result: instance of Media
|
testEMB024 | public void testEMB024()(Code) | |
Testcase Name: getDefaultMimeType()
Testcase Number: EMB024
setup:
test procedure:
1.call getDefaultMimeType
expected result: Media.MIME_TYPE_UNKNOWN
|
testEMB025 | public void testEMB025()(Code) | |
Testcase Name: isEmbedded()
Testcase Number: EMB025
setup:
test procedure:
1.call isEmbedded
expected result: true
|
testEMB026 | public void testEMB026()(Code) | |
Testcase Name: isStreamingDesirable()
Testcase Number: EMB026
setup:
test procedure:
1.call isStreamingDesirable
expected result: false
|
|
|