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:45 UTC
svn commit: r1549286 -
/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:45 2013
New Revision: 1549286
URL: http://svn.apache.org/r1549286
Log:
Add java doc.
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=1549286&r1=1549285&r2=1549286&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:45 2013
@@ -26,11 +26,23 @@ import org.apache.rat.report.xml.writer.
import org.junit.Before;
import org.junit.Test;
+/**
+ * The Class XmlWriterUtilsTest.
+ */
public class XmlWriterUtilsTest {
+ /** The out. */
StringWriter out;
+
+ /** The writer. */
IXmlWriter writer;
+ /**
+ * Sets the up.
+ *
+ * @throws Exception
+ * the exception
+ */
@Before
public void setUp() throws Exception {
out = new StringWriter();
@@ -38,6 +50,12 @@ public class XmlWriterUtilsTest {
writer.openElement("alpha");
}
+ /**
+ * Write true.
+ *
+ * @throws Exception
+ * the exception
+ */
@Test
public void writeTrue() throws Exception {
new XmlWriterUtils().writeAttribute(writer, "name", true);
@@ -45,6 +63,12 @@ public class XmlWriterUtilsTest {
out.toString());
}
+ /**
+ * Write false.
+ *
+ * @throws Exception
+ * the exception
+ */
@Test
public void writeFalse() throws Exception {
new XmlWriterUtils().writeAttribute(writer, "name", false);