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 void
testAdvancedItemrefManagement()
void
testBasicFeatures()
void
testDeferProperties()
Test the main use case ofMicrodataParser.deferProperties(String...)
void
testDeferPropertiesLoopDetection1()
Tests the loop detection inMicrodataParser.deferProperties(String...)
.void
testDeferPropertiesLoopDetection2()
Tests the deep loop detection inMicrodataParser.deferProperties(String...)
.void
testDeferPropertiesStateManagement()
Tests that the loop detection works property even with multiple calls ofMicrodataParser.deferProperties(String...)
over the same item props.void
testGetContentAsDate()
void
testGetDateConcurrent()
void
testMicrodataJSONSerialization()
void
testNestedMicrodata()
-
-
-
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:
IOException
ParseException
-
testDeferProperties
public void testDeferProperties() throws IOException, MicrodataParserException
Test 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, MicrodataParserException
Tests 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, MicrodataParserException
Tests 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, MicrodataParserException
Tests 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
-
-