EMMA Coverage Report (generated Thu Jan 20 11:39:44 EST 2011)
[all classes][com.hammurapi.eventbus.tests]

COVERAGE SUMMARY FOR SOURCE FILE [RemoveHandler.java]

nameclass, %method, %block, %line, %
RemoveHandler.java100% (1/1)100% (7/7)100% (44/44)100% (12/12)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class RemoveHandler100% (1/1)100% (7/7)100% (44/44)100% (12/12)
RemoveHandler (): void 100% (1/1)100% (3/3)100% (1/1)
getEmCounter (): int 100% (1/1)100% (3/3)100% (1/1)
getWorldCounter (): int 100% (1/1)100% (3/3)100% (1/1)
handleEm (LocalEventDispatchContext, String): void 100% (1/1)100% (17/17)100% (4/4)
handleWorld (String): void 100% (1/1)100% (12/12)100% (3/3)
isEmOk (): boolean 100% (1/1)100% (3/3)100% (1/1)
isWorldOk (): boolean 100% (1/1)100% (3/3)100% (1/1)

1package com.hammurapi.eventbus.tests;
2 
3import com.hammurapi.common.Condition;
4import com.hammurapi.eventbus.EventHandlerBase.Mode;
5import com.hammurapi.eventbus.Handler;
6import com.hammurapi.eventbus.local.LocalEventDispatchContext;
7 
8public class RemoveHandler {
9        
10        private int worldCounter;
11        private boolean worldOk;
12        
13        private int emCounter;
14        private boolean emOk;
15        
16        public int getWorldCounter() {
17                return worldCounter;
18        }
19 
20        public boolean isWorldOk() {
21                return worldOk;
22        }
23 
24        public int getEmCounter() {
25                return emCounter;
26        }
27 
28        public boolean isEmOk() {
29                return emOk;
30        }
31 
32        @Handler(value="java(str)://str.equals(\"World\")", mode=Mode.REMOVE)
33        public void handleWorld(String str) {
34                ++worldCounter;
35                worldOk = "World".equals(str);
36        }
37        
38        @Handler(mode=Mode.REMOVE) //("\"!\".equals(args[0])")
39        public void handleEm(LocalEventDispatchContext<Object, Integer, Object> context, @Condition("\"!\".equals(str)") String str) {
40                ++emCounter;
41                emOk = "!".equals(str);
42                context.post("Bye!");
43        }
44        
45        
46}

[all classes][com.hammurapi.eventbus.tests]
EMMA 2.0.5312 EclEmma Fix 2 (C) Vladimir Roubtsov