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

COVERAGE SUMMARY FOR SOURCE FILE [PostingHandler.java]

nameclass, %method, %block, %line, %
PostingHandler.java100% (1/1)100% (7/7)100% (45/45)100% (12/12)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class PostingHandler100% (1/1)100% (7/7)100% (45/45)100% (12/12)
PostingHandler (): 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): String 100% (1/1)100% (13/13)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.Handler;
5import com.hammurapi.eventbus.local.LocalEventDispatchContext;
6 
7public class PostingHandler {
8        
9        private int worldCounter;
10        private boolean worldOk;
11        
12        private int emCounter;
13        private boolean emOk;
14        
15        public int getWorldCounter() {
16                return worldCounter;
17        }
18 
19        public boolean isWorldOk() {
20                return worldOk;
21        }
22 
23        public int getEmCounter() {
24                return emCounter;
25        }
26 
27        public boolean isEmOk() {
28                return emOk;
29        }
30 
31        @Handler("java(str)://str.equals(\"World\")")
32        public String handleWorld(String str) {
33                ++worldCounter;
34                worldOk = "World".equals(str);
35                return "!";
36        }
37        
38        @Handler //("\"!\".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("Hello");
43        }
44}

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