Clover coverage report - ONess Order Management Model - 0.5-SNAPSHOT
Coverage timestamp: jue ene 6 2005 02:36:20 CET
file stats: LOC: 81   Methods: 6
NCLOC: 27   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
WithParty.java - 100% 100% 100%
coverage
 1    /*
 2    * Copyright 2004 Carlos Sanchez.
 3    *
 4    * Licensed under the Apache 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.apache.org/licenses/LICENSE-2.0
 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 net.sf.oness.order.model.to;
 17   
 18    import java.math.BigDecimal;
 19    import java.util.Collection;
 20   
 21    import net.sf.oness.common.model.to.AuditableTransferObject;
 22    import net.sf.oness.party.model.party.bo.Party;
 23   
 24    /**
 25    * @author Carlos Sanchez
 26    * @version $Revision: 1.2 $
 27    */
 28    public abstract class WithParty extends AuditableTransferObject {
 29   
 30    private Party party;
 31   
 32    private Collection items;
 33   
 34    private BigDecimal amount;
 35   
 36    /**
 37    * @param party
 38    * The party to set.
 39    */
 40  25 public void setParty(Party party) {
 41  25 this.party = party;
 42    }
 43   
 44    /**
 45    * @return Returns the party.
 46    */
 47  10 public Party getParty() {
 48  10 return party;
 49    }
 50   
 51    /**
 52    * @param items
 53    * The items to set.
 54    */
 55  25 public void setItems(Collection items) {
 56  25 this.items = items;
 57    }
 58   
 59    /**
 60    * @return Returns the items.
 61    */
 62  51 public Collection getItems() {
 63  51 return items;
 64    }
 65   
 66    /**
 67    * @param amount
 68    * The amount to set.
 69    */
 70  43 public void setAmount(BigDecimal amount) {
 71  43 this.amount = amount;
 72    }
 73   
 74    /**
 75    * @return Returns the amount.
 76    */
 77  27 public BigDecimal getAmount() {
 78  27 return amount;
 79    }
 80   
 81    }