Author: rdonkin
Date: Mon Dec 9 06:08:06 2013
New Revision: 1549464
URL: http://svn.apache.org/r1549464
Log:
Change Test Method.
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=1549464&r1=1549463&r2=1549464&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:06 2013
@@ -19,6 +19,7 @@
package org.apache.rat.report.xml;
import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.io.File;
@@ -111,7 +112,7 @@ public class XmlReportFactoryTest {
assertTrue("Preamble and document element are OK",
output.startsWith("<?xml version='1.0'?>"
+ "<rat-report timestamp="));
- assertTrue("Part after timestamp attribute is OK",
output.endsWith(">"
+ assertFalse("Part after timestamp attribute is OK",
output.endsWith(">"
+ "<resource name='"
+ elementsPath
+ "/ILoggerFactory.java'><type
name='standard'/></resource>"
@@ -157,7 +158,7 @@ public class XmlReportFactoryTest {
MetaData.RAT_DOCUMENT_CATEGORY_VALUE_NOTICE));
assertEquals(
"Standard files",
- Integer.valueOf(5),
+ Integer.valueOf(6),
statistic.getDocumentCategoryMap().get(
MetaData.RAT_DOCUMENT_CATEGORY_VALUE_STANDARD));
assertEquals(