Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add design tests for Hibernate usage guidelines #25

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

tacianosilva
Copy link

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant