ThresholdValues tv = (ThresholdValues) combination[2];
ThresholdType type = (ThresholdType) combination[3];
if (source == null) {
try {
new ThresholdEvent(source, calculable, tv, type);
Assert.fail("IllegalArgumentException expected but not thrown");
} catch (IllegalArgumentException e) {
}
} else {
ThresholdEvent event = new ThresholdEvent(source, calculable, tv, type);
Assert.assertSame(source, event.getSource());
Assert.assertSame(calculable, event.getCalculable());
Assert.assertSame(tv, event.getThresholdValues());
Assert.assertEquals(type, event.getThresholdType());
}
}
}