16 package org.openkilda.messaging.command.flow;
27 import static org.junit.Assert.assertEquals;
28 import static org.junit.Assert.assertFalse;
29 import static org.junit.Assert.assertNotNull;
31 import org.junit.Test;
35 outputPort, inputVlanId, transitVlanId, outputVlanType, bandwidth, meterId);
40 assertNotNull(flowString);
41 assertFalse(flowString.isEmpty());
46 assertEquals(bandwidth, flow.
getBandwidth().longValue());
51 assertEquals(meterId, flow.
getMeterId().longValue());
62 assertEquals(bandwidth, flow.
getBandwidth().longValue());
65 @Test(expected = IllegalArgumentException.class)
70 @Test(expected = IllegalArgumentException.class)
78 assertEquals(meterId, flow.
getMeterId().longValue());
81 @Test(expected = IllegalArgumentException.class)
86 @Test(expected = IllegalArgumentException.class)
109 @Test(expected = IllegalArgumentException.class)
114 @Test(expected = IllegalArgumentException.class)
static final int inputPort
void setZeroInputVlanId()
void setNullInputVlanId()
static final SwitchId switchId
static final long meterId
static final int outputPort
void setTooBigInputVlanId()
void setMeterId(final Long meterId)
static final OutputVlanType outputVlanType
void setNegativeMeterId()
static final int transitVlanId
void setBandwidth(final Long bandwidth)
void setNegativeBandwidth()
void setNegativeInputVlanId()
void setInputVlanId(final Integer inputVlanId)
static final String flowName
static final int inputVlanId
static final long bandwidth