Author: jukka
Date: Sun Feb 17 03:45:39 2008
New Revision: 628479
URL: http://svn.apache.org/viewvc?rev=628479&view=rev
Log:
TIKA-123: Structured MS Office parsing
- Fixed incorrect test case
Modified:
incubator/tika/trunk/src/test/java/org/apache/tika/TestParsers.java
Modified: incubator/tika/trunk/src/test/java/org/apache/tika/TestParsers.java
URL:
http://svn.apache.org/viewvc/incubator/tika/trunk/src/test/java/org/apache/tika/TestParsers.java?rev=628479&r1=628478&r2=628479&view=diff
==============================================================================
--- incubator/tika/trunk/src/test/java/org/apache/tika/TestParsers.java
(original)
+++ incubator/tika/trunk/src/test/java/org/apache/tika/TestParsers.java Sun Feb
17 03:45:39 2008
@@ -127,15 +127,10 @@
}
public void testEXCELExtraction() throws Exception {
- final String expected = "Numbers and their Squares Number Square 1.0 "
- + "1.0 2.0 4.0 3.0 9.0 4.0 16.0 5.0 25.0 6.0 36.0 7.0 49.0 8.0 "
- + "64.0 9.0 81.0 10.0 100.0 11.0 121.0 12.0 144.0 13.0 169.0 "
- + "14.0 196.0 15.0 225.0 Written and saved in Microsoft Excel "
- + "X for Mac Service Release 1.";
+ final String expected = "Numbers and their Squares";
File file = getTestFile("testEXCEL.xls");
String s1 = ParseUtils.getStringContent(file, tc);
- String s2 = ParseUtils.getStringContent(file, tc,
- "application/vnd.ms-excel");
+ String s2 = ParseUtils.getStringContent(file, tc,
"application/vnd.ms-excel");
assertEquals(s1, s2);
assertTrue("Text does not contain '" + expected + "'", s1
.contains(expected));