moltimate / moltimate-backend

A protein active site alignment tool
GNU General Public License v2.0
10 stars 6 forks source link

Mol 3 controller tests #131

Closed kdm5498 closed 4 years ago

kdm5498 commented 4 years ago

Added tests for the Controller package. I was only able to test three of the controller classes, as the others were either trivial in their implementations or only used static service methods and could not be mocked. To facilitate testing, a package private constructor was added onto each of the tested controllers that allow a mocked service object to be injected.