Author: rdonkin
Date: Mon Dec  9 06:08:38 2013
New Revision: 1549466

URL: http://svn.apache.org/r1549466
Log:
Change Test Method.

Modified:
    
creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/report/xml/XmlReportFactoryTest.java
    
creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/report/xml/XmlReportTest.java
    
creadur/rat/branches/gsoc/apache-rat-tasks/src/test/resources/antunit/report-normal-operation.xml

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=1549466&r1=1549465&r2=1549466&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
 Mon Dec  9 06:08:38 2013
@@ -112,7 +112,7 @@ public class XmlReportFactoryTest {
                assertTrue("Preamble and document element are OK",
                                output.startsWith("<?xml version='1.0'?>"
                                                + "<rat-report timestamp="));
-               assertFalse("Part after timestamp attribute is OK", 
output.endsWith(">"
+               assertTrue("Part after timestamp attribute is OK", 
output.endsWith(">"
                                + "<resource name='"
                                + elementsPath
                                + "/ILoggerFactory.java'><type 
name='standard'/></resource>"
@@ -158,7 +158,7 @@ public class XmlReportFactoryTest {
                                                
MetaData.RAT_DOCUMENT_CATEGORY_VALUE_NOTICE));
                assertEquals(
                                "Standard files",
-                               Integer.valueOf(6),
+                               Integer.valueOf(5),
                                statistic.getDocumentCategoryMap().get(
                                                
MetaData.RAT_DOCUMENT_CATEGORY_VALUE_STANDARD));
                assertEquals(

Modified: 
creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/report/xml/XmlReportTest.java
URL: 
http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/report/xml/XmlReportTest.java?rev=1549466&r1=1549465&r2=1549466&view=diff
==============================================================================
--- 
creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/report/xml/XmlReportTest.java
 (original)
+++ 
creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/report/xml/XmlReportTest.java
 Mon Dec  9 06:08:38 2013
@@ -119,7 +119,7 @@ public class XmlReportTest {
                assertTrue("Preamble and document element are OK",
                                output.startsWith("<?xml version='1.0'?>"
                                                + "<rat-report timestamp="));
-               assertFalse(
+               assertTrue(
                                "Part after timestamp attribute is OK",
                                output.endsWith(">" + "<resource name='"
                                                + elementsPath

Modified: 
creadur/rat/branches/gsoc/apache-rat-tasks/src/test/resources/antunit/report-normal-operation.xml
URL: 
http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-tasks/src/test/resources/antunit/report-normal-operation.xml?rev=1549466&r1=1549465&r2=1549466&view=diff
==============================================================================
--- 
creadur/rat/branches/gsoc/apache-rat-tasks/src/test/resources/antunit/report-normal-operation.xml
 (original)
+++ 
creadur/rat/branches/gsoc/apache-rat-tasks/src/test/resources/antunit/report-normal-operation.xml
 Mon Dec  9 06:08:38 2013
@@ -305,16 +305,16 @@ import org.apache.rat.api.Document;
 import org.apache.rat.api.MetaData;
 import org.apache.rat.analysis.IHeaderMatcher;
 import org.apache.rat.analysis.license.BaseLicense;
-import org.apache.rat.analysis.RatHeaderAnalysisException;
 public class Matcher extends BaseLicense implements IHeaderMatcher {
     public Matcher() {
-        super(new MetaData.Datum(MetaData.RAT_URL_LICENSE_FAMILY_CATEGORY, 
"EXMPL"),
-              new MetaData.Datum(MetaData.RAT_URL_LICENSE_FAMILY_NAME, 
"Example License"),
-              "");
+        //super(new MetaData.Datum(MetaData.RAT_URL_LICENSE_FAMILY_CATEGORY, 
"EXMPL"),
+        //     new MetaData.Datum(MetaData.RAT_URL_LICENSE_FAMILY_NAME, 
"Example License"),
+         //     "");
+       super();
     }
     public void reset() {}
     
-    public boolean match(Document subject, String line) throws 
RatHeaderAnalysisException {
+    public boolean match(Document subject, String line) {
         reportOnLicense(subject);
         return true;
     }


Reply via email to