EMMA Coverage Report (generated Thu Jan 20 11:39:44 EST 2011) |
---|
[all classes][com.hammurapi.eventbus.tests] |
name | class, % | method, % | block, % | line, % |
---|---|---|---|---|
MoreRestrictiveHandler.java | 100% (1/1) | 80% (4/5) | 76% (13/17) | 71% (5/7) |
name | class, % | method, % | block, % | line, % |
---|---|---|---|---|
class MoreRestrictiveHandler | 100% (1/1) | 80% (4/5) | 76% (13/17) | 71% (5/7) |
handleList (List): void | 0% (0/1) | 0% (0/4) | 0% (0/2) | |
MoreRestrictiveHandler (): void | 100% (1/1) | 100% (3/3) | 100% (1/1) | |
handleCollection (Collection): void | 100% (1/1) | 100% (4/4) | 100% (2/2) | |
isCollectionInvoked (): boolean | 100% (1/1) | 100% (3/3) | 100% (1/1) | |
isListInvoked (): boolean | 100% (1/1) | 100% (3/3) | 100% (1/1) |
1 | package com.hammurapi.eventbus.tests; |
2 | |
3 | import java.util.Collection; |
4 | import java.util.List; |
5 | |
6 | import com.hammurapi.eventbus.Handler; |
7 | |
8 | public class MoreRestrictiveHandler { |
9 | |
10 | private boolean listInvoked; |
11 | private boolean handleInvoked; |
12 | |
13 | @Handler |
14 | public void handleList(List<?> list) { |
15 | listInvoked = true; |
16 | } |
17 | |
18 | @Handler |
19 | public void handleCollection(Collection<?> collection) { |
20 | handleInvoked = true; |
21 | } |
22 | |
23 | public boolean isListInvoked() { |
24 | return listInvoked; |
25 | } |
26 | |
27 | public boolean isCollectionInvoked() { |
28 | return handleInvoked; |
29 | } |
30 | |
31 | } |
[all classes][com.hammurapi.eventbus.tests] |
EMMA 2.0.5312 EclEmma Fix 2 (C) Vladimir Roubtsov |