Created
July 28, 2011 16:43
-
-
Save gauravpaliwal/1111905 to your computer and use it in GitHub Desktop.
For testing the Portlet in Spring (OpenMRS)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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