Coverage report

  %line %branch
org.demosys.web.user.action.ShowUsersAction
100% 
100% 

 1  
 /*
 2  
  * Demosys.
 3  
  *
 4  
  * Terms of license - http://opensource.org/licenses/apachepl.php
 5  
  */
 6  
 package org.demosys.web.user.action;
 7  
 import javax.servlet.http.HttpServletRequest;
 8  
 import javax.servlet.http.HttpServletResponse;
 9  
 import org.apache.struts.action.Action;
 10  
 import org.apache.struts.action.ActionForm;
 11  
 import org.apache.struts.action.ActionForward;
 12  
 import org.apache.struts.action.ActionMapping;
 13  
 import org.demosys.web.ServiceLocator;
 14  
 /**
 15  
  * Display all defined users.
 16  
  */
 17  4
 public class ShowUsersAction extends Action {
 18  
     public static final String USERS = "USERS";
 19  
 
 20  
     public ActionForward execute(ActionMapping mapping, ActionForm objForm,
 21  
         HttpServletRequest request, HttpServletResponse res) {
 22  4
         request.setAttribute(USERS,
 23  
             ServiceLocator.getServiceLocator().getUserService().getAllUsers());
 24  
 
 25  4
         return mapping.findForward("success");
 26  
     }
 27  
 }

This report is generated by jcoverage, Maven and Maven JCoverage Plugin.