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

COVERAGE SUMMARY FOR SOURCE FILE [ParentChildRules.java]

nameclass, %method, %block, %line, %
ParentChildRules.java100% (1/1)100% (3/3)100% (19/19)100% (3/3)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ParentChildRules100% (1/1)100% (3/3)100% (19/19)100% (3/3)
ParentChildRules (): void 100% (1/1)100% (3/3)100% (1/1)
infer (Child): Parent 100% (1/1)100% (8/8)100% (1/1)
infer (Parent): Child 100% (1/1)100% (8/8)100% (1/1)

1/*
2@license.text@
3 */
4package com.hammurapi.eventbus.tests.familyties.rules;
5 
6import com.hammurapi.eventbus.Handler;
7import com.hammurapi.eventbus.tests.familyties.model.Child;
8import com.hammurapi.eventbus.tests.familyties.model.Parent;
9 
10public class ParentChildRules extends FamilyTiesRules {
11        
12        /**
13         * Infers child relaitonship from parent relationship.
14         * @param parent
15         * @return
16         */
17        @Handler        
18        public Child infer(Parent parent) {
19                return new Child(parent.getObject(), parent.getSubject()); 
20        }
21        
22        /**
23         * Infers parent relationship from child relationship
24         * @param child
25         * @return
26         */
27        @Handler        
28        public Parent infer(Child child) {
29                return new Parent(child.getObject(), child.getSubject()); 
30        }
31        
32}

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