Open Kilda Java Documentation
DefaultFlowsCommandDataTest.java
Go to the documentation of this file.
1
/* Copyright 2017 Telstra Open Source
2
*
3
* Licensed under the Apache License, Version 2.0 (the "License");
4
* you may not use this file except in compliance with the License.
5
* You may obtain a copy of the License at
6
*
7
* http://www.apache.org/licenses/LICENSE-2.0
8
*
9
* Unless required by applicable law or agreed to in writing, software
10
* distributed under the License is distributed on an "AS IS" BASIS,
11
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
* See the License for the specific language governing permissions and
13
* limitations under the License.
14
*/
15
16
package
org.openkilda.messaging.command.flow;
17
18
import
static
org
.
openkilda
.
messaging
.
command
.
Constants
.
switchId
;
19
import
static
org
.junit.Assert.assertEquals;
20
21
import
org
.junit.Test;
22
23
public
class
DefaultFlowsCommandDataTest
{
24
@Test
25
public
void
switchId
() throws Exception {
26
DefaultFlowsCommandData
defaultFlowsCommandData =
new
DefaultFlowsCommandData
();
27
defaultFlowsCommandData.
setSwitchId
(
switchId
);
28
assertEquals(
switchId
, defaultFlowsCommandData.
getSwitchId
());
29
}
30
}
org.openkilda.messaging
Definition:
BaseMessage.java:16
org.openkilda.messaging.command.Constants.switchId
static final SwitchId switchId
Definition:
Constants.java:23
org.openkilda.messaging.command.Constants
Definition:
Constants.java:21
org
org.openkilda.messaging.command.flow.DefaultFlowsCommandData
Definition:
DefaultFlowsCommandData.java:35
org.openkilda.messaging.command.flow.DefaultFlowsCommandData.setSwitchId
void setSwitchId(final SwitchId switchId)
Definition:
DefaultFlowsCommandData.java:77
org.openkilda
org.openkilda.messaging.command.flow.DefaultFlowsCommandDataTest
Definition:
DefaultFlowsCommandDataTest.java:23
org.openkilda.messaging.command.flow.DefaultFlowsCommandData.getSwitchId
SwitchId getSwitchId()
Definition:
DefaultFlowsCommandData.java:68
org.openkilda.messaging.command
Definition:
CommandData.java:16
org.openkilda.messaging.command.flow.DefaultFlowsCommandDataTest.switchId
void switchId()
Definition:
DefaultFlowsCommandDataTest.java:25
open-kilda-develop
services
src
messaging
src
test
java
org
openkilda
messaging
command
flow
DefaultFlowsCommandDataTest.java
Generated by
1.8.14