Author: andygumbrecht
Date: Tue Jan 29 16:14:42 2013
New Revision: 1439973
URL: http://svn.apache.org/viewvc?rev=1439973&view=rev
Log:
A newline is not going to break anything other than the assert
Modified:
tomee/tomee/trunk/container/openejb-jee-accessors/src/test/java/org/apache/openejb/sxc/EjbJarXmlTest.java
Modified:
tomee/tomee/trunk/container/openejb-jee-accessors/src/test/java/org/apache/openejb/sxc/EjbJarXmlTest.java
URL:
http://svn.apache.org/viewvc/tomee/tomee/trunk/container/openejb-jee-accessors/src/test/java/org/apache/openejb/sxc/EjbJarXmlTest.java?rev=1439973&r1=1439972&r2=1439973&view=diff
==============================================================================
---
tomee/tomee/trunk/container/openejb-jee-accessors/src/test/java/org/apache/openejb/sxc/EjbJarXmlTest.java
(original)
+++
tomee/tomee/trunk/container/openejb-jee-accessors/src/test/java/org/apache/openejb/sxc/EjbJarXmlTest.java
Tue Jan 29 16:14:42 2013
@@ -34,7 +34,7 @@ public class EjbJarXmlTest extends TestC
* @throws Exception
*/
public void testEjbJar() throws Exception {
- String fileName = "ejb-jar-example1.xml";
+ final String fileName = "ejb-jar-example1.xml";
final Event test = Event.start("Test");
@@ -53,17 +53,18 @@ public class EjbJarXmlTest extends TestC
unmarshalEvent.stop();
- ByteArrayOutputStream baos = new ByteArrayOutputStream();
+ final ByteArrayOutputStream baos = new ByteArrayOutputStream();
final Event marshall = Event.start("marshall");
Sxc.marshall(jaxbType, value, baos);
marshall.stop();
- final String result = new String(baos.toByteArray());
- assertEquals(expected, result);
+ final String result = new String(baos.toByteArray(), "UTF-8");
+ assertEquals(expected.trim(), result.trim());
test.stop();
}
+ @SuppressWarnings("UseOfSystemOutOrSystemErr")
private static class Event {
protected final long start = System.nanoTime();
private final String description;