@@ -0,0 +1,2645 @@
+/*%0A * Copyright (c) 2016 Instituto Atl%C3%A2ntico Development Company, L.P. and others. All rights reserved.%0A *%0A * This program and the accompanying materials are made available under the%0A * terms of the Eclipse Public License v1.0 which accompanies this distribution,%0A * and is available at http://www.eclipse.org/legal/epl-v10.html%0A */%0A%0Apackage org.opendaylight.nic.of.renderer.strategy;%0A%0Aimport static org.mockito.Mockito.when;%0A%0Aimport java.util.Arrays;%0Aimport java.util.HashMap;%0Aimport java.util.List;%0Aimport java.util.Map;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.mockito.InjectMocks;%0Aimport org.mockito.Mock;%0Aimport org.opendaylight.controller.md.sal.binding.api.DataBroker;%0Aimport org.opendaylight.nic.of.renderer.impl.QosConstraintManager;%0Aimport org.opendaylight.nic.of.renderer.utils.TopologyUtils;%0Aimport org.opendaylight.nic.utils.FlowAction;%0Aimport org.opendaylight.yang.gen.v1.urn.opendaylight.intent.rev150122.intents.Intent;%0Aimport org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeId;%0Aimport org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.node.NodeConnector;%0Aimport org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node;%0Aimport org.powermock.api.mockito.PowerMockito;%0Aimport org.powermock.core.classloader.annotations.PrepareForTest;%0Aimport org.powermock.modules.junit4.PowerMockRunner;%0A%0A/**%0A * @author victor. Created on 17/11/16.%0A */%0A@PrepareForTest(%7B TopologyUtils.class %7D)%0A@RunWith(PowerMockRunner.class)%0Apublic class QoSExecutorTest %7B%0A%0A    @InjectMocks%0A    private QoSExecutor qoSExecutorMock;%0A%0A    @Mock%0A    private QosConstraintManager qosConstraintManagerMock;%0A%0A    @Mock%0A    private DataBroker dataBroker;%0A%0A    @Mock%0A    private Intent intentMock;%0A%0A    @Mock%0A    private Node node;%0A%0A    @Mock%0A    private NodeConnector nodeConnector;%0A%0A    @Mock%0A    private NodeId nodeIdDeprecatedMock;%0A%0A    private Map%3CNode, List%3CNodeConnector%3E%3E nodeMap;%0A%0A    private List%3CNodeConnector%3E nodeConnectorList;%0A%0A    @Before%0A    public void setUp() throws Exception %7B%0A        nodeConnectorList = Arrays.asList(nodeConnector);%0A%0A        when(node.getId()).thenReturn(nodeIdDeprecatedMock);%0A%0A        nodeMap = new HashMap%3C%3E();%0A        nodeMap.put(node, nodeConnectorList);%0A%0A        PowerMockito.mockStatic(TopologyUtils.class);%0A%0A        when(TopologyUtils.getNodes(dataBroker)).thenReturn(nodeMap);%0A%0A        qoSExecutorMock = new QoSExecutor(qosConstraintManagerMock, dataBroker);%0A    %7D%0A%0A    @Test%0A    public void testExecuteIntentAddFlow() throws Exception %7B%0A        qoSExecutorMock.execute(intentMock, FlowAction.ADD_FLOW);%0A    %7D%0A%7D%0A

Increase of-renderer coverage on QoSExecutor.