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

COVERAGE SUMMARY FOR SOURCE FILE [ComplexHandler.java]

nameclass, %method, %block, %line, %
ComplexHandler.java0%   (0/1)0%   (0/5)0%   (0/73)0%   (0/13)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ComplexHandler0%   (0/1)0%   (0/5)0%   (0/73)0%   (0/13)
ComplexHandler (): void 0%   (0/1)0%   (0/3)0%   (0/1)
handle (Integer): void 0%   (0/1)0%   (0/14)0%   (0/2)
handle (LocalEventDispatchContext, String): void 0%   (0/1)0%   (0/25)0%   (0/5)
handle (String): String 0%   (0/1)0%   (0/15)0%   (0/2)
handle (String, Integer): void 0%   (0/1)0%   (0/16)0%   (0/3)

1package com.hammurapi.eventbus.tests;
2 
3import com.hammurapi.eventbus.Handler;
4import com.hammurapi.eventbus.local.LocalEventDispatchContext;
5 
6public class ComplexHandler {
7        
8        @Handler
9        public void handle(LocalEventDispatchContext<Object, Integer, ?> ctx, String str) throws InterruptedException {
10                System.out.println("Handling with context '"+str+"' in "+Thread.currentThread());
11                if ("mama".equals(str)) {
12                        ctx.post("papa");
13                }
14                Thread.sleep(100);
15        }
16        
17        @Handler("java(str)://\"papa\".equals(str)")
18        public String handle(String str) {
19                System.out.println("Handling '"+str+"' in "+Thread.currentThread());
20                return "grand";
21        }
22        
23        @Handler
24        public void handle(Integer num) {
25                System.out.println("Handling '"+num+"' in "+Thread.currentThread());
26        }        
27        
28        @Handler
29        public void handle(String str, Integer num) throws InterruptedException {
30                System.out.println("Joining "+str+" and "+num);
31                Thread.sleep(100);
32        }
33 
34}

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