Font Size: a A A

Unit Testing Strategies And Methods Of Lightweight J2EE Applications System

Posted on:2011-08-09Degree:MasterType:Thesis
Country:ChinaCandidate:H QuanFull Text:PDF
GTID:2248330338490070Subject:Computer technology
Abstract/Summary:PDF Full Text Request
With the continuous improvement of military reform and informatization construction, the level of military information technology has been raised as well. Each kind of software has been widely used in each troop of PLA. Especially the military software of lightweight J2EE Web architecture has been gradually popularized to each significance areas like operational commanding, teaching training and logistic supporting, making it one of the key components of our army’s information system. Software testing is an important method to guarantee software quality. How to do unit testing of this kind of software in a more convenient and efficient way is increasingly becoming a new issue needing solving urgently.At present, there are many tools, technologies and methods of unit testing but not a unified standard, which makes it difficult to operate and implement in actual engineering development processes, much less a relatively thorough unit testing strategy and method for lightweight J2EE Web architecture software system.To solve this problem, this paper discussed the strategies and methods should be taken for the unit testing in lightweight J2EE Web architecture military software based on the research of basic theories of software quality guarantee, software and unit testing and on the analysis of lightweight J2EE architecture features combining with the unit testing practice of weapon storage information system.Open source testing framework is chosen to test on the feasibility analysis of three kinds of basic methods in unit testing. Maven is used as the build tool in unit testing after the comparison between the two main program build tools -Maven and Ant; after analyzing the difficulties and deficiencies in Junit’s independently doing unit testing of J2EE, we come to the conclusion of combining other open source framework which can efficiently test each layer components and codes with Junit framework.The codes, which need testing, are determined according to the specific analysis of the unit testing of weapon storage information system. In the practice of unit testing of weapon storage information system, JUnit framework is used, Canoo and Spring Mock is integrated into the presentation layer, DbUnit into the Persistence Layer to write unit testing examples, and then all the unit testing examples are run automatically. At last, this paper summarize the unit testing of lightweight J2EE Web architecture application system to reach the conclusion for the strategy and method, procedures of unit testing, which is significance for unit testing of other similarly military software system.
Keywords/Search Tags:Unit testing, Lightweight J2EE, Build tools, Testing frameworks
PDF Full Text Request
Related items