Committed by
Gerrit Code Review
[ONOS-3162] Test stub on FlowObjectiveService
Change-Id: Ieba45fb60b0285d181d41022157d2d7b967f96c6
Showing
1 changed file
with
53 additions
and
0 deletions
1 | +/* | ||
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 | + */ | ||
16 | +package org.onosproject.sfc.util; | ||
17 | + | ||
18 | +import org.onosproject.net.DeviceId; | ||
19 | +import org.onosproject.net.flowobjective.FlowObjectiveService; | ||
20 | +import org.onosproject.net.flowobjective.FilteringObjective; | ||
21 | +import org.onosproject.net.flowobjective.ForwardingObjective; | ||
22 | +import org.onosproject.net.flowobjective.NextObjective; | ||
23 | + | ||
24 | +/** | ||
25 | + * Testing version of implementation on FlowObjectiveService. | ||
26 | + */ | ||
27 | +public class FlowObjectiveServiceTestImpl implements FlowObjectiveService { | ||
28 | + | ||
29 | + @Override | ||
30 | + public void filter(DeviceId deviceId, FilteringObjective filteringObjective) { | ||
31 | + | ||
32 | + } | ||
33 | + | ||
34 | + @Override | ||
35 | + public void forward(DeviceId deviceId, ForwardingObjective forwardingObjective) { | ||
36 | + | ||
37 | + } | ||
38 | + | ||
39 | + @Override | ||
40 | + public void next(DeviceId deviceId, NextObjective nextObjective) { | ||
41 | + | ||
42 | + } | ||
43 | + | ||
44 | + @Override | ||
45 | + public int allocateNextId() { | ||
46 | + return 0; | ||
47 | + } | ||
48 | + | ||
49 | + @Override | ||
50 | + public void initPolicy(String policy) { | ||
51 | + | ||
52 | + } | ||
53 | +} |
-
Please register or login to post a comment