Skip to content

Instantly share code, notes, and snippets.

@gauravpaliwal
Created July 28, 2011 16:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gauravpaliwal/1111905 to your computer and use it in GitHub Desktop.
Save gauravpaliwal/1111905 to your computer and use it in GitHub Desktop.
For testing the Portlet in Spring (OpenMRS)
@Test
public void testpopulateModel() throws Exception {
System.out.println("poplulateModel");
SubmitFeedbackController instance = new SubmitFeedbackController();
Map<String, Object> reqmap = new HashMap<String, Object>();
instance.populateModel(request, reqmap) ;
/*to check wheather the data is sent or not binded into the key feedback*/
if (!reqmap.containsKey("predefinedsubjects") || !reqmap.containsKey("severities"))
{
Assert.fail("Do not contain the object predefined subjects and severities") ;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment