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

COVERAGE SUMMARY FOR SOURCE FILE [JoinRemoveHandler.java]

nameclass, %method, %block, %line, %
JoinRemoveHandler.java100% (1/1)100% (4/4)97%  (33/34)99%  (6/6)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class JoinRemoveHandler100% (1/1)100% (4/4)97%  (33/34)99%  (6/6)
join (LocalEventDispatchJoinContext, String, String): void 100% (1/1)96%  (24/25)99%  (3/3)
JoinRemoveHandler (): void 100% (1/1)100% (3/3)100% (1/1)
getJoinCounter (): int 100% (1/1)100% (3/3)100% (1/1)
isJoinOk (): 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.EventHandlerBase.Mode;
6import com.hammurapi.eventbus.local.LocalEventDispatchJoinContext;
7 
8public class JoinRemoveHandler {
9                
10        private int joinCounter;
11        private boolean joinOk;        
12        
13        public boolean isJoinOk() {
14                return joinOk;
15        }
16        
17        public int getJoinCounter() {
18                return joinCounter;
19        }
20 
21        @Handler(mode=Mode.REMOVE, value="java(*)://world.equals(\"World\")")
22        public void join(
23                        LocalEventDispatchJoinContext<Object, Integer, Object> context, 
24                        @Condition("\"Hello\".equals(hello)") String hello, 
25                        String world) {
26                ++joinCounter;
27                joinOk = "Hello".equals(hello) && "World".equals(world) && Mode.REMOVE.equals(context.getMode());
28        }
29}

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