Repository: any23 Updated Branches: refs/heads/master 13d04c742 -> 10adbaa82
turn on strict flag Project: http://git-wip-us.apache.org/repos/asf/any23/repo Commit: http://git-wip-us.apache.org/repos/asf/any23/commit/31c174d0 Tree: http://git-wip-us.apache.org/repos/asf/any23/tree/31c174d0 Diff: http://git-wip-us.apache.org/repos/asf/any23/diff/31c174d0 Branch: refs/heads/master Commit: 31c174d050556b884de9d6aac876ce031b2e48a7 Parents: 3fb9271 Author: Hans <[email protected]> Authored: Wed Oct 24 14:33:20 2018 -0500 Committer: Hans <[email protected]> Committed: Thu Oct 25 17:52:10 2018 -0500 ---------------------------------------------------------------------- .../any23/extractor/microdata/MicrodataExtractorTest.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/any23/blob/31c174d0/core/src/test/java/org/apache/any23/extractor/microdata/MicrodataExtractorTest.java ---------------------------------------------------------------------- diff --git a/core/src/test/java/org/apache/any23/extractor/microdata/MicrodataExtractorTest.java b/core/src/test/java/org/apache/any23/extractor/microdata/MicrodataExtractorTest.java index 41c1a75..21035d9 100644 --- a/core/src/test/java/org/apache/any23/extractor/microdata/MicrodataExtractorTest.java +++ b/core/src/test/java/org/apache/any23/extractor/microdata/MicrodataExtractorTest.java @@ -18,7 +18,8 @@ package org.apache.any23.extractor.microdata; import org.apache.any23.Any23; -import org.apache.any23.extractor.ExtractionContext; +import org.apache.any23.configuration.DefaultConfiguration; +import org.apache.any23.configuration.ModifiableConfiguration; import org.apache.any23.extractor.ExtractionException; import org.apache.any23.extractor.ExtractorFactory; import org.apache.any23.extractor.IssueReport; @@ -132,7 +133,9 @@ public class MicrodataExtractorTest extends AbstractExtractorTestCase { final IRI resultPred = RDFUtils.iri("http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#result"); final IRI namePred = RDFUtils.iri("http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#name"); - Any23 microdataRunner = new Any23(MicrodataExtractorFactory.NAME); + ModifiableConfiguration config = DefaultConfiguration.copy(); + config.setProperty("any23.microdata.strict", DefaultConfiguration.FLAG_PROPERTY_ON); + Any23 microdataRunner = new Any23(config, MicrodataExtractorFactory.NAME); microdataRunner.setHTTPUserAgent("apache-any23-test-user-agent"); ArrayList<String> passedTests = new ArrayList<>(); TreeMap<String, String> failedTests = new TreeMap<>();
