Package gov.nasa.arc.mct.core.policy

Examples of gov.nasa.arc.mct.core.policy.CanRemoveComponentPolicy


       
        PolicyContext context = new PolicyContext();
        AbstractComponent mockChild = Mockito.mock(AbstractComponent.class);
        context.setProperty(PolicyContext.PropertyName.TARGET_COMPONENT.getName(), comp);
        context.setProperty(PolicyContext.PropertyName.SOURCE_COMPONENTS.getName(), Collections.singleton(mockChild));
        Assert.assertTrue(new CanRemoveComponentPolicy().execute(context).getStatus());
    }
View Full Code Here

TOP

Related Classes of gov.nasa.arc.mct.core.policy.CanRemoveComponentPolicy

Copyright © 2018 www.massapicom. 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.