Package org.mule.munit.runner

Source Code of org.mule.munit.runner.MunitPluginFactoryTest

/*
* Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
* The software in this package is published under the terms of the CPAL v1.0
* license, a copy of which has been included with this distribution in the
* LICENSE.txt file.
*/
package org.mule.munit.runner;

import static org.junit.Assert.assertTrue;
import org.mule.api.MuleContext;
import org.mule.munit.runner.mule.context.MockingConfiguration;
import org.mule.munit.runner.plugins.TestMunitPlugin;

import java.util.ArrayList;
import java.util.Properties;

import org.junit.Test;


public class MunitPluginFactoryTest
{

    @Test
    public void test() throws Exception
    {
        MuleContextManager muleContextManager = new MuleContextManager(new MockingConfiguration(false, new ArrayList<String>(), false, new Properties()));
        MuleContext muleContext = muleContextManager.startMule("munit-config.xml");
        muleContextManager.killMule(muleContext);


        assertTrue(TestMunitPlugin.started);
        assertTrue(TestMunitPlugin.disposed);
        assertTrue(TestMunitPlugin.stopped);
        assertTrue(TestMunitPlugin.initialised);
        assertTrue(TestMunitPlugin.withContext);
    }
}
TOP

Related Classes of org.mule.munit.runner.MunitPluginFactoryTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.