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;
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)
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 }