Clover Coverage Report - Main Coverage Report
Coverage timestamp: ven dic 19 2014 16:47:52 EST
../../../../img/srcFileCovDistChart5.png 64% of files have more coverage
9   41   7   1,8
4   31   0,78   5
5     1,4  
1    
This report was generated with an evaluation server license. Purchase Clover or configure your license.
 
  AdEventListener       Line # 7 9 7 50% 0.5
 
No Tests
 
1    package com.dreamcatcher.bicycle.core;
2   
3    import java.util.Vector;
4   
5    import com.dreamcatcher.bicycle.interfaces.IAdEvent;
6   
 
7    public class AdEventListener implements IAdEvent {
8    private Vector<IAdEvent> mEvents = null;
9   
 
10  1 toggle public AdEventListener(){
11  1 mEvents = new Vector<IAdEvent>();
12    }
13   
14   
 
15  1 toggle @Override
16    public void onPointsUpdated(String currencyName, int totalPoint) {
17  1 for(IAdEvent event : mEvents){
18  2 event.onPointsUpdated(currencyName, totalPoint);
19    }
20    }
21   
 
22  0 toggle @Override
23    public void onPointsUpdateFailed(String error) {
24  0 for(IAdEvent event : mEvents){
25  0 event.onPointsUpdateFailed(error);
26    }
27    }
28   
 
29  3 toggle public void addEvent(IAdEvent event){
30  3 if(!mEvents.contains(event)){
31  3 mEvents.add(event);
32    }
33    }
34   
 
35  0 toggle public void removeEvent(IAdEvent event){
36  0 if(mEvents.contains(event)){
37  0 mEvents.remove(event);
38    }
39    }
40   
41    }