angular-rest-springsecurity icon indicating copy to clipboard operation
angular-rest-springsecurity copied to clipboard

Add design tests for Hibernate usage guidelines

Open tacianosilva opened this issue 9 years ago • 0 comments

In this PullRequest was added the HibernateDesignTests.java test class that contains design tests.

We wrote design tests for domain model rules (design rules for persistent classes) that are described on documentation of the Hibernate Framework (See in https://docs.jboss.org/hibernate/orm/5.0/userGuide/en-US/html/ch02.html) and on the JPA Specification.

For the implementation of design tests, we use the API DesignWizard (http://designwizard.org/) and the TestNG framework to unit tests (http://testng.org). The DesignWizard extracts the design information from binary code and allows you to write design rules. The TestNG was used to implement the design tests how unit tests. It too allows the use of soft assertions (you can use the JUnit framework, but it doesn't allow soft assertions).

The tests related to the use of java collections should be analyzed and be removed when not used according to the collection (List or Set).

tacianosilva avatar Feb 02 '16 16:02 tacianosilva