| package org.onlab.onos.net.intent; |
| |
| import org.junit.Test; |
| |
| import static org.junit.Assert.assertEquals; |
| |
| /** |
| * Suite of tests of the multi-to-single point intent descriptor. |
| */ |
| public class MultiPointToSinglePointIntentTest extends ConnectivityIntentTest { |
| |
| @Test |
| public void basics() { |
| MultiPointToSinglePointIntent intent = createOne(); |
| assertEquals("incorrect id", IID, intent.id()); |
| assertEquals("incorrect match", MATCH, intent.selector()); |
| assertEquals("incorrect ingress", PS1, intent.ingressPoints()); |
| assertEquals("incorrect egress", P2, intent.egressPoint()); |
| } |
| |
| @Override |
| protected MultiPointToSinglePointIntent createOne() { |
| return new MultiPointToSinglePointIntent(IID, MATCH, NOP, PS1, P2); |
| } |
| |
| @Override |
| protected MultiPointToSinglePointIntent createAnother() { |
| return new MultiPointToSinglePointIntent(IID, MATCH, NOP, PS2, P1); |
| } |
| } |