EMMA Coverage Report (generated Thu Jan 20 11:39:44 EST 2011)
[all classes][com.hammurapi.common.extract.tests]

COVERAGE SUMMARY FOR SOURCE FILE [Transaction.java]

nameclass, %method, %block, %line, %
Transaction.java100% (1/1)80%  (4/5)62%  (20/32)69%  (9/13)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class Transaction100% (1/1)80%  (4/5)62%  (20/32)69%  (9/13)
getDate (): Date 0%   (0/1)0%   (0/3)0%   (0/1)
getAmount (): BigDecimal 100% (1/1)40%  (6/15)40%  (2/5)
Transaction (boolean): void 100% (1/1)100% (6/6)100% (3/3)
setAmount (BigDecimal): void 100% (1/1)100% (4/4)100% (2/2)
setDate (Date): void 100% (1/1)100% (4/4)100% (2/2)

1package com.hammurapi.common.extract.tests;
2 
3import java.math.BigDecimal;
4import java.util.Date;
5 
6import com.hammurapi.store.StoreException;
7 
8/**
9 * Test class
10 * @author Pavel Vlasov
11 *
12 */
13public class Transaction {
14        
15        private boolean delayed;
16 
17        public Transaction(boolean delayed) {
18                this.delayed = delayed;
19        }
20 
21        private BigDecimal amount;
22        private Date date;
23        
24        public BigDecimal getAmount() {
25                if (delayed) {
26                        // Artificial delay to test parallel processing.
27                        try {
28                                Thread.sleep(100);
29                        } catch (InterruptedException e) {
30                                throw new StoreException(e);
31                        }
32                }
33                return amount;
34        }
35        public void setAmount(BigDecimal amount) {
36                this.amount = amount;
37        }
38        public Date getDate() {
39                return date;
40        }
41        public void setDate(Date date) {
42                this.date = date;
43        }
44        
45        
46}

[all classes][com.hammurapi.common.extract.tests]
EMMA 2.0.5312 EclEmma Fix 2 (C) Vladimir Roubtsov