Brian O'Connor | f3d0616 | 2014-10-02 15:54:12 -0700 | [diff] [blame] | 1 | package org.onlab.onos.net.intent; |
Brian O'Connor | f3d0616 | 2014-10-02 15:54:12 -0700 | [diff] [blame] | 2 | |
Thomas Vachuska | c96058a | 2014-10-20 23:00:16 -0700 | [diff] [blame] | 3 | import org.onlab.onos.TestApplicationId; |
tom | 95329eb | 2014-10-06 08:40:06 -0700 | [diff] [blame] | 4 | |
Brian O'Connor | f3d0616 | 2014-10-02 15:54:12 -0700 | [diff] [blame] | 5 | /** |
6 | * An installable 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 TestInstallableIntent 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 TestInstallableIntent(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 TestInstallableIntent() { | ||||
22 | super(); | ||||
23 | } | ||||
24 | |||||
tom | 95329eb | 2014-10-06 08:40:06 -0700 | [diff] [blame] | 25 | @Override |
Thomas Vachuska | c96058a | 2014-10-20 23:00:16 -0700 | [diff] [blame] | 26 | public boolean isInstallable() { |
27 | return true; | ||||
tom | 95329eb | 2014-10-06 08:40:06 -0700 | [diff] [blame] | 28 | } |
Thomas Vachuska | c96058a | 2014-10-20 23:00:16 -0700 | [diff] [blame] | 29 | |
Brian O'Connor | f3d0616 | 2014-10-02 15:54:12 -0700 | [diff] [blame] | 30 | } |