Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

Commit

Permalink
JAX_WS_COMMONS-89: SMTPTransportTube cannot handle quoted-printable C…
Browse files Browse the repository at this point in the history
…ontent-Transfer-Encoding

svn path=/trunk/; revision=1020


Former-commit-id: ea41d98b19f0fbb15ecf7d6dda4b4f70f26e0f15
  • Loading branch information
lukasj committed Feb 26, 2013
1 parent f0edf4c commit 61d8633
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion transport/smtp/jaxws-smtp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<forkMode>never</forkMode>
<!--<forkMode>never</forkMode>-->
</configuration>
</plugin>
</plugins>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public class MessageHandler implements MailHandler {
public void onNewMail(MimeMessage message) {
Packet reply = request.createClientResponse(null);
try {
codec.decode(message.getRawInputStream(), message.getContentType(), reply);
codec.decode(message.getInputStream(), message.getContentType(), reply);
} catch (Exception e) {
e.printStackTrace();
}
Expand Down
4 changes: 2 additions & 2 deletions transport/smtp/jaxws-smtp/src/test/java/pop3/SmtpTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ public void testApp() throws Exception {
Dispatch dispatch = service.createDispatch(new QName("FakePort"), jaxbCtx, Service.Mode.PAYLOAD,
feature);
dispatch.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, add);
Book resp = (Book) dispatch.invoke(new Book("Midnight's Children", "Salman Rushdie", "Unknown"));
Book resp = (Book) dispatch.invoke(new Book("čáp - Midnight's Children", "Salman Rushdie", "Unknown"));

assertNotNull(resp);
assertTrue(resp.getTitle().equals("Midnight's Children") &&
assertTrue(resp.getTitle().equals("čáp - Midnight's Children") &&
resp.getPublisher().equals("Unknown") &&
resp.getAuthor().equals("Salman Rushdie"));
}
Expand Down

0 comments on commit 61d8633

Please sign in to comment.