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

COVERAGE SUMMARY FOR SOURCE FILE [RetractCommand.java]

nameclass, %method, %block, %line, %
RetractCommand.java100% (1/1)67%  (2/3)43%  (13/30)67%  (4/6)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class RetractCommand100% (1/1)67%  (2/3)43%  (13/30)67%  (4/6)
toString (): String 0%   (0/1)0%   (0/17)0%   (0/2)
RetractCommand (Object [], Object, EventHandler, InferenceContext): void 100% (1/1)100% (10/10)100% (3/3)
getEvents (): Object [] 100% (1/1)100% (3/3)100% (1/1)

1package com.hammurapi.eventbus;
2 
3import java.util.Arrays;
4 
5 
6/**
7 * This command is posted to execution when event is removed from the bus and there are
8 * remove handlers matching the event. 
9 * @author Pavel Vlasov
10 *
11 * @param <E>
12 * @param <P>
13 * @param <C>
14 * @param <H>
15 */
16public class RetractCommand<E, P extends Comparable<P>, C, K, H extends EventBus.Handle<E,P,C>, S extends EventStore<E,P,C,H,S>> extends InferenceCommand<E,P,C,K,H,S> {
17        
18        private E[] events;
19 
20        public RetractCommand(
21                        E[] events, 
22                        K handlerId,
23                        EventHandler<E, P, C, H, S> handler,
24                        InferenceContext<E,P,C,K,H,S> inferenceContext) {
25                super(handlerId, handler,null,inferenceContext);
26                this.events = events;
27        }
28 
29        public E[] getEvents() {
30                return events;
31        }
32 
33        @Override
34        public String toString() {
35                return "RetractCommand [events=" + Arrays.toString(events)
36                                + ", getHandler()=" + getHandler() + "]";
37        }
38 
39        
40}
41        

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