Author: gertv
Date: Mon Nov 12 11:14:20 2007
New Revision: 594261
URL: http://svn.apache.org/viewvc?rev=594261&view=rev
Log:
SM-1119: Source code formatting...
Modified:
incubator/servicemix/branches/servicemix-3.1/common/servicemix-soap/src/test/java/org/apache/servicemix/soap/marshalers/SoapWriterTest.java
Modified:
incubator/servicemix/branches/servicemix-3.1/common/servicemix-soap/src/test/java/org/apache/servicemix/soap/marshalers/SoapWriterTest.java
URL:
http://svn.apache.org/viewvc/incubator/servicemix/branches/servicemix-3.1/common/servicemix-soap/src/test/java/org/apache/servicemix/soap/marshalers/SoapWriterTest.java?rev=594261&r1=594260&r2=594261&view=diff
==============================================================================
---
incubator/servicemix/branches/servicemix-3.1/common/servicemix-soap/src/test/java/org/apache/servicemix/soap/marshalers/SoapWriterTest.java
(original)
+++
incubator/servicemix/branches/servicemix-3.1/common/servicemix-soap/src/test/java/org/apache/servicemix/soap/marshalers/SoapWriterTest.java
Mon Nov 12 11:14:20 2007
@@ -23,25 +23,25 @@
import junit.framework.TestCase;
public class SoapWriterTest extends TestCase {
-
- public void testGetContentTypeSimpleMessage() throws Exception {
- SoapWriter writer = new SoapWriter(new SoapMarshaler(), new
SoapMessage());
- assertEquals("text/xml;charset=UTF-8", writer.getContentType());
- }
-
- public void testGetContentTypeSimpleMessageDefaultCharsetChanged()
throws Exception {
- SourceTransformer.defaultCharset = "ISO-8859-1";
- SoapWriter writer = new SoapWriter(new SoapMarshaler(), new
SoapMessage());
- assertEquals("text/xml;charset=ISO-8859-1",
writer.getContentType());
- SourceTransformer.defaultCharset = "UTF-8";
- }
-
- public void testGetContentTypeComplexMessage() throws Exception {
- SoapMessage message = new SoapMessage();
- DataHandler handler = new DataHandler(new Object(),
"mime/type");
- message.addAttachment("attachment", handler);
-
- SoapWriter writer = new SoapWriter(new SoapMarshaler(),
message);
-
assertTrue(writer.getContentType().startsWith("multipart/related;
type=\"text/xml\""));
- }
+
+ public void testGetContentTypeSimpleMessage() throws Exception {
+ SoapWriter writer = new SoapWriter(new SoapMarshaler(), new
SoapMessage());
+ assertEquals("text/xml;charset=UTF-8", writer.getContentType());
+ }
+
+ public void testGetContentTypeSimpleMessageDefaultCharsetChanged() throws
Exception {
+ SourceTransformer.defaultCharset = "ISO-8859-1";
+ SoapWriter writer = new SoapWriter(new SoapMarshaler(), new
SoapMessage());
+ assertEquals("text/xml;charset=ISO-8859-1", writer.getContentType());
+ SourceTransformer.defaultCharset = "UTF-8";
+ }
+
+ public void testGetContentTypeComplexMessage() throws Exception {
+ SoapMessage message = new SoapMessage();
+ DataHandler handler = new DataHandler(new Object(), "mime/type");
+ message.addAttachment("attachment", handler);
+
+ SoapWriter writer = new SoapWriter(new SoapMarshaler(), message);
+ assertTrue(writer.getContentType().startsWith("multipart/related;
type=\"text/xml\""));
+ }
}