View Javadoc
1   package org.kuali.ole.web;
2   
3   import org.junit.After;
4   import org.junit.Before;
5   import org.junit.Test;
6   import org.kuali.ole.base.BaseTestCase;
7   import org.kuali.ole.docstore.discovery.servlet.DiscoveryContextListener;
8   
9   import javax.servlet.ServletContextEvent;
10  
11  /**
12   * Created with IntelliJ IDEA.
13   * User: ?
14   * Date: 12/26/12
15   * Time: 7:18 PM
16   * To change this template use File | Settings | File Templates.
17   */
18  public class DiscoveryContextListener_UT extends BaseTestCase{
19      DiscoveryContextListener discoveryContextListener = new DiscoveryContextListener();
20      ServletContextEvent servletContextEvent     = null;
21  
22  
23  
24      @Override
25      @Before
26      public void setUp() throws Exception {
27          super.setUp();    //To change body of overridden methods use File | Settings | File Templates.
28      }
29  
30      @After
31      public void tearDown() throws Exception {
32      }
33  
34      @Test
35        public void testContextInitialized() throws Exception {
36            discoveryContextListener.contextInitialized(servletContextEvent);
37        }
38  
39  }