Coverage report

  %line %branch
org.demosys.web.project.action.NewProjectAction
0% 
0% 

 1  
 /*
 2  
  * Demosys.
 3  
  *
 4  
  * Terms of license - http://opensource.org/licenses/apachepl.php
 5  
  */
 6  
 package org.demosys.web.project.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  
 import org.demosys.web.project.CreateProjectException;
 15  
 /**
 16  
  * Action pour la création d'un projet
 17  
  *
 18  
  * @author ABOUELF
 19  
  *
 20  
  * @deprecated 11 avril 2003
 21  
  */
 22  0
 public class NewProjectAction extends Action {
 23  
     public ActionForward execute(ActionMapping mapping, ActionForm objForm,
 24  
         HttpServletRequest req, HttpServletResponse res) {
 25  0
         NewProjectForm form = (NewProjectForm)objForm;
 26  
 
 27  0
         String result = null;
 28  
 
 29  
         try {
 30  0
             ServiceLocator.getServiceLocator().getProjectService().newProject(form
 31  
                     .toProjectView());
 32  0
             result = "success";
 33  0
         }
 34  
         catch (CreateProjectException e) {
 35  0
             e.printStackTrace();
 36  0
             result = "failure";
 37  0
         }
 38  
 
 39  0
         return mapping.findForward(result);
 40  
     }
 41  
 }

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