Closed abelhegedus closed 11 years ago
@abelhegedus Yes, those should be reversed. If you check the call hierarchy in Eclipse you can easily find the InverseReferenceTest which tests that specific method. At the moment, the test only checks the size of the result set so it needs to be extended.
True, I did not have the base.test project checked out.
https://github.com/ujhelyiz/EMF-IncQuery-Examples/commit/02cda3ff0dd26db100679ee91e512a3ef7e5c8df InverseReferenceTest asserts the target of the Setting.
@abelhegedus please test this.
Fixed.
The Setting objects returned by NavigationHelper.getInverseReferences(EObject target) (and its variant) are target->source instead of source->target. You can test by comparing with EcoreUtil.UsageCrossReferencer.find().
Relevant lines in NavigationHelperImpl: 258, 275
I see that the methods are tested, but I was unable to find the test case that calls them.