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

COVERAGE SUMMARY FOR SOURCE FILE [JoinHandlerWithCost.java]

nameclass, %method, %block, %line, %
JoinHandlerWithCost.java100% (1/1)100% (4/4)98%  (52/53)100% (7/7)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class JoinHandlerWithCost100% (1/1)100% (4/4)98%  (52/53)100% (7/7)
join (LocalEventDispatchJoinContext, String, String, int): void 100% (1/1)98%  (43/44)99%  (4/4)
JoinHandlerWithCost (): 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.local.LocalEventDispatchJoinContext;
6 
7public class JoinHandlerWithCost {
8        
9        private int joinCounter;
10        private boolean joinOk;        
11        
12        public boolean isJoinOk() {
13                return joinOk;
14        }
15        
16        public int getJoinCounter() {
17                return joinCounter;
18        }
19 
20        @Handler({
21                        "java(,world,)://world.equals(\"World\")",
22                        "java(hello,world,i)://AND(i+((int) 'A')> (int) hello.charAt(0),i+((int) 'A')< (int) world.charAt(0))"
23                })
24        public void join(
25                        LocalEventDispatchJoinContext<Object, Integer, Object> context, 
26                        @Condition("COST(2*20,\"Hello\".equals(hello))") String hello, 
27                        String world, 
28                        int i) {
29                ++joinCounter;
30                joinOk = "Hello".equals(hello) && "World".equals(world) && i>'H'-'A' && i<'W'-'A';
31                
32                context.post(hello+" "+world+" "+i);
33        }
34}

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