| EMMA Coverage Report (generated Thu Jan 20 11:39:44 EST 2011) |
|---|
| [all classes][com.hammurapi.eventbus.tests] |
| name | class, % | method, % | block, % | line, % |
|---|---|---|---|---|
| OppositeHandler.java | 100% (1/1) | 67% (4/6) | 72% (13/18) | 62% (5/8) |
| name | class, % | method, % | block, % | line, % |
|---|---|---|---|---|
| class OppositeHandler | 100% (1/1) | 67% (4/6) | 72% (13/18) | 62% (5/8) |
| handleInteger (Integer): void | 0% (0/1) | 0% (0/1) | 0% (0/1) | |
| handleOne (String): void | 0% (0/1) | 0% (0/4) | 0% (0/2) | |
| OppositeHandler (): void | 100% (1/1) | 100% (3/3) | 100% (1/1) | |
| handleTwo (String): void | 100% (1/1) | 100% (4/4) | 100% (2/2) | |
| isOneInvoked (): boolean | 100% (1/1) | 100% (3/3) | 100% (1/1) | |
| isTwoInvoked (): 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 OppositeHandler { |
| 7 | |
| 8 | private boolean oneInvoked; |
| 9 | private boolean twoInvoked; |
| 10 | |
| 11 | @Handler |
| 12 | public void handleOne(@Condition("java(*)://str.length()==10 && str.startsWith(\"Hello\")") String str) { |
| 13 | oneInvoked = true; |
| 14 | } |
| 15 | |
| 16 | @Handler("java(*)://AND(s.endsWith(\"world!\"), 10!=s.length())") |
| 17 | public void handleTwo(String s) { |
| 18 | twoInvoked = true; |
| 19 | } |
| 20 | |
| 21 | @Handler("java(*)://i>118") |
| 22 | public void handleInteger(Integer i) { |
| 23 | |
| 24 | } |
| 25 | |
| 26 | public boolean isOneInvoked() { |
| 27 | return oneInvoked; |
| 28 | } |
| 29 | |
| 30 | public boolean isTwoInvoked() { |
| 31 | return twoInvoked; |
| 32 | } |
| 33 | |
| 34 | } |
| [all classes][com.hammurapi.eventbus.tests] |
| EMMA 2.0.5312 EclEmma Fix 2 (C) Vladimir Roubtsov |