发明名称 UNIT TESTING AN ENTERPRISE JAVABEANS (EJB) BEAN CLASS
摘要 An approach for unit testing an Enterprise JavaBeans® (EJB®) bean is presented. A test case for unit testing the EJB® bean is initiated. An indication of a JUnit or an in-container testing mode is received. The unit testing of the EJB® bean in the indicated mode is initiated by injecting the EJB® bean by an injection functionality included in a test framework if the JUnit testing mode is indicated, or by an EJB® container if the in-container testing mode is indicated. A test object in the injected EJB® bean operates business logic on business data by inserting, updating or deleting business data, or by selecting business data to send to a client, thereby generating a set of resulting business data. An assertion operation on the set of resulting business data against expected data determines whether the test case succeeds or fails.
申请公布号 US2014026120(A1) 申请公布日期 2014.01.23
申请号 US201213552870 申请日期 2012.07.19
申请人 GU GENG XIAN;LI HAI DONG;INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 GU GENG XIAN;LI HAI DONG
分类号 G06F9/44 主分类号 G06F9/44
代理机构 代理人
主权项
地址