prmr / JetUML

A desktop application for fast UML diagramming.
GNU General Public License v3.0
620 stars 121 forks source link

Removal of canAdd methods in builder + more junit tests to cover up branch coverage #498

Closed RuoyuDeng closed 1 year ago

RuoyuDeng commented 1 year ago

There are several things done in this PR:

  1. Removed the constraints / constraints set in the diagram builder since we do not need them anymore. As a consequence, the associated methods need to be removed as well.
  2. JUnit tests for diagram builder updates since the method canAdd is removed from it.
  3. JUnit tests for all usage scenarios are updated as well since it used to rely on the usage of canAdd method.