EMMA Coverage Report (generated Mon Dec 10 12:01:41 GMT 2007)
[all classes][uk.co.zonetora.fj.model]

COVERAGE SUMMARY FOR SOURCE FILE [MethodName.java]

nameclass, %method, %block, %line, %
MethodName.java100% (1/1)50%  (2/4)60%  (24/40)62%  (8/13)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class MethodName100% (1/1)50%  (2/4)60%  (24/40)62%  (8/13)
getmethName (): String 0%   (0/1)0%   (0/3)0%   (0/1)
hashCode (): int 0%   (0/1)0%   (0/4)0%   (0/1)
MethodName (String): void 100% (1/1)64%  (9/14)80%  (4/5)
equals (Object): boolean 100% (1/1)79%  (15/19)67%  (4/6)

1package uk.co.zonetora.fj.model;
2 
3public class MethodName {
4 
5        //Newtype String methName
6        private final String methName;
7 
8        public MethodName(String methName) {
9                if (methName == null) {
10                        throw new IllegalArgumentException("methName cannot be null!");
11                }
12                this.methName = methName.intern();
13        }
14 
15        public String getmethName() {
16                return this.methName;
17        }
18 
19        @Override
20        public boolean equals(Object other) {
21                if (this == other) {
22                        return true;
23                }
24 
25                if (other instanceof MethodName) {
26                        MethodName othr = (MethodName) other;
27                        return othr.methName.equals(this.methName);
28                }
29                return false;
30        }
31 
32        @Override
33        public int hashCode() {
34                return methName.hashCode();
35        }
36}

[all classes][uk.co.zonetora.fj.model]
EMMA 2.0.5312 (C) Vladimir Roubtsov