fixing typos in comments and tests

This commit is contained in:
Mark Fisher
2010-11-22 18:28:02 -05:00
parent 4ded81bd1c
commit d0f1fdde10
8 changed files with 16 additions and 16 deletions

View File

@@ -180,7 +180,7 @@ public abstract class AbstractReplyProducingMessageHandler extends AbstractMessa
}
else {
throw new MessageDeliveryException(message,
"a non-null reply channel value of type MesssageChannel or String is required");
"a non-null reply channel value of type MessageChannel or String is required");
}
}

View File

@@ -470,7 +470,7 @@ public class MessagingTemplateTests {
}
@Test
public void recieveAndConvertFromDefaultChannel() {
public void receiveAndConvertFromDefaultChannel() {
QueueChannel channel = new QueueChannel();
channel.send(new GenericMessage<String>("test"));
MessagingTemplate template = new MessagingTemplate();

View File

@@ -289,7 +289,7 @@ public abstract class AbstractMailReceiver extends IntegrationObjectSupport impl
}
/**
* Optional method allowing you to set additional flags.
* Currently only implemented in IMapMailReceiever.
* Currently only implemented in IMapMailReceiver.
*
* @param message
* @throws MessagingException

View File

@@ -58,7 +58,7 @@ public class MailSendingMessageHandlerContextTests {
}
@Test
public void stringMesssagesWithConfiguration() {
public void stringMessagesWithConfiguration() {
this.handler.handleMessage(MailTestsHelper.createIntegrationMessage());
SimpleMailMessage mailMessage = MailTestsHelper.createSimpleMailMessage();
assertEquals("no mime message should have been sent",

View File

@@ -7,10 +7,10 @@
xmlns:int="http://www.springframework.org/schema/integration"
xmlns:int-mail="http://www.springframework.org/schema/integration/mail">
<int:channel id="recieveChannel"/>
<int:channel id="receiveChannel"/>
<int-mail:inbound-channel-adapter store-uri="imaps://[username]:[password]@imap.gmail.com/INBOX"
channel="recieveChannel">
channel="receiveChannel">
<int:poller max-messages-per-poll="1">
<int:interval-trigger interval="5000"/>
</int:poller>

View File

@@ -7,9 +7,9 @@
xmlns:int="http://www.springframework.org/schema/integration"
xmlns:int-mail="http://www.springframework.org/schema/integration/mail">
<int:channel id="recieveChannel"/>
<int:channel id="receiveChannel"/>
<int-mail:imap-idle-channel-adapter store-uri="imaps://[username]:[password]@imap.gmail.com/INBOX"
channel="recieveChannel"/>
channel="receiveChannel"/>
</beans>

View File

@@ -20,7 +20,7 @@
<int-mail:imap-idle-channel-adapter id="customAdapter"
store-uri="imaps://[username]:[password]@imap.gmail.com/INBOX"
channel="recieveChannel"
channel="receiveChannel"
auto-startup="true"
should-delete-messages="false"
java-mail-properties="javaMailProperties"/>
@@ -28,7 +28,7 @@
<int-mail:inbound-channel-adapter id="imapAdapter"
store-uri="imaps://[username]:[password]@imap.gmail.com/INBOX"
java-mail-properties="javaMailProperties"
channel="recieveChannel"
channel="receiveChannel"
should-delete-messages="true"
auto-startup="true">
<int:poller max-messages-per-poll="1">
@@ -36,10 +36,10 @@
</int:poller>
</int-mail:inbound-channel-adapter>
<int:channel id="recieveChannel"/>
<int:channel id="receiveChannel"/>
<int:service-activator input-channel="recieveChannel">
<bean class="org.springframework.integration.mail.config.GoogleTest.SampleReciever"/>
<int:service-activator input-channel="receiveChannel">
<bean class="org.springframework.integration.mail.config.GoogleTest.SampleReceiver"/>
</int:service-activator>
<util:properties id="javaMailProperties">

View File

@@ -48,8 +48,8 @@ public class DefaultChannelAccessPolicy implements ChannelAccessPolicy {
@SuppressWarnings("unchecked")
public DefaultChannelAccessPolicy(String sendAccess, String receiveAccess) {
boolean sendAccessDefined = StringUtils.hasText(sendAccess);
boolean recieveAccessDefined = StringUtils.hasText(receiveAccess);
Assert.isTrue(sendAccessDefined || recieveAccessDefined,
boolean receiveAccessDefined = StringUtils.hasText(receiveAccess);
Assert.isTrue(sendAccessDefined || receiveAccessDefined,
"At least one of 'sendAccess' and 'receiveAccess' must not be null.");
if (sendAccessDefined) {
String[] sendAccessValues = StringUtils.commaDelimitedListToStringArray(sendAccess);
@@ -61,7 +61,7 @@ public class DefaultChannelAccessPolicy implements ChannelAccessPolicy {
else {
configAttributeDefinitionForSend = Collections.EMPTY_SET;
}
if (recieveAccessDefined) {
if (receiveAccessDefined) {
String[] receiveAccessValues = StringUtils.commaDelimitedListToStringArray(receiveAccess);
configAttributeDefinitionForReceive = new HashSet<ConfigAttribute>();
for (String receiveAccessValue : receiveAccessValues) {