blob: f401759f219474d22700f2ce18bbc779526a7b52 [file] [log] [blame]
Sho SHIMIZU95d53c82014-08-21 09:18:47 -07001package net.onrc.onos.core.newintent;
2
3import net.onrc.onos.api.newintent.AbstractIntent;
4import net.onrc.onos.api.newintent.InstallableIntent;
5import net.onrc.onos.api.newintent.IntentId;
6
7/**
8 * A intent used in the unit test.
9 *
10 * FIXME: we don't want to expose this class publicly, but the current Kryo
11 * serialization mechanism does not allow this class to be private and placed
12 * on testing directory.
13 */
14public class TestIntent extends AbstractIntent implements InstallableIntent {
15 /**
16 * Constructs an instance with the specified intent ID.
17 *
18 * @param id intent ID
19 */
20 public TestIntent(IntentId id) {
21 super(id);
22 }
23
24 /**
25 * Constructor for serializer.
26 */
27 protected TestIntent() {
28 super();
29 }
30}