EMMA Coverage Report (generated Thu Jan 20 11:39:44 EST 2011) |
---|
[all classes][com.hammurapi.eventbus.tests] |
name | class, % | method, % | block, % | line, % |
---|---|---|---|---|
ParameterizedStringHandlerWithMethodCondition.java | 100% (1/1) | 100% (6/6) | 100% (28/28) | 100% (9/9) |
name | class, % | method, % | block, % | line, % |
---|---|---|---|---|
class ParameterizedStringHandlerWithMethodCondition | 100% (1/1) | 100% (6/6) | 100% (28/28) | 100% (9/9) |
ParameterizedStringHandlerWithMethodCondition (): void | 100% (1/1) | 100% (3/3) | 100% (1/1) | |
getCounter (): int | 100% (1/1) | 100% (3/3) | 100% (1/1) | |
getFilterStr (): String | 100% (1/1) | 100% (3/3) | 100% (1/1) | |
handle (String): void | 100% (1/1) | 100% (12/12) | 100% (3/3) | |
isOk (): boolean | 100% (1/1) | 100% (3/3) | 100% (1/1) | |
setFilterStr (String): void | 100% (1/1) | 100% (4/4) | 100% (2/2) |
1 | package com.hammurapi.eventbus.tests; |
2 | |
3 | import com.hammurapi.eventbus.Handler; |
4 | |
5 | public class ParameterizedStringHandlerWithMethodCondition { |
6 | |
7 | private int counter; |
8 | private boolean ok; |
9 | |
10 | public int getCounter() { |
11 | return counter; |
12 | } |
13 | |
14 | public boolean isOk() { |
15 | return ok; |
16 | } |
17 | |
18 | @Handler("java(str)://str.equals(eCtx.getFilterStr())") |
19 | public void handle(String str) { |
20 | ++counter; |
21 | ok = "Hello".equals(str); |
22 | } |
23 | |
24 | private String filterStr; |
25 | |
26 | public String getFilterStr() { |
27 | return filterStr; |
28 | } |
29 | |
30 | public void setFilterStr(String filterStr) { |
31 | this.filterStr = filterStr; |
32 | } |
33 | |
34 | } |
[all classes][com.hammurapi.eventbus.tests] |
EMMA 2.0.5312 EclEmma Fix 2 (C) Vladimir Roubtsov |