Closed ebersold closed 9 years ago
Should we be using Hamcrest matchers instead of TestNG Asserts for consistency reasons? Also I'm thinking of wanting to know how good the branch coverage for these tests is...
Okay, I've checked coverage locally, the following points are still open for testing:
PrefabSet.isChildOf
is also true for grandchildrenSceneNode.isChildOf
is also true for grandchildrenProject.addScenario(null)
should throwProject.addScenario
of a Scenario that is currently part of another Project should reparent.Project.removeScenario
of a Scenario that is currently part of this Project should set that scenario's Project to null
.€dit: updated with results of coverage test after checking both branches combined as per @spidan's comment
The tests for adding scenarios to or removing them from projects are already implemented on the more general feature/model-tests branch.
Should be good now. I was debating whether the parent-sibling case should be a separate test case, but there is such a thing as overdoing it.
Tests for non-trivial getters and setters of model classes.