52b94d78729ad918cd8bfdfbf7b70212eef42226
[openflowplugin.git] / applications / forwardingrules-manager / src / test / java / test / mock / util / SalTableServiceMock.java
1 package test.mock.util;
2
3 import org.opendaylight.yang.gen.v1.urn.opendaylight.table.service.rev131026.UpdateTableInput;
4 import org.opendaylight.yang.gen.v1.urn.opendaylight.table.service.rev131026.UpdateTableOutput;
5
6 import org.opendaylight.yang.gen.v1.urn.opendaylight.table.service.rev131026.SalTableService;
7 import org.opendaylight.yangtools.yang.common.RpcResult;
8 import java.util.ArrayList;
9 import java.util.List;
10 import java.util.concurrent.Future;
11
12 public class SalTableServiceMock implements SalTableService {
13     private List<UpdateTableInput> updateTableInput = new ArrayList<>();
14
15
16     public List<UpdateTableInput> getUpdateTableInput() {
17         return updateTableInput;
18     }
19
20     @Override
21     public Future<RpcResult<UpdateTableOutput>> updateTable(UpdateTableInput input) {
22         updateTableInput.add(input);
23         return null;
24     }
25 }