Search in sources :

Example 11 with DefaultsConfigurationBuilder

use of org.mule.runtime.core.internal.config.builders.DefaultsConfigurationBuilder in project mule by mulesoft.

the class MuleContextLifecycleTestCase method startOnStopped.

@Test
public void startOnStopped() throws Exception {
    ctx.initialise();
    new DefaultsConfigurationBuilder().configure(ctx);
    ctx.start();
    ctx.stop();
    ctx.start();
    assertTrue(ctx.isInitialised());
    assertFalse(ctx.isInitialising());
    assertTrue(ctx.isStarted());
    assertFalse(ctx.isDisposed());
    assertFalse(ctx.isDisposing());
}
Also used : DefaultsConfigurationBuilder(org.mule.runtime.core.internal.config.builders.DefaultsConfigurationBuilder) Test(org.junit.Test)

Aggregations

DefaultsConfigurationBuilder (org.mule.runtime.core.internal.config.builders.DefaultsConfigurationBuilder)11 Test (org.junit.Test)10 ArrayList (java.util.ArrayList)2 DefaultMuleContextFactory (org.mule.runtime.core.api.context.DefaultMuleContextFactory)2 TestServicesConfigurationBuilder (org.mule.tck.config.TestServicesConfigurationBuilder)2 Arrays (java.util.Arrays)1 List (java.util.List)1 AtomicBoolean (java.util.concurrent.atomic.AtomicBoolean)1 AtomicReference (java.util.concurrent.atomic.AtomicReference)1 TransactionManager (javax.transaction.TransactionManager)1 After (org.junit.After)1 Assert.assertEquals (org.junit.Assert.assertEquals)1 Assert.assertFalse (org.junit.Assert.assertFalse)1 Assert.assertNotNull (org.junit.Assert.assertNotNull)1 Assert.assertSame (org.junit.Assert.assertSame)1 Assert.assertTrue (org.junit.Assert.assertTrue)1 Assert.fail (org.junit.Assert.fail)1 Before (org.junit.Before)1 Rule (org.junit.Rule)1 Mockito.mock (org.mockito.Mockito.mock)1