Java Doc for MetaDataEntityLocalHomeTest.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.junit.EMBTestCaseBase
   com.ibm.emb.test.MetaDataEntityLocalHomeTest

MetaDataEntityLocalHomeTest
public class MetaDataEntityLocalHomeTest extends EMBTestCaseBase (Code)
 Line Item: MEB API
 Subcategory 1: javax.emb
 Subcategory 2: MetaDataEntityLocalHome
 



Constructor Summary
public  MetaDataEntityLocalHomeTest(String name)
     Constructor for MetaDataEntityLocalHomeTest.

Method Summary
protected  voidsetUp()
    
public  voidtestEMB165()
    
public  voidtestEMB166()
    
public  voidtestEMB167()
    
public  voidtestEMB168()
    
public  voidtestEMB169()
    


Constructor Detail
MetaDataEntityLocalHomeTest
public MetaDataEntityLocalHomeTest(String name) throws MediaException(Code)
Constructor for MetaDataEntityLocalHomeTest.
Parameters:
  name -




Method Detail
setUp
protected void setUp() throws RemoteException, CreateException(Code)
do initialisation of each individual Test method here this method is called before each individual Test Method



testEMB165
public void testEMB165() throws MediaException, CreateException, RemoteException, NamingException, FinderException, RemoveException(Code)
 Testcase Name: create()
 Testcase Number: EMB165
 setup: create testInstance of MetaDataEntityLocalHome
 test procedure:
 1.call testInstance.create()
 expected result: new meta data entity created
 verify result is not null
 



testEMB166
public void testEMB166() throws EJBException, MediaException, CreateException, RemoteException, NamingException, FinderException, RemoveException(Code)
Testcase Name: findByPrimaryKey(String) Testcase Number: EMB166 setup: create testInstance of MetaDataEntityLocalHome test procedure: 1.call findByPrimaryKey(null) expected result: NullPointerException 2.call create for new meta data entity md1 and get primary key of md1 call testInstance.findByPrimaryKey and pass in primary key of md1 expected result: md1 3.call findByPrimaryKey with random string expected result: javax.ejb.FinderException



testEMB167
public void testEMB167() throws RemoteException, MediaException, NamingException, FinderException(Code)
 Testcase Name: query(String, String, String)
 Testcase Number: EMB167
 setup: create testInstance of MetaDataEntityLocalHome
 include property in configuration file listing all supported query
 languages with a valid query, for each language perform the following
 test procedure:
 1.call query(null, queryLanguage, options)
 expected result: NullPointerException
 2.call query(valid query, queryLanguage, null)
 expected result: no exception, return results in collection (can be empty)
 3.call query(valid query, queryLanguage, options)
 expected result: no exception, return resuls in collection (can be empty)
 4.call query(invalid query, queryLanguage, options)
 expected result: MalformedQueryException
 perform tests 5 & 6 only once
 5.call query(valid query, unsupportedQueryLanguage, options)
 expected result: UnsupportedQueryLanguageException
 6.call query(query, null, options)
 expected result: NullPointerException
 



testEMB168
public void testEMB168() throws RemoteException, MediaException, NamingException(Code)
 Testcase Name: retrieveSupportedOptions(String)
 Testcase Number: EMB168
 setup: create testInstance of MetaDataEntityLocalHome and read in list of
 supported query languages
 test procedure:
 1.for each query language, call retrieveSupportedOptions
 expected result: no exception and not null
 2.call retrieveSupportedOptions(null)
 expected result: NullPointerException
 3.call retrieveSupportedOptions("")
 expected result: UnsupportedQueryLanguageException
 



testEMB169
public void testEMB169() throws RemoteException, MediaException, NamingException(Code)
 Testcase Name: retrieveSupportedQueryLanguages()
 Testcase Number: EMB169
 setup: create testInstance of MetaDataEntityLocalHom and get lists of supported
 query languages from configuration file
 test procedure:
 1.call retrieveSupportedQueryLanguages and compare with array from file
 expected results: arrays match
 



Fields inherited from com.ibm.emb.junit.EMBTestCaseBase
protected EMBTestConfiguration embTestConfig(Code)(Java Doc)

Methods inherited from com.ibm.emb.junit.EMBTestCaseBase
public static byte[] getByteArrayFromFile(File arg) throws IOException(Code)(Java Doc)
public void logProductError(String msg)(Code)(Java Doc)
public static void removeFilesInDir(File srcDir) throws IOException(Code)(Java Doc)
protected void setUp() throws Exception(Code)(Java Doc)
public void succeed(String msg)(Code)(Java Doc)
public void succeed()(Code)(Java Doc)
protected void tearDown() throws Exception(Code)(Java Doc)
public void testError(String msg)(Code)(Java Doc)
public void testLog(String msg)(Code)(Java Doc)
public void testTrace(String msg)(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.