Open Kilda Java Documentation
MonkeySuiteCheckFlowsTest.java
Go to the documentation of this file.
1 /* Copyright 2018 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.atdd.staging.tests.monkeysuite.checkflows;
17 
18 import static org.mockito.ArgumentMatchers.any;
19 import static org.mockito.Mockito.times;
20 import static org.mockito.Mockito.verify;
21 
24 
25 import cucumber.api.CucumberOptions;
26 import cucumber.api.java.After;
27 import org.junit.Ignore;
28 import org.junit.runner.RunWith;
29 import org.springframework.beans.factory.annotation.Autowired;
30 import org.springframework.test.context.ActiveProfiles;
31 
32 @Ignore
33 @RunWith(CucumberWithSpringProfile.class)
34 @CucumberOptions(features = {"classpath:features/monkey_suite.featuremonkey_suite.feature"},
35  glue = {"org.openkilda.atdd.staging.tests.monkeysuite.checkflows", "org.openkilda.atdd.staging.steps"},
36  tags = {"@CheckFlows"},
37  plugin = {"json:target/cucumber-reports/monkey_suite_check_flows_report.json"})
38 @ActiveProfiles("mock")
40 
41  public static class MonkeySuiteCheckFlowsHook {
42 
43  @Autowired
44  private NorthboundService northboundService;
45 
46  @After
47  public void assertsAndVerifyMocks() {
48  verify(northboundService, times(3)).getFlow(any());
49  }
50  }
51 }