blob: 94158ae4fa9c0e13d150f5acad9b0ccdcf6825ad [file] [log] [blame]
Jian Li152b8852015-12-07 14:47:25 -08001/*
2 * Copyright 2015 Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.onosproject.openflow.controller.impl;
17
18import org.onosproject.openflow.OfMessageAdapter;
19import org.projectfloodlight.openflow.protocol.OFFlowRemoved;
20import org.projectfloodlight.openflow.protocol.OFType;
21import org.projectfloodlight.openflow.protocol.match.Match;
22import org.projectfloodlight.openflow.types.TableId;
23import org.projectfloodlight.openflow.types.U64;
24
25/**
26 * Mock of the Open Flow packet removed message.
27 */
28public class MockOfFlowRemoved extends OfMessageAdapter implements OFFlowRemoved {
29
30 public MockOfFlowRemoved() {
31 super(OFType.FLOW_REMOVED);
32 }
33
34 @Override
35 public U64 getCookie() {
36 return null;
37 }
38
39 @Override
40 public int getPriority() {
41 return 0;
42 }
43
44 @Override
45 public short getReason() {
46 return 0;
47 }
48
49 @Override
50 public TableId getTableId() throws UnsupportedOperationException {
51 return null;
52 }
53
54 @Override
55 public long getDurationSec() {
56 return 0;
57 }
58
59 @Override
60 public long getDurationNsec() {
61 return 0;
62 }
63
64 @Override
65 public int getIdleTimeout() {
66 return 0;
67 }
68
69 @Override
70 public int getHardTimeout() throws UnsupportedOperationException {
71 return 0;
72 }
73
74 @Override
75 public U64 getPacketCount() {
76 return null;
77 }
78
79 @Override
80 public U64 getByteCount() {
81 return null;
82 }
83
84 @Override
85 public Match getMatch() {
86 return null;
87 }
88
89 @Override
90 public OFFlowRemoved.Builder createBuilder() {
91 return null;
92 }
93}