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

COVERAGE SUMMARY FOR SOURCE FILE [SlowPostingHandler.java]

nameclass, %method, %block, %line, %
SlowPostingHandler.java100% (1/1)100% (4/4)100% (30/30)100% (9/9)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class SlowPostingHandler100% (1/1)100% (4/4)100% (30/30)100% (9/9)
SlowPostingHandler (): void 100% (1/1)100% (3/3)100% (1/1)
getCounter (): int 100% (1/1)100% (3/3)100% (1/1)
handleEm (LocalEventDispatchContext, String): void 100% (1/1)100% (14/14)100% (4/4)
handleWorld (String): String 100% (1/1)100% (10/10)100% (3/3)

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 SlowPostingHandler {
8        
9        private volatile int counter;
10        
11        @Handler("java(str)://str.equals(\"World\")")
12        public String handleWorld(String str) throws InterruptedException {
13                Thread.sleep(50);
14                ++counter;
15                return "!";
16        }
17        
18        @Handler
19        public void handleEm(LocalEventDispatchContext<Object, Integer, Object> context, @Condition("\"!\".equals(str)") String str) throws InterruptedException {
20                Thread.sleep(100);
21                ++counter;
22                context.post("Hello");
23        }
24        
25        public int getCounter() {
26                return counter;
27        }
28}

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