Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.
JUnit Transformation
The purpose of the JUnit transformation is to create a Class with test methods for all public methods of an existing Java Class. The resulting Class can then be generated and the tests filled out and run by JUnit.
Example
The Java model originally transformed from the PIM:
After transformation becomes the PSM:
Notes
• | Note that for each Class in the Java model, a corresponding test Class has been created; each of these test Classes contains a test method for every public method in the source Class, plus the methods required to appropriately set up the tests - it is your responsibility to fill in the details of each test |
Learn more
The material ("material" includes all pages, documents and on-line graphics) on this web site is protected by copyright law. (C) 1998-2013 Sparx Systems Pty Ltd.