Open Kilda Java Documentation
IslStatsTopologyTest.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.wfm.topology.stats;
17
18
import
org
.apache.storm.task.OutputCollector;
19
import
org
.apache.storm.task.TopologyContext;
20
import
org
.
openkilda
.
wfm
.
AbstractStormTest
;
21
import
org
.
openkilda
.
wfm
.
topology
.
OutputCollectorMock
;
22
import
org
.
openkilda
.
wfm
.
topology
.
islstats
.
IslStatsTopology
;
23
import
org
.junit.After;
24
import
org
.junit.Before;
25
import
org
.junit.Test;
26
import
org
.junit.runner.RunWith;
27
import
org
.mockito.Mock;
28
import
org
.mockito.junit.MockitoJUnitRunner;
29
30
@RunWith(MockitoJUnitRunner.class)
31
public class
IslStatsTopologyTest
extends
AbstractStormTest
{
32
private
long
messagesExpected;
33
private
long
messagesReceived;
34
35
@Mock
36
private
TopologyContext topologyContext;
37
private
OutputCollectorMock
outputCollectorMock =
new
OutputCollectorMock
();
38
private
OutputCollector outputCollector =
new
OutputCollector(outputCollectorMock);
39
40
// Leaving these here as a tickler if needed.
41
@Before
42
public
void
setupEach
() {
43
}
44
45
@After
46
public
void
teardownEach
() {
47
}
48
49
@Test
50
public
void
IslStatsTopologyTest
() throws Exception {
51
52
}
53
}
org.openkilda.wfm.topology.stats.IslStatsTopologyTest.teardownEach
void teardownEach()
Definition:
IslStatsTopologyTest.java:46
org.openkilda.wfm.topology.OutputCollectorMock
Definition:
OutputCollectorMock.java:31
org
org.openkilda.wfm.topology.islstats.IslStatsTopology
Definition:
IslStatsTopology.java:28
org.openkilda.wfm
Definition:
AbstractAction.java:1
org.openkilda.wfm.topology.stats.IslStatsTopologyTest.setupEach
void setupEach()
Definition:
IslStatsTopologyTest.java:42
org.openkilda.wfm.topology.stats.IslStatsTopologyTest.IslStatsTopologyTest
void IslStatsTopologyTest()
Definition:
IslStatsTopologyTest.java:50
org.openkilda
org.openkilda.wfm.topology.islstats
org.openkilda.wfm.AbstractStormTest
Definition:
AbstractStormTest.java:44
org.openkilda.wfm.topology.stats.IslStatsTopologyTest
Definition:
IslStatsTopologyTest.java:31
org.openkilda.wfm.topology
Definition:
AbstractTopology.java:16
open-kilda-develop
services
wfm
src
test
java
org
openkilda
wfm
topology
stats
IslStatsTopologyTest.java
Generated by
1.8.14