You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by ta...@apache.org on 2018/05/30 20:16:06 UTC

[tika] branch branch_1x updated: TIKA-2100 -- fix unit test

This is an automated email from the ASF dual-hosted git repository.

tallison pushed a commit to branch branch_1x
in repository https://gitbox.apache.org/repos/asf/tika.git


The following commit(s) were added to refs/heads/branch_1x by this push:
     new e9d807d  TIKA-2100 -- fix unit test
e9d807d is described below

commit e9d807de07d0d592878e147b8e103930c46ddc21
Author: tballison <ta...@mitre.org>
AuthorDate: Wed May 30 14:49:42 2018 -0400

    TIKA-2100 -- fix unit test
---
 .../src/test/java/org/apache/tika/parser/html/HtmlParserTest.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tika-parsers/src/test/java/org/apache/tika/parser/html/HtmlParserTest.java b/tika-parsers/src/test/java/org/apache/tika/parser/html/HtmlParserTest.java
index 2d09681..fab639e 100644
--- a/tika-parsers/src/test/java/org/apache/tika/parser/html/HtmlParserTest.java
+++ b/tika-parsers/src/test/java/org/apache/tika/parser/html/HtmlParserTest.java
@@ -740,7 +740,7 @@ public class HtmlParserTest extends TikaTest {
         String content = sw.toString();
 
         // Should have <html>, <head>, <title>, <body> elements
-        assertTrue(Pattern.matches("(?s).*<html xmlns=\"http://www.w3.org/1999/xhtml\">.*</html>.*$", content));
+        assertTrue(Pattern.matches("(?s).*<html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en\">.*</html>.*$", content));
         assertTrue(Pattern.matches("(?s).*<head>.*</head>.*$", content));
         assertTrue(Pattern.matches("(?s).*<title>Title</title>.*$", content));
         assertTrue(Pattern.matches("(?s).*<body>.*</body>.*$", content));

-- 
To stop receiving notification emails like this one, please contact
tallison@apache.org.