| com.ibm.emb.junit.EMBTestCaseBase com.ibm.emb.test.MediaListenerTest
MediaListenerTest | public class MediaListenerTest extends EMBTestCaseBase (Code) | |
Line Item: MEB API
Subcategory 1: javax.emb
Subcategory 2: MediaListener
|
MediaListenerTest | public MediaListenerTest(String name) throws MediaException(Code) | | |
setUp | protected void setUp() throws RemoteException, CreateException(Code) | | initialization of test case (called before each test method)
|
testEMB142 | public void testEMB142() throws IOException, InstantiationException, IllegalAccessException, ClassNotFoundException, FinderException, RemoteException, MediaException, CreateException, NamingException(Code) | |
Testcase Name: handleAboutToChangeMediaEntity(String)
Testcase Number: EMB142
setup: create Media entity me and retrieve list of media listeners
for each, call me1.addListener(listener) and run the following tests
test procedure:
1.call handleAboutToChangeMediaEntity(null)
expected result: NullPointerException
2.call me.setContent(valid content)
expected result: no exception or ListenerVetoException
3.call me.setDescription(random string)
expected result: no exception or ListenerVetoException
4.call me.setLocation(valid local location URL)
expected result: no exception or ListenerVetoException
5.call me.setMimeType("www/unknown")
expected result: no exception or ListenerVetoException
6.call me.setName(newName)
expected result: no exception or ListenerVetoException
|
testEMB143 | public void testEMB143() throws IOException, InstantiationException, IllegalAccessException, ClassNotFoundException, FinderException, RemoteException, MediaException, CreateException, NamingException(Code) | | Testcase Name: handleMediaEntityChanged(String) Testcase Number: EMB143
setup: create Media entity me and retrieve list of media listeners for
each, call me1.addListener(listener) and run the following tests test
procedure: 1.call handleMediaEntityChanged(null) expected result:
NullPointerException 2.call me.setContent(valid content) expected result:
no exception or ListenerVetoException 3.call me.setDescription(random
string) expected result: no exception or ListenerVetoException 4.call
me.setLocation(valid local location URL) expected result: no exception or
ListenerVetoException 5.call me.setMimeType("www/unknown") expected
result: no exception or ListenerVetoException 6.call me.setName(newName)
expected result: no exception or ListenerVetoException
|
testEMB144 | public void testEMB144() throws MalformedURLException, IOException, MediaException, CreateException, InstantiationException, IllegalAccessException, ClassNotFoundException, RemoteException, NamingException, FinderException, RemoveException(Code) | |
Testcase Name: handleAboutToRemoveMediaEntity(MediaEntityLocal)
Testcase Number: EMB144
setup:
test procedure:
1.call handleAboutToRemoveMediaEntity(null)
expected result: NullPointerException
2.try to remove media entity
expected result: no exception or ListenerVetoException
if ListenerVetoException, check media entity was not removed
|
|
|