Sho SHIMIZU | 95d53c8 | 2014-08-21 09:18:47 -0700 | [diff] [blame] | 1 | package net.onrc.onos.core.newintent; |
| 2 | |
| 3 | import net.onrc.onos.api.newintent.AbstractIntent; |
| 4 | import net.onrc.onos.api.newintent.InstallableIntent; |
| 5 | import 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 | */ |
| 14 | public 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 | } |