Polishing
This commit is contained in:
@@ -29,12 +29,12 @@ public abstract class AbstractMessageListenerContainerTests {
|
||||
protected abstract AbstractMessageListenerContainer getContainer();
|
||||
|
||||
|
||||
@Test(expected=IllegalArgumentException.class)
|
||||
@Test(expected = IllegalArgumentException.class)
|
||||
public void testSettingMessageListenerToANullType() throws Exception {
|
||||
getContainer().setMessageListener(null);
|
||||
}
|
||||
|
||||
@Test(expected=IllegalArgumentException.class)
|
||||
@Test(expected = IllegalArgumentException.class)
|
||||
public void testSettingMessageListenerToAnUnsupportedType() throws Exception {
|
||||
getContainer().setMessageListener("Bingo");
|
||||
}
|
||||
|
||||
@@ -75,13 +75,13 @@ public class SimpleMessageListenerContainerTests extends AbstractMessageListener
|
||||
container.isPubSubNoLocal());
|
||||
}
|
||||
|
||||
@Test(expected=IllegalArgumentException.class)
|
||||
@Test(expected = IllegalArgumentException.class)
|
||||
public void testSettingConcurrentConsumersToZeroIsNotAllowed() throws Exception {
|
||||
container.setConcurrentConsumers(0);
|
||||
container.afterPropertiesSet();
|
||||
}
|
||||
|
||||
@Test(expected=IllegalArgumentException.class)
|
||||
@Test(expected = IllegalArgumentException.class)
|
||||
public void testSettingConcurrentConsumersToANegativeValueIsNotAllowed() throws Exception {
|
||||
container.setConcurrentConsumers(-198);
|
||||
container.afterPropertiesSet();
|
||||
|
||||
@@ -28,9 +28,9 @@ import static org.junit.Assert.*;
|
||||
* @author Rick Evans
|
||||
* @author Chris Beams
|
||||
*/
|
||||
public final class JmsAccessorTests {
|
||||
public class JmsAccessorTests {
|
||||
|
||||
@Test(expected=IllegalArgumentException.class)
|
||||
@Test(expected = IllegalArgumentException.class)
|
||||
public void testChokesIfConnectionFactoryIsNotSupplied() throws Exception {
|
||||
JmsAccessor accessor = new StubJmsAccessor();
|
||||
accessor.afterPropertiesSet();
|
||||
@@ -55,7 +55,7 @@ public final class JmsAccessorTests {
|
||||
accessor.getSessionAcknowledgeMode());
|
||||
}
|
||||
|
||||
@Test(expected=IllegalArgumentException.class)
|
||||
@Test(expected = IllegalArgumentException.class)
|
||||
public void testSetAcknowledgeModeNameChokesIfBadAckModeIsSupplied() throws Exception {
|
||||
new StubJmsAccessor().setSessionAcknowledgeModeName("Tally ho chaps!");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user