Brian O'Connor | f3d0616 | 2014-10-02 15:54:12 -0700 | [diff] [blame] | 1 | package org.onlab.onos.net.intent; |
| 2 | //TODO is this the right package? |
| 3 | |
tom | 95329eb | 2014-10-06 08:40:06 -0700 | [diff] [blame^] | 4 | import org.onlab.onos.net.Link; |
| 5 | |
| 6 | import java.util.Collection; |
| 7 | |
Brian O'Connor | f3d0616 | 2014-10-02 15:54:12 -0700 | [diff] [blame] | 8 | /** |
| 9 | * An installable intent used in the unit test. |
| 10 | * |
| 11 | * FIXME: we don't want to expose this class publicly, but the current Kryo |
| 12 | * serialization mechanism does not allow this class to be private and placed |
| 13 | * on testing directory. |
| 14 | */ |
| 15 | public class TestInstallableIntent extends AbstractIntent implements InstallableIntent { |
| 16 | /** |
| 17 | * Constructs an instance with the specified intent ID. |
| 18 | * |
| 19 | * @param id intent ID |
| 20 | */ |
| 21 | public TestInstallableIntent(IntentId id) { |
| 22 | super(id); |
| 23 | } |
| 24 | |
| 25 | /** |
| 26 | * Constructor for serializer. |
| 27 | */ |
| 28 | protected TestInstallableIntent() { |
| 29 | super(); |
| 30 | } |
| 31 | |
tom | 95329eb | 2014-10-06 08:40:06 -0700 | [diff] [blame^] | 32 | @Override |
| 33 | public Collection<Link> requiredLinks() { |
| 34 | return null; |
| 35 | } |
Brian O'Connor | f3d0616 | 2014-10-02 15:54:12 -0700 | [diff] [blame] | 36 | } |