2 * Copyright (c) 2014, 2017 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package test.mock.util;
10 import java.util.ArrayList;
11 import java.util.List;
12 import java.util.concurrent.Future;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.table.service.rev131026.SalTableService;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.table.service.rev131026.UpdateTableInput;
15 import org.opendaylight.yang.gen.v1.urn.opendaylight.table.service.rev131026.UpdateTableOutput;
16 import org.opendaylight.yangtools.yang.common.RpcResult;
18 public class SalTableServiceMock implements SalTableService {
19 private final List<UpdateTableInput> updateTableInput = new ArrayList<>();
21 public List<UpdateTableInput> getUpdateTableInput() {
22 return updateTableInput;
26 public Future<RpcResult<UpdateTableOutput>> updateTable(UpdateTableInput input) {
27 updateTableInput.add(input);