View Javadoc

1   /*
2    * $Id: LifecycleNotificationTestCase.java 22377 2011-07-11 12:41:42Z dirk.olmes $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  package org.mule.management;
11  
12  import org.mule.tck.junit4.AbstractMuleContextTestCase;
13  
14  import org.junit.Test;
15  
16  import static org.junit.Assert.assertTrue;
17  
18  public class LifecycleNotificationTestCase extends AbstractMuleContextTestCase
19  {
20  
21      @Test
22      public void testManageLifecycle() throws Exception
23      {
24          assertTrue(muleContext.isInitialised());
25  //        muleContext.start();
26  //        assertTrue(muleContext.isStarted());
27  //        muleContext.stop();
28  //        assertFalse(muleContext.isStarted());
29  //        muleContext.dispose();
30  //        assertTrue(muleContext.isDisposed());
31  //        muleContext.initialise();
32  //        assertTrue(muleContext.isInitialised());
33  //        muleContext.start();
34  //        assertTrue(muleContext.isStarted());
35  
36  
37      }
38  }