Class MicrodataParserTest
- java.lang.Object
-
- org.apache.any23.extractor.microdata.MicrodataParserTest
-
public class MicrodataParserTest extends Object
Test case forMicrodataParser.- Author:
- Michele Mostarda (mostarda@fbk.eu)
-
-
Constructor Summary
Constructors Constructor Description MicrodataParserTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtestAdvancedItemrefManagement()voidtestBasicFeatures()voidtestDeferProperties()Test the main use case ofMicrodataParser.deferProperties(String...)voidtestDeferPropertiesLoopDetection1()Tests the loop detection inMicrodataParser.deferProperties(String...).voidtestDeferPropertiesLoopDetection2()Tests the deep loop detection inMicrodataParser.deferProperties(String...).voidtestDeferPropertiesStateManagement()Tests that the loop detection works property even with multiple calls ofMicrodataParser.deferProperties(String...)over the same item props.voidtestGetContentAsDate()voidtestGetDateConcurrent()voidtestMicrodataJSONSerialization()voidtestNestedMicrodata()
-
-
-
Method Detail
-
testBasicFeatures
public void testBasicFeatures() throws IOException- Throws:
IOException
-
testNestedMicrodata
public void testNestedMicrodata() throws IOException- Throws:
IOException
-
testAdvancedItemrefManagement
public void testAdvancedItemrefManagement() throws IOException- Throws:
IOException
-
testMicrodataJSONSerialization
public void testMicrodataJSONSerialization() throws IOException- Throws:
IOException
-
testGetContentAsDate
public void testGetContentAsDate() throws IOException, ParseException- Throws:
IOExceptionParseException
-
testDeferProperties
public void testDeferProperties() throws IOException, MicrodataParserExceptionTest the main use case ofMicrodataParser.deferProperties(String...)- Throws:
IOException- if there is an error processing the input dataMicrodataParserException- if there is an error within theMicrodataParser
-
testDeferPropertiesLoopDetection1
public void testDeferPropertiesLoopDetection1() throws IOException, MicrodataParserExceptionTests the loop detection inMicrodataParser.deferProperties(String...).- Throws:
IOException- if there is an error processing the input dataMicrodataParserException- if there is an error within theMicrodataParser
-
testDeferPropertiesLoopDetection2
public void testDeferPropertiesLoopDetection2() throws IOException, MicrodataParserExceptionTests the deep loop detection inMicrodataParser.deferProperties(String...).- Throws:
IOException- if there is an error processing the input dataMicrodataParserException- if there is an error within theMicrodataParser
-
testDeferPropertiesStateManagement
public void testDeferPropertiesStateManagement() throws IOException, MicrodataParserExceptionTests that the loop detection works property even with multiple calls ofMicrodataParser.deferProperties(String...)over the same item props.- Throws:
IOException- if there is an error processing the input dataMicrodataParserException- if there is an error within theMicrodataParser
-
-