Clover Coverage Report - Main Coverage Report
Coverage timestamp: ven dic 19 2014 16:47:52 EST
../../../../img/srcFileCovDistChart6.png 51% of files have more coverage
11   46   8   1,83
4   36   0,73   6
6     1,33  
1    
This report was generated with an evaluation server license. Purchase Clover or configure your license.
 
  HttpEventListener       Line # 8 11 8 57,1% 0.5714286
 
No Tests
 
1    package com.dreamcatcher.bicycle.core;
2   
3    import java.util.Vector;
4   
5    import com.dreamcatcher.bicycle.interfaces.IHttpEvent;
6    import com.dreamcatcher.bicycle.vo.BicycleNumberInfo;
7   
 
8    public class HttpEventListener implements IHttpEvent {
9    private Vector<IHttpEvent> mEvents = null;
10   
 
11  1 toggle public HttpEventListener(){
12  1 mEvents = new Vector<IHttpEvent>();
13    }
14   
 
15  3 toggle public void onAllBicyclesInfoReceived(int resultCode) {
16  3 for(IHttpEvent event : mEvents){
17  6 event.onAllBicyclesInfoReceived(resultCode);
18    }
19    }
20   
 
21  0 toggle public void onSingleBicycleNumberInfoReceived(
22    BicycleNumberInfo bicycleNumberInfo, int resultCode) {
23  0 for(IHttpEvent event : mEvents){
24  0 event.onSingleBicycleNumberInfoReceived(bicycleNumberInfo, resultCode);
25    }
26    }
27   
 
28  1 toggle public void onNewVersionCheckCompleted(boolean needUpdate, int resultCode) {
29  1 for(IHttpEvent event : mEvents){
30  3 event.onNewVersionCheckCompleted(needUpdate, resultCode);
31    }
32    }
33   
 
34  3 toggle public void addEvent(IHttpEvent event){
35  3 if(!mEvents.contains(event)){
36  3 mEvents.add(event);
37    }
38    }
39   
 
40  0 toggle public void removeEvent(IHttpEvent event){
41  0 if(mEvents.contains(event)){
42  0 mEvents.remove(event);
43    }
44    }
45   
46    }