try (Time.SimulatedTime simulatedTime = new Time.SimulatedTime()) {
time.close();
@Test public void testReschedule() throws Exception { try (SimulatedTime t = new SimulatedTime(1010)) { int port = 8080; String cTopoId = "CURRENT";
try (Time.SimulatedTime st = new Time.SimulatedTime()) {
@Test public void testLaunchContainerFromEmpty() throws Exception { try (SimulatedTime t = new SimulatedTime(1010)) { int port = 8080; String topoId = "NEW";
conf.put(Config.STORM_LOCAL_DIR, tmpDirPath.toString()); try (SimulatedTime t = new SimulatedTime()) { ArtifactoryConfigLoaderMock loaderMock = new ArtifactoryConfigLoaderMock(conf);
extraConfs, (ThriftServer server, Map<String, Object> conf) -> { try (Time.SimulatedTime sim = new Time.SimulatedTime()) { conf.put(Config.STORM_NIMBUS_RETRY_TIMES, 0);
@Test public void testBasic() throws Exception { try (Time.SimulatedTime st = new Time.SimulatedTime()) { Map<String, Object> conf = new HashMap();
@Test public void testRunWithProfileActions() throws Exception { try (SimulatedTime t = new SimulatedTime(1010)) { int port = 8080; String cTopoId = "CURRENT";
final long versionNumber = 5L; try (Time.SimulatedTime sim = new Time.SimulatedTime()) { IStormClusterState mockState = mock(IStormClusterState.class); Map<String, Object> conf = new HashMap<>();
try (SimulatedTime simulatedTime = new SimulatedTime()) { TopicPartition partitionTwo = new TopicPartition(SingleTopicKafkaSpoutConfiguration.TOPIC, 2); KafkaSpout<String, String> spout = SpoutWithMockedConsumerSetupHelper.setupSpout(spoutConfig, conf, contextMock, collectorMock, consumerMock, partition, partitionTwo);
@Test public void testRunningToEmpty() throws Exception { try (SimulatedTime t = new SimulatedTime(1010)) { int port = 8080; String cTopoId = "CURRENT";
final long versionNumber = 0L; try (Time.SimulatedTime sim = new Time.SimulatedTime()) { IStormClusterState mockState = mock(IStormClusterState.class); Map<String, Object> conf = new HashMap<>();
try (Time.SimulatedTime simulatedTime = new Time.SimulatedTime()) {
@Test public void testSpoutWillSkipPartitionsAtTheMaxUncommittedOffsetsLimit() { try (SimulatedTime simulatedTime = new SimulatedTime()) { TopicPartition partitionTwo = new TopicPartition(SingleTopicKafkaSpoutConfiguration.TOPIC, 2); KafkaSpout<String, String> spout = SpoutWithMockedConsumerSetupHelper.setupSpout(spoutConfig, conf, contextMock, collectorMock, consumerMock, partition, partitionTwo);
@Test public void testFIFOEvictionStrategy() { try (Time.SimulatedTime sim = new Time.SimulatedTime()) { INimbus iNimbus = new INimbusTest(); Map<String, SupervisorDetails> supMap = genSupervisors(4, 4, 100.0, 1000.0);
@Test public void testRelaunch() throws Exception { try (SimulatedTime t = new SimulatedTime(1010)) { int port = 8080; String topoId = "CURRENT";
@Test public void testCanHandleMultipleTopics() { try (SimulatedTime time = new SimulatedTime()) {
try (SimulatedTime simulatedTime = new SimulatedTime()) { KafkaSpout<String, String> spout = SpoutWithMockedConsumerSetupHelper.setupSpout(spoutConfig, conf, contextMock, collectorMock, consumerMock, partition); Map<TopicPartition, List<ConsumerRecord<String, String>>> records = new HashMap<>();
conf.put(Config.TOPOLOGY_MAX_ERROR_REPORT_PER_INTERVAL, 4); try (SimulatedTime t = new SimulatedTime()) { ReportError report = new ReportError(conf, state, topo, comp, context); report.report(new RuntimeException("ERROR-1"));