blob: 94761905e93dd98696f488c1fc8786a8de128372 [file] [log] [blame]
Brian O'Connorf3d06162014-10-02 15:54:12 -07001package org.onlab.onos.net.intent;
Brian O'Connorf3d06162014-10-02 15:54:12 -07002
Thomas Vachuskac96058a2014-10-20 23:00:16 -07003import org.onlab.onos.TestApplicationId;
tom95329eb2014-10-06 08:40:06 -07004
Brian O'Connorf3d06162014-10-02 15:54:12 -07005/**
6 * An installable intent used in the unit test.
Brian O'Connorf3d06162014-10-02 15:54:12 -07007 */
Thomas Vachuskac96058a2014-10-20 23:00:16 -07008public class TestInstallableIntent extends Intent {
Brian O'Connorf3d06162014-10-02 15:54:12 -07009 /**
10 * Constructs an instance with the specified intent ID.
11 *
12 * @param id intent ID
13 */
14 public TestInstallableIntent(IntentId id) {
Thomas Vachuskac96058a2014-10-20 23:00:16 -070015 super(id, new TestApplicationId("foo"), null);
Brian O'Connorf3d06162014-10-02 15:54:12 -070016 }
17
18 /**
19 * Constructor for serializer.
20 */
21 protected TestInstallableIntent() {
22 super();
23 }
24
tom95329eb2014-10-06 08:40:06 -070025 @Override
Thomas Vachuskac96058a2014-10-20 23:00:16 -070026 public boolean isInstallable() {
27 return true;
tom95329eb2014-10-06 08:40:06 -070028 }
Thomas Vachuskac96058a2014-10-20 23:00:16 -070029
Brian O'Connorf3d06162014-10-02 15:54:12 -070030}