Add missing license headers
[openflowplugin.git] / applications / forwardingrules-manager / src / test / java / test / mock / util / SalTableServiceMock.java
1 /*
2  * Copyright (c) 2014, 2016 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 org.opendaylight.yang.gen.v1.urn.opendaylight.table.service.rev131026.UpdateTableInput;
11 import org.opendaylight.yang.gen.v1.urn.opendaylight.table.service.rev131026.UpdateTableOutput;
12
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;
18
19 public class SalTableServiceMock implements SalTableService {
20     private List<UpdateTableInput> updateTableInput = new ArrayList<>();
21
22
23     public List<UpdateTableInput> getUpdateTableInput() {
24         return updateTableInput;
25     }
26
27     @Override
28     public Future<RpcResult<UpdateTableOutput>> updateTable(UpdateTableInput input) {
29         updateTableInput.add(input);
30         return null;
31     }
32 }