Skip to content

LUI-45. Fixed code. Unable to write tests

Saptarshi Purkayastha requested to merge pull/24/master into master

Created by: bholagabbar

Pull request on the request of Wyclif Lumia.

Have a look at the ForgotPasswordFormControllerTest.java file where I try and execute the tests. The test fails and the error is:

Failed tests: shouldNotNotFailOnNotFoundUsernameTEST(org.openmrs.web.controller.ForgotPasswordFormControllerTest): expected:<[check]> but was:<[What is your grandfather's home town?]?

This means that the user is not being detected and a secret question is being randomly assigned. However, "bruno" is there in the test data. How do I overcome this?

Merge request reports