[forge/core] 9c91a0: Added unit tests for the FieldOperations class.
by Vineet Reynolds
Branch: refs/heads/master
Home: https://github.com/forge/core
Commit: 9c91a050e22101ce2729765c9d71763f79ff0d2d
https://github.com/forge/core/commit/9c91a050e22101ce2729765c9d71763f79ff...
Author: Vineet Reynolds <Vineet.Reynolds(a)gmail.com>
Date: 2014-03-12 (Wed, 12 Mar 2014)
Changed paths:
M javaee/impl/src/main/java/org/jboss/forge/addon/javaee/jpa/FieldOperations.java
M javaee/impl/src/main/java/org/jboss/forge/addon/javaee/jpa/ui/NewFieldRelationshipWizardStep.java
A javaee/tests/src/test/java/org/jboss/forge/addon/javaee/jpa/FieldOperationsTest.java
M javaee/tests/src/test/java/org/jboss/forge/addon/javaee/jpa/NewFieldWizardTest.java
Log Message:
-----------
Added unit tests for the FieldOperations class.
Fixed a couple of issues -
* OneToOne relationships were not being saved.
* Imports were not added for the related type in OneToOne relations
Also removed unwanted method parameters for creating OneToOne and
ManyToOne relationships. These types do not have the concept of
optional=false aka required relationships.
10 years, 9 months