Coverage Report - edu.sampleu.travel.web.form.TravelDocumentForm2
 
Classes in this File Line Coverage Branch Coverage Complexity
TravelDocumentForm2
0%
0/18
N/A
1
 
 1  
 /*
 2  
  * Copyright 2007 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  * http://www.opensource.org/licenses/ecl2.php
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 package edu.sampleu.travel.web.form;
 17  
 
 18  
 import javax.servlet.http.HttpServletRequest;
 19  
 
 20  
 import org.apache.struts.action.ActionMapping;
 21  
 import org.kuali.rice.kew.api.WorkflowDocument;
 22  
 import org.kuali.rice.kns.web.struts.form.KualiTransactionalDocumentFormBase;
 23  
 import org.kuali.rice.kns.web.ui.HeaderField;
 24  
 
 25  
 import edu.sampleu.travel.bo.TravelAccount;
 26  
 import edu.sampleu.travel.document.TravelDocument2;
 27  
 
 28  
 public class TravelDocumentForm2 extends KualiTransactionalDocumentFormBase {
 29  
 
 30  
     @Override
 31  
         public void populateHeaderFields(WorkflowDocument workflowDocument) {
 32  0
                 getDocInfo().clear();
 33  0
                 getDocInfo().addAll(getStandardHeaderFields(workflowDocument));
 34  0
                 getDocInfo().add(new HeaderField("DataDictionary.AttributeReferenceDummy.attributes.initiatorNetworkId", "Yahoo!"));
 35  0
                 getDocInfo().add(new HeaderField("DataDictionary.AttributeReferenceDummy.attributes.initiatorNetworkId", "Yahoo!"));
 36  0
                 getDocInfo().add(new HeaderField("DataDictionary.AttributeReferenceDummy.attributes.initiatorNetworkId", "Yahoo!"));
 37  0
         }
 38  
 
 39  0
         private TravelAccount travelAccount = new TravelAccount();
 40  
 
 41  
     public TravelDocumentForm2() {
 42  0
         super();
 43  0
         this.setDocument(new TravelDocument2());
 44  0
     }
 45  
 
 46  
     /*
 47  
      * Reset method - reset attributes of form retrieved from session otherwise
 48  
      * we will always call docHandler action
 49  
      * @param mapping
 50  
      * @param request
 51  
      */
 52  
     public void reset(ActionMapping mapping, HttpServletRequest request) {
 53  0
         this.setMethodToCall(null);
 54  0
         this.setRefreshCaller(null);
 55  0
         this.setAnchor(null);
 56  0
         this.setCurrentTabIndex(0);
 57  0
     }
 58  
 
 59  
     public TravelAccount getTravelAccount() {
 60  0
         return travelAccount;
 61  
     }
 62  
 
 63  
     public void setTravelAccount(TravelAccount travelAccount) {
 64  0
         this.travelAccount = travelAccount;
 65  0
     }
 66  
 
 67  
 }