blob: 583220f5a781ba8f0d512f94c40daa4bd11f6f65 [file] [log] [blame]
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07001/*
2 * Copyright 2014 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 */
Brian O'Connorf3d06162014-10-02 15:54:12 -070016package org.onlab.onos.net.intent;
Thomas Vachuskac96058a2014-10-20 23:00:16 -070017
18import org.onlab.onos.TestApplicationId;
Brian O'Connorf3d06162014-10-02 15:54:12 -070019
20/**
21 * An intent used in the unit test.
Brian O'Connorf3d06162014-10-02 15:54:12 -070022 */
Thomas Vachuskac96058a2014-10-20 23:00:16 -070023public class TestIntent extends Intent {
Brian O'Connorf3d06162014-10-02 15:54:12 -070024 /**
25 * Constructs an instance with the specified intent ID.
26 *
27 * @param id intent ID
28 */
29 public TestIntent(IntentId id) {
Thomas Vachuskac96058a2014-10-20 23:00:16 -070030 super(id, new TestApplicationId("foo"), null);
Brian O'Connorf3d06162014-10-02 15:54:12 -070031 }
32
33 /**
34 * Constructor for serializer.
35 */
36 protected TestIntent() {
37 super();
38 }
39}