Brian O'Connor | f3d0616 | 2014-10-02 15:54:12 -0700 | [diff] [blame] | 1 | package org.onlab.onos.net.intent; |
Thomas Vachuska | c96058a | 2014-10-20 23:00:16 -0700 | [diff] [blame^] | 2 | |
| 3 | import org.onlab.onos.TestApplicationId; |
Brian O'Connor | f3d0616 | 2014-10-02 15:54:12 -0700 | [diff] [blame] | 4 | |
| 5 | /** |
| 6 | * An intent used in the unit test. |
Brian O'Connor | f3d0616 | 2014-10-02 15:54:12 -0700 | [diff] [blame] | 7 | */ |
Thomas Vachuska | c96058a | 2014-10-20 23:00:16 -0700 | [diff] [blame^] | 8 | public class TestIntent extends Intent { |
Brian O'Connor | f3d0616 | 2014-10-02 15:54:12 -0700 | [diff] [blame] | 9 | /** |
| 10 | * Constructs an instance with the specified intent ID. |
| 11 | * |
| 12 | * @param id intent ID |
| 13 | */ |
| 14 | public TestIntent(IntentId id) { |
Thomas Vachuska | c96058a | 2014-10-20 23:00:16 -0700 | [diff] [blame^] | 15 | super(id, new TestApplicationId("foo"), null); |
Brian O'Connor | f3d0616 | 2014-10-02 15:54:12 -0700 | [diff] [blame] | 16 | } |
| 17 | |
| 18 | /** |
| 19 | * Constructor for serializer. |
| 20 | */ |
| 21 | protected TestIntent() { |
| 22 | super(); |
| 23 | } |
| 24 | } |