Java Doc for GenericMediaFormatTest.java in  » J2EE » JOnAS-4.8.6 » com » ibm » emb » test » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » JOnAS 4.8.6 » com.ibm.emb.test 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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
 



Constructor Summary
public  GenericMediaFormatTest(String name)
    

Method Summary
public  MediaFormatcreateMediaFormat()
    
public static  voidmain(String args)
    
public  voidtestEMB020()
    
public  voidtestEMB021()
    
public  voidtestEMB022()
    
public  voidtestEMB023()
    
public  voidtestEMB024()
    
public  voidtestEMB025()
    
public  voidtestEMB026()
    


Constructor Detail
GenericMediaFormatTest
public GenericMediaFormatTest(String name) throws MediaException(Code)




Method Detail
createMediaFormat
public MediaFormat createMediaFormat()(Code)



main
public static void main(String args)(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
 



Methods inherited from com.ibm.emb.test.MediaFormatTest
abstract public MediaFormat createMediaFormat()(Code)(Java Doc)
public static Test stdSuite(String TestCaseImplementor)(Code)(Java Doc)
public void testEMB013() throws MediaException, IOException(Code)(Java Doc)
public void testEMB014() throws MediaException, IOException, ClassNotFoundException, IllegalAccessException, InstantiationException(Code)(Java Doc)
public void testEMB015() throws MediaException, IOException(Code)(Java Doc)
public void testEMB016() throws MediaException, IOException(Code)(Java Doc)
public void testEMB017() throws MediaException(Code)(Java Doc)
public void testEMB018()(Code)(Java Doc)
public void testEMB019()(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.