Page MenuHomePhabricator

Improve test of mitkNavigationDataSource
Closed, ResolvedPublic

Event Timeline

I started working on this one

I have no idea how to test:

GetOutput(std::string navDataName) and
GetOutputIndex( std::string navDataName )

NavigationDataSource has no setting possibilities, so it is impossible to set a NavigationData and get it (or it's index) by it's name.

Has anyone an idea?

This is right, but perhaps you can test this methods by testing the subclass TrackingDeviceSource. You can use a TrackingDevice with at least one named tool and create a TrackingDeviceSource. Then you can try to get the navigation data by calling the GetOutput(std::string navDataName) method.

[e09939]: Merge branch 'bug-8950-ImproveTestNavigationDataSource'

Merged commits:

2011-09-14 15:54:42 Alfred Franz [4f019a]
added tests for methods which were untested before