Skip to content

Commit e6735f0

Browse files
author
Simon MacMullen
committed
Fix FTBFS treating checked exceptions with the contempt they deserve.
1 parent f29242f commit e6735f0

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

test/src/com/rabbitmq/examples/perf/BrokerValue.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
package com.rabbitmq.examples.perf;
1818

19+
import java.io.IOException;
20+
1921
public class BrokerValue implements VariableValue {
2022
private final Broker broker;
2123

@@ -24,7 +26,7 @@ public BrokerValue(Broker broker) {
2426
}
2527

2628
@Override
27-
public void setup(MulticastParams params) {
29+
public void setup(MulticastParams params) throws IOException {
2830
broker.start();
2931
}
3032

test/src/com/rabbitmq/examples/perf/RateVsLatencyScenario.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public RateVsLatencyScenario(String name, ConnectionFactory factory, MulticastPa
3333
}
3434

3535
@Override
36-
public void run() throws IOException, InterruptedException {
36+
public void run() throws Exception {
3737
SimpleScenario s = new SimpleScenario(factory, params);
3838
s.run();
3939
SimpleScenarioStats m = s.getStats();

test/src/com/rabbitmq/examples/perf/VariableValue.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
package com.rabbitmq.examples.perf;
1818

1919
public interface VariableValue {
20-
public void setup(MulticastParams params);
20+
public void setup(MulticastParams params) throws Exception;
2121
public void teardown(MulticastParams params);
2222

2323
public String getName();

test/src/com/rabbitmq/examples/perf/VaryingScenario.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ public VaryingScenario(String name, ConnectionFactory factory,
4444
}
4545

4646
@Override
47-
public void run() throws IOException, InterruptedException {
47+
public void run() throws Exception {
4848
run(variables, new ArrayList<VariableValue>());
4949
}
5050

51-
private void run(Variable[] variables, List<VariableValue> values) throws IOException, InterruptedException {
51+
private void run(Variable[] variables, List<VariableValue> values) throws Exception {
5252
if (variables.length > 0) {
5353
Variable variable = variables[0];
5454
Variable[] rest = rest(variables);

0 commit comments

Comments
 (0)