Author: rdonkin
Date: Sun Dec  8 21:46:50 2013
New Revision: 1549331

URL: http://svn.apache.org/r1549331
Log:
Apply PMD change.

Modified:
    
creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/report/xml/XmlReportFactoryTest.java

Modified: 
creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/report/xml/XmlReportFactoryTest.java
URL: 
http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/report/xml/XmlReportFactoryTest.java?rev=1549331&r1=1549330&r2=1549331&view=diff
==============================================================================
--- 
creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/report/xml/XmlReportFactoryTest.java
 (original)
+++ 
creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/report/xml/XmlReportFactoryTest.java
 Sun Dec  8 21:46:50 2013
@@ -22,12 +22,14 @@ import static org.junit.Assert.assertEqu
 import static org.junit.Assert.assertTrue;
 
 import java.io.File;
+import java.io.IOException;
 import java.io.StringWriter;
 import java.util.regex.Pattern;
 
 import org.apache.rat.ReportConfiguration;
 import org.apache.rat.analysis.MockLicenseMatcher;
 import org.apache.rat.api.MetaData;
+import org.apache.rat.api.RatException;
 import org.apache.rat.report.RatReport;
 import org.apache.rat.report.claim.ClaimStatistic;
 import org.apache.rat.report.xml.writer.IXmlWriter;
@@ -47,10 +49,10 @@ public class XmlReportFactoryTest {
                        .compile(".svn|Empty.txt");
 
        /** The out. */
-       StringWriter out;
+       private StringWriter out;
 
        /** The writer. */
-       IXmlWriter writer;
+       private IXmlWriter writer;
 
        /**
         * Sets the up.
@@ -72,22 +74,24 @@ public class XmlReportFactoryTest {
         *            the directory
         * @param report
         *            the report
-        * @throws Exception
-        *             the exception
+        * @throws RatException
+        *             the rat exception
         */
-       private void report(DirectoryWalker directory, RatReport report)
-                       throws Exception {
+       private void report(final DirectoryWalker directory, final RatReport 
report)
+                       throws RatException {
                directory.run(report);
        }
 
        /**
         * Standard report.
         * 
-        * @throws Exception
-        *             the exception
+        * @throws RatException
+        *             the rat exception
+        * @throws IOException
+        *             Signals that an I/O exception has occurred.
         */
        @Test
-       public void standardReport() throws Exception {
+       public void standardReport() throws RatException, IOException {
                final String elementsPath = Resources
                                .getResourceDirectory("elements/Source.java");
                final MockLicenseMatcher mockLicenseMatcher = new 
MockLicenseMatcher();


Reply via email to