Java Doc for MediaFormatRegistryTest.java in » J2EE » JOnAS-4.8.6 » com » ibm » emb » test » Java Source Code / Java DocumentationJava Source Code and Java Documentation
public void testEMB027() throws MediaException(Code)
Testcase Name: MediaFormatRegistry.SINGLETON
Testcase Number: EMB027
setup:
test procedure:
1.access MediaFormatRegistry.SINGLETON
expected result: not null
testEMB028
public void testEMB028() throws MediaException(Code)
Testcase Name: bind(String fileExtension, MediaFormat mediaFormat)
Testcase Number: EMB028
setup:
test procedure:
1.access MediaFormatRegistry.SINGLETON
call bind passing null as fileExtension and GenericMediaFormat instance as format
expected resul: NullPointerException
2.access MediaFormatRegistry.SINGLETON
call bind passing random string as fileExtension and null as format
expected result: NullPointerException
3.access MediaFormatRegistry.SINGLETON
call bind passing "TEST1" as fileExtension and GenericMediaFormat instance as format
call bind passing "TEST1" as fileExtension and other GenericMediaFormat instance as format
expected result: FormatAlreadyBoundException on second call
4.bind passing valid file extension and GenericMediaFormat
call lookup on file extenstion
expected result: instance of GenericMediaFormat
5.bind empty string with GenericMediaFormat
expected result: no exception and lookup("") returns instance of GenericMediaFormat
testEMB029
public void testEMB029() throws MediaException(Code)
Testcase Name: getFileExtensions()
Testcase Number: EMB029
setup:
test procedure:
1.access MediaFormatRegistry.SINGLETON
bind fileExtensions "test1", "test2", and "test3" to GenericMediaFormat
call getFileExtensions
expected result: list contains test1, test2, test3
testEMB030
public void testEMB030() throws MediaException(Code)
public void testEMB031() throws MediaException(Code)
Testcase Name: rebind(String fileExtension, MediaFormat mediaFormat)
Testcase Number: EMB031
setup:
test procedure:
1.call rebind with null fileExtension and instance of GenericMediaFormat
expected result: NullPointerException
2.call rebind with random string and null format
expected result: NullPointerException
3.call bind with fileExtension "test" and JpegFormat
call rebind with fileExtension "test" and BmpFormat
call lookup("test")
expected result: instance of BmpFormat
4.call unbind with random fileExtension
call rebind with random fileExtension and GenericMediaFormat
call lookup with fileExtension
expected result: instance of GenericMediaFormat
testEMB032
public void testEMB032() throws MediaException(Code)