| EMMA Coverage Report (generated Thu Jan 20 11:39:44 EST 2011) |
|---|
| [all classes][com.hammurapi.eventbus.tests] |
| name | class, % | method, % | block, % | line, % |
|---|---|---|---|---|
| StringHandlerWithParameterCondition.java | 100% (1/1) | 100% (4/4) | 100% (21/21) | 100% (6/6) |
| name | class, % | method, % | block, % | line, % |
|---|---|---|---|---|
| class StringHandlerWithParameterCondition | 100% (1/1) | 100% (4/4) | 100% (21/21) | 100% (6/6) |
| StringHandlerWithParameterCondition (): void | 100% (1/1) | 100% (3/3) | 100% (1/1) | |
| getCounter (): int | 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) |
| 1 | package com.hammurapi.eventbus.tests; |
| 2 | |
| 3 | import com.hammurapi.common.Condition; |
| 4 | import com.hammurapi.eventbus.Handler; |
| 5 | |
| 6 | public class StringHandlerWithParameterCondition { |
| 7 | |
| 8 | private int counter; |
| 9 | private boolean ok; |
| 10 | |
| 11 | public int getCounter() { |
| 12 | return counter; |
| 13 | } |
| 14 | |
| 15 | public boolean isOk() { |
| 16 | return ok; |
| 17 | } |
| 18 | |
| 19 | @Handler |
| 20 | public void handle(@Condition("\"Hello\".equals(str)") String str) { |
| 21 | ++counter; |
| 22 | ok = "Hello".equals(str); |
| 23 | } |
| 24 | |
| 25 | } |
| [all classes][com.hammurapi.eventbus.tests] |
| EMMA 2.0.5312 EclEmma Fix 2 (C) Vladimir Roubtsov |