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;
33 import org.junit.Test;
37 inputVlanId, outputVlanId, outputVlanType, bandwidth, meterId);
42 assertNotNull(flowString);
43 assertFalse(flowString.isEmpty());
53 assertEquals(bandwidth, flow.
getBandwidth().longValue());
58 assertEquals(meterId, flow.
getMeterId().longValue());
74 assertEquals(bandwidth, flow.
getBandwidth().longValue());
77 @Test(expected = IllegalArgumentException.class)
82 @Test(expected = IllegalArgumentException.class)
90 assertEquals(meterId, flow.
getMeterId().longValue());
93 @Test(expected = IllegalArgumentException.class)
98 @Test(expected = IllegalArgumentException.class)
103 @Test(expected = IllegalArgumentException.class)
108 @Test(expected = IllegalArgumentException.class)
131 @Test(expected = IllegalArgumentException.class)
136 @Test(expected = IllegalArgumentException.class)
159 @Test(expected = IllegalArgumentException.class)
164 @Test(expected = IllegalArgumentException.class)
176 @Test(expected = IllegalArgumentException.class)
181 @Test(expected = IllegalArgumentException.class)
186 @Test(expected = IllegalArgumentException.class)
192 @Test(expected = IllegalArgumentException.class)
198 @Test(expected = IllegalArgumentException.class)
204 @Test(expected = IllegalArgumentException.class)
static final int inputPort
void setNullOutputVlanId()
Integer getOutputVlanId()
void setIncorrectPushOutputVlanType()
void setOutputVlanType(final OutputVlanType outputVlanType)
void setTooBigOutputVlanId()
static final SwitchId switchId
static final long meterId
void setNegativeInputMeterId()
void setIncorrectPopOutputVlanType()
void setTooBigInputVlanId()
void setZeroOutputVlanId()
static final int outputPort
void setNullInputMeterId()
void setOutputVlanId(final Integer outputVlanId)
static final OutputVlanType outputVlanType
void setBandwidth(final Long bandwidth)
OutputVlanType getOutputVlanType()
void setMeterId(final Long meterId)
void setIncorrectReplaceOutputVlanType()
void setZeroInputVlanId()
void setNegativeBandwidth()
void setNegativeMeterId()
void setNullInputVlanId()
void setIncorrectNoneOutputVlanType()
void setNegativeOutputVlanId()
void setNullOutputVlanType()
void setInputVlanId(final Integer inputVlanId)
static final String flowName
static final int inputVlanId
static final int outputVlanId
void setInvalidOutputVlanType()
static final long bandwidth
void setNegativeInputVlanId()