BUG8607 Fix checkstyle issues
[openflowplugin.git] / applications / forwardingrules-manager / src / test / java / test / mock / util / SalTableServiceMock.java
1 /*
2  * Copyright (c) 2014, 2017 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package test.mock.util;
9
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;
17
18 public class SalTableServiceMock implements SalTableService {
19     private final List<UpdateTableInput> updateTableInput = new ArrayList<>();
20
21     public List<UpdateTableInput> getUpdateTableInput() {
22         return updateTableInput;
23     }
24
25     @Override
26     public Future<RpcResult<UpdateTableOutput>> updateTable(UpdateTableInput input) {
27         updateTableInput.add(input);
28         return null;
29     }
30 }