Clover coverage report - example-web - 0.6
Coverage timestamp: Wed Jun 30 2004 20:06:20 EDT
file stats: LOC: 142   Methods: 21
NCLOC: 81   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
CartForm.java - 0% 0% 0%
coverage
 1   
 /*
 2   
  * CartForm.java
 3   
  * Copyright 2002-2004 Bill2, Inc.
 4   
  *
 5   
  * Licensed under the Apache License, Version 2.0 (the "License");
 6   
  * you may not use this file except in compliance with the License.
 7   
  * You may obtain a copy of the License at
 8   
  *
 9   
  *     http://www.apache.org/licenses/LICENSE-2.0
 10   
  *
 11   
  * Unless required by applicable law or agreed to in writing, software
 12   
  * distributed under the License is distributed on an "AS IS" BASIS,
 13   
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 14   
  * See the License for the specific language governing permissions and
 15   
  * limitations under the License.
 16   
  */
 17   
 
 18   
 package example.web.form;
 19   
 
 20   
 import org.apache.struts.action.ActionForm;
 21   
 import org.apache.struts.action.ActionMapping;
 22   
 
 23   
 import javax.servlet.http.HttpServletRequest;
 24   
 
 25   
 import example.entity.CreditCard;
 26   
 import example.entity.Address;
 27   
 
 28   
 /**
 29   
  * @struts.form name="cartForm"
 30   
  * @author topping
 31   
  * @version $Revision: 1.4 $
 32   
  */
 33   
 public class CartForm extends ActionForm {
 34   
     private int page;
 35   
     private String action;
 36   
     private int quantity;
 37   
     private String sku;
 38   
     private Address billingAddress;
 39   
     private Address shippingAddress;
 40   
     private String email;
 41   
     private CreditCard creditCard;
 42   
 //    private String cardOwnerName;
 43   
 //    private int cardType;
 44   
 //    private String cardNumber;
 45   
 //    private int expMonth;
 46   
 //    private int expYear;
 47   
 //    private String CVV;
 48   
     private String shippingMethodCode;
 49   
     private boolean billingSameAsShipping = true;
 50   
 
 51   
     // page: which page in the cart flow are we on
 52  0
     public int getPage() {
 53  0
         return page;
 54   
     }
 55   
 
 56  0
     public void setPage(int page) {
 57  0
         this.page = page;
 58   
     }
 59   
 
 60   
     // action: which button was clicked, in case of multiple buttons
 61  0
     public String getAction() {
 62  0
         return action;
 63   
     }
 64   
 
 65  0
     public void setAction(String action) {
 66  0
         this.action = action;
 67   
     }
 68   
 
 69   
     // quantity: quantity of product being added to cart
 70  0
     public int getQuantity() {
 71  0
         return quantity;
 72   
     }
 73   
 
 74  0
     public void setQuantity(int quantity) {
 75  0
         this.quantity = quantity;
 76   
     }
 77   
 
 78   
     // sku: sku of proiduct being added to cart
 79  0
     public String getSku() {
 80  0
         return sku;
 81   
     }
 82   
 
 83  0
     public void setSku(String sku) {
 84  0
         this.sku = sku;
 85   
     }
 86   
 
 87  0
     public Address getBillingAddress() {
 88  0
         return billingAddress;
 89   
     }
 90   
 
 91  0
     public void reset(ActionMapping actionMapping, HttpServletRequest httpServletRequest) {
 92  0
         billingSameAsShipping = false;
 93   
     }
 94   
 
 95  0
     public void setBillingAddress(Address billingAddress) {
 96  0
         this.billingAddress = billingAddress;
 97   
     }
 98   
 
 99  0
     public Address getShippingAddress() {
 100  0
         return shippingAddress;
 101   
     }
 102   
 
 103  0
     public void setShippingAddress(Address shippingAddress) {
 104  0
         this.shippingAddress = shippingAddress;
 105   
     }
 106   
 
 107  0
     public boolean isBillingSameAsShipping() {
 108  0
         return billingSameAsShipping;
 109   
     }
 110   
 
 111  0
     public void setBillingSameAsShipping(boolean billingSameAsShipping) {
 112  0
         this.billingSameAsShipping = billingSameAsShipping;
 113   
     }
 114   
 
 115  0
     public String getEmail() {
 116  0
         return email;
 117   
     }
 118   
 
 119  0
     public void setEmail(String email) {
 120  0
         this.email = email;
 121   
     }
 122   
 
 123  0
     public String getShippingMethodCode() {
 124  0
         return shippingMethodCode;
 125   
     }
 126   
 
 127  0
     public void setShippingMethodCode(String shippingMethodCode) {
 128  0
         this.shippingMethodCode = shippingMethodCode;
 129   
     }
 130   
 
 131   
     // credit card related stuff
 132   
 
 133  0
     public CreditCard getCreditCard() {
 134  0
         return creditCard;
 135   
     }
 136   
 
 137  0
     public void setCreditCard(CreditCard creditCard) {
 138  0
         this.creditCard = creditCard;
 139   
     }
 140   
 
 141   
 }
 142