##### Coverage Report - com.ctrip.framework.apollo.portal.listener.AppNamespaceCreationEvent

Classes in this File | Line Coverage | Branch Coverage | Complexity
AppNamespaceCreationEvent |
0% | 0/4
0% | 0/2
| 1.0;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.AppNamespace;
6 |  |
7 |  |
     import org.springframework.context.ApplicationEvent;
8 |  |
9 |  |
     public class AppNamespaceCreationEvent extends ApplicationEvent {
10 |  |
11 |  |
       public AppNamespaceCreationEvent(Object source) {
12 | 0 |
         super(source);
13 | 0 |
       }
14 |  |
15 |  |
       public AppNamespace getAppNamespace() {
16 | 0 |
         Preconditions.checkState(source != null);
17 | 0 |
         return (AppNamespace) this.source;
18 |  |
       }
19 |  |
     }