2 * Copyright (c) 2014, 2016 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 org.opendaylight.yang.gen.v1.urn.opendaylight.table.service.rev131026.UpdateTableInput;
11 import org.opendaylight.yang.gen.v1.urn.opendaylight.table.service.rev131026.UpdateTableOutput;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.table.service.rev131026.SalTableService;
14 import org.opendaylight.yangtools.yang.common.RpcResult;
15 import java.util.ArrayList;
16 import java.util.List;
17 import java.util.concurrent.Future;
19 public class SalTableServiceMock implements SalTableService {
20 private List<UpdateTableInput> updateTableInput = new ArrayList<>();
23 public List<UpdateTableInput> getUpdateTableInput() {
24 return updateTableInput;
28 public Future<RpcResult<UpdateTableOutput>> updateTable(UpdateTableInput input) {
29 updateTableInput.add(input);