Open Kilda Java Documentation
StableAbstractStormTest.java
Go to the documentation of this file.
1 package org.openkilda.wfm;
2 
3 
4 import org.apache.storm.Config;
5 import org.apache.storm.testing.CompleteTopologyParam;
6 import org.apache.storm.testing.MkClusterParam;
7 import org.junit.AfterClass;
8 import org.junit.BeforeClass;
9 
10 //todo: should be removed when all tests will be free from kafka usages
12  @BeforeClass
13  public static void setupOnce() throws Exception {
14  System.out.println("------> Creating Sheep \uD83D\uDC11\n");
15 
16  clusterParam = new MkClusterParam();
17  clusterParam.setSupervisors(1);
18  Config daemonConfig = new Config();
19  daemonConfig.put(Config.STORM_LOCAL_MODE_ZMQ, false);
20  clusterParam.setDaemonConf(daemonConfig);
22 
23  Config conf = new Config();
24  conf.setNumWorkers(1);
25 
26  completeTopologyParam = new CompleteTopologyParam();
27  completeTopologyParam.setStormConf(conf);
28  }
29 
30 
31  @AfterClass
32  public static void teardownOnce() throws Exception {
33  }
34 
35 }
static CompleteTopologyParam completeTopologyParam