Font Size: a A A

Research And Application Of Unit Testing For J2EE Components Based On Combined Frameworks

Posted on:2006-05-02Degree:MasterType:Thesis
Country:ChinaCandidate:M H ShiFull Text:PDF
GTID:2168360152992314Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
With the spread of Object-Oriented technology in the area of software engineering,the traditional testing technology and method had been made a great impact.The traditional testing technology couldn't take an effective testing on the Object-Oriented software because of the new features of the Object-Oriented technology,especially for the particular features, such as Polymorphism Inheritance .Encapsulation and so on.So the testing strategy and method aimming at the particular features of Object-Oriented software must be considered J2EE is a leading Object-Oriented technology based on components.The research about the unit testing of J2EE components is just on the starting point. In this paper, the problem and difficulty about the unit tests of J2EE components were put forward,based on the studies of the theory and technic for Objected-Oriented software testing and the character of interactant between J2EE components and their containers. Through the careful analysis and comparison of advantages and disadvantages about the combined unit test frameworks, JUnit and its extension frameworks, Mock Objects and Cactus, an integrated scheme to implement the unit test of J2EE components, which had absorbed the merits of those three frameworks, was given. Finally, put the scheme into practical project, that is, "A Management System Platform of Logistic and Dispatching based on the network" and gave several typical testing cases as illustration.Combine the theories of software testing and the author's practices, the paper would be meaningful and can provide a useful reference for implementing J2EE components unit test more quickly and efficiently.
Keywords/Search Tags:unit test, J2EE components, JUnit, Mock Objects, Cactus
PDF Full Text Request
Related items