Chapter 4 Generating Hibernate Persistent Objects and JSF Pages


Unit test classes

If there are many persistent classes, it is difficult to test them all to prove that:

Usually, developers have to develop unit tests or user-interfaces in order to test these objects. PowerDesigner can automate this time-consuming process by using the JUnit framework to generate the unit test classes. PowerDesigner can also generate a JSF Web application to allow you to manually test these objects with your own data.

To generate unit test classes, you need to select the Generate test sources option in the Java code generation window.

Some conditions must be met to unit test for a class:

You can run the tests using Eclipse's JUnit integration or Ant.

 


Copyright (C) 2005. Sybase Inc. All rights reserved.