Java Doc for MediaSegmentTest.java in » J2EE » JOnAS-4.8.6 » com » ibm » emb » test » Java Source Code / Java DocumentationJava Source Code and Java Documentation
Testcase Name: getContent()
Testcase Number: EMB033
setup:
test procedure:
1.create random content byte array and pass into setContent()
call getContent()
expected result: content should match original byte array
2.create new media segment and call getContent
expected result: empty byte array
Testcase Name: getChildLocation()
Testcase Number: EMB034
setup:
test procedure:
1.call setChildLoation(null), call getChildLocation()
expected result: null
2.create random URL with "file" protocol, call setChildLocation with random URL
call getChildLocation()
expected result: return same URL
testEMB035
public void testEMB035() throws MediaException(Code)
Testcase Name: setContent(content)
Testcase Number: EMB035
setup:
test procedure
1.call setContent with null
expected result: NullPointerException
2.call setContent with random byte array
call getContent()
expected result: content equal to the random one passed in
Testcase Name: setChildLocation(URL childLocation)
Testcase Number: EMB036
setup:
test procedure:
1.call setChildLocation with null
expected result: NullPointerException
2.call setChildLocation with URL pointing to local machine and protocol type "file"
call getChildLocation()
expected result: content equal to the URL passed before
Fields inherited from com.ibm.emb.junit.EMBTestCaseBase