| 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
|
MetaDataEntityLocalHomeTest | public MetaDataEntityLocalHomeTest(String name) throws MediaException(Code) | | Constructor for MetaDataEntityLocalHomeTest.
Parameters: name - |
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
|
|
|