Coverage Report - com.ctrip.framework.apollo.portal.listener.AppCreationEvent
 
Classes in this File Line Coverage Branch Coverage Complexity
AppCreationEvent
0%
0/4
0%
0/2
1
 
 1  
 package com.ctrip.framework.apollo.portal.listener;
 2  
 
 3  
 import com.google.common.base.Preconditions;
 4  
 
 5  
 import com.ctrip.framework.apollo.common.entity.App;
 6  
 
 7  
 import org.springframework.context.ApplicationEvent;
 8  
 
 9  
 public class AppCreationEvent extends ApplicationEvent {
 10  
 
 11  
   public AppCreationEvent(Object source) {
 12  0
     super(source);
 13  0
   }
 14  
 
 15  
   public App getApp() {
 16  0
     Preconditions.checkState(source != null);
 17  0
     return (App) this.source;
 18  
   }
 19  
 }