/** * Copyright (c) 2017 Ericsson India Global Services Pvt Ltd. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ package test.mock.util; import java.util.ArrayList; import java.util.List; import java.util.concurrent.Future; import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.onf.bundle.service.rev170124.AddBundleMessagesInput; import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.onf.bundle.service.rev170124.ControlBundleInput; import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.onf.bundle.service.rev170124.SalBundleService; import org.opendaylight.yangtools.yang.common.RpcResult; public class SalBundleServiceMock implements SalBundleService { private final List controlBundleInput = new ArrayList<>(); private final List addBundleMessagesInput = new ArrayList<>(); @Override public Future> controlBundle(ControlBundleInput input) { getControlBundleInput().add(input); return null; } @Override public Future> addBundleMessages(AddBundleMessagesInput input) { getAddBundleMessagesInput().add(input); return null; } public List getControlBundleInput() { return controlBundleInput; } public List getAddBundleMessagesInput() { return addBundleMessagesInput; } }