You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@creadur.apache.org by rd...@apache.org on 2013/12/08 22:24:19 UTC
svn commit: r1549285 -
/creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/report/xml/writer/XmlWriterUtilsTest.java
Author: rdonkin
Date: Sun Dec 8 21:24:19 2013
New Revision: 1549285
URL: http://svn.apache.org/r1549285
Log:
Format Code.
Modified:
creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/report/xml/writer/XmlWriterUtilsTest.java
Modified: creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/report/xml/writer/XmlWriterUtilsTest.java
URL: http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/report/xml/writer/XmlWriterUtilsTest.java?rev=1549285&r1=1549284&r2=1549285&view=diff
==============================================================================
--- creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/report/xml/writer/XmlWriterUtilsTest.java (original)
+++ creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/report/xml/writer/XmlWriterUtilsTest.java Sun Dec 8 21:24:19 2013
@@ -15,7 +15,7 @@
* KIND, either express or implied. See the License for the *
* specific language governing permissions and limitations *
* under the License. *
- */
+ */
package org.apache.rat.report.xml.writer;
import static org.junit.Assert.assertEquals;
@@ -28,25 +28,27 @@ import org.junit.Test;
public class XmlWriterUtilsTest {
- StringWriter out;
- IXmlWriter writer;
+ StringWriter out;
+ IXmlWriter writer;
- @Before
- public void setUp() throws Exception {
- out = new StringWriter();
- writer = new XmlWriter(out);
- writer.openElement("alpha");
- }
+ @Before
+ public void setUp() throws Exception {
+ out = new StringWriter();
+ writer = new XmlWriter(out);
+ writer.openElement("alpha");
+ }
- @Test
- public void writeTrue() throws Exception {
+ @Test
+ public void writeTrue() throws Exception {
new XmlWriterUtils().writeAttribute(writer, "name", true);
- assertEquals("Attribute written as True", "<alpha name='true'", out.toString());
- }
+ assertEquals("Attribute written as True", "<alpha name='true'",
+ out.toString());
+ }
- @Test
- public void writeFalse() throws Exception {
+ @Test
+ public void writeFalse() throws Exception {
new XmlWriterUtils().writeAttribute(writer, "name", false);
- assertEquals("Attribute written as False", "<alpha name='false'", out.toString());
- }
+ assertEquals("Attribute written as False", "<alpha name='false'",
+ out.toString());
+ }
}