FileDataSource_Test |
Create an instance of type FileDataSource, if successfull
then this testcase passes, otherwise it fails.
|
getContentType_Test |
Create an instance of FileDataSource, use it to call getContentType() api,
if this method returns the MIME type of the data in the form of a string,
then this testcase passes, otherwise it fails.
|
getFile_Test |
Create a FileDataSource instance and then use it to call getFile() api,
if this method returns a non-null File object, then this testcase
passes, otherwise it fails.
|
getInputStream_Test |
Create an instance of FileDataSource, use it to invoke getInputStream()
method, if it returns an InputStream representing the data then this
testcase passes, if it throws an appropriate exception then it fails.
|
getName_Test |
Create an instance of FileDataSource class and use it to call getName()
api, if this method returns non-null object then this testcase passes,
otherwise it fails.
|
getOutputStream_Test |
Create an instance of FileDataSource, use it to invoke getOutputStream()
method, if it returns an OutputStream representing the data then this
testcase passes, if it throws an appropriate exception then it fails.
|
setFileTypeMap_Test |
Create an instance of FileDataSource, then use it to call setFileTypeMap()
with {FileTypMap|null} parameter, now call getFileTypeMap(), if the set and
the get values are the same then this testcsae passes, otherwise it fails.
|