@Test public void testUnicodeCharacter() throws Throwable { Resource schema = new ClassPathResource("edfiXsd-SLI/SLI-Interchange-StudentParent.xsd"); Resource xml = new ClassPathResource("parser/InterchangeStudentParent/StudentWithUnicode.xml"); Resource expectedJson = new ClassPathResource("parser/InterchangeStudentParent/StudentWithUnicode.expected.json"); RecordVisitor mockVisitor = Mockito.mock(RecordVisitor.class); EdfiRecordUnmarshaller.parse(xml.getInputStream(), schema, tp, mockVisitor, new DummyMessageReport(), new SimpleReportStats(), new JobSource(xml.getFilename())); EntityTestHelper.captureAndCompare(mockVisitor, expectedJson); }
public static void parse(InputStream input, Resource schemaResource, TypeProvider typeProvider, RecordVisitor visitor, AbstractMessageReport messageReport, ReportStats reportStats, Source source) throws SAXException, IOException, XmlParseException { EdfiRecordUnmarshaller parser = new EdfiRecordUnmarshaller(typeProvider, messageReport, reportStats, source); parser.addVisitor(visitor); parser.process(input, schemaResource); }
EdfiRecordUnmarshaller extends EdfiRecordParser { public static void parse(InputStream input, Resource schemaResource, TypeProvider typeProvider, RecordVisitor visitor, AbstractMessageReport messageReport, ReportStats reportStats, Source source) throws SAXException, IOException, XmlParseException { EdfiRecordUnmarshaller parser = new EdfiRecordUnmarshaller(typeProvider, messageReport, reportStats, source); parser.addVisitor(visitor); parser.process(input, schemaResource); } }
EdfiRecordUnmarshaller extends EdfiRecordParser { public static void parse(InputStream input, Resource schemaResource, TypeProvider typeProvider, RecordVisitor visitor, AbstractMessageReport messageReport, ReportStats reportStats, Source source) throws SAXException, IOException, XmlParseException { EdfiRecordUnmarshaller parser = new EdfiRecordUnmarshaller(typeProvider, messageReport, reportStats, source); parser.addVisitor(visitor); parser.process(input, schemaResource); } EdfiRecordUnmarshaller(TypeProvider typeProvider, AbstractMessageReport messageReport,
            ReportStats reportStats, Source source); }
EdfiRecordUnmarshaller extends EdfiRecordParser { public static void parse(InputStream input, Resource schemaResource, TypeProvider typeProvider, RecordVisitor visitor, AbstractMessageReport messageReport, ReportStats reportStats, Source source) throws SAXException, IOException, XmlParseException { EdfiRecordUnmarshaller parser = new EdfiRecordUnmarshaller(typeProvider, messageReport, reportStats, source); parser.addVisitor(visitor); parser.process(input, schemaResource); } EdfiRecordUnmarshaller(TypeProvider typeProvider, AbstractMessageReport messageReport,
            ReportStats reportStats, Source source); static void parse(InputStream input, Resource schemaResource, TypeProvider typeProvider,
            RecordVisitor visitor, AbstractMessageReport messageReport, ReportStats reportStats, Source source); @Override void setDocumentLocator(Locator locator); @Override void startElement(String uri, String localName, String qName, Attributes attributes); @Override void endElement(String uri, String localName, String qName); @Override void characters(char[] ch, int start, int length); Location getCurrentLocation(); @Override void error(SAXParseException exception); @Override void fatalError(SAXParseException exception); void addVisitor(RecordVisitor recordVisitor); }
EdfiRecordUnmarshaller extends EdfiRecordParser { public static void parse(InputStream input, Resource schemaResource, TypeProvider typeProvider, RecordVisitor visitor, AbstractMessageReport messageReport, ReportStats reportStats, Source source) throws SAXException, IOException, XmlParseException { EdfiRecordUnmarshaller parser = new EdfiRecordUnmarshaller(typeProvider, messageReport, reportStats, source); parser.addVisitor(visitor); parser.process(input, schemaResource); } EdfiRecordUnmarshaller(TypeProvider typeProvider, AbstractMessageReport messageReport,
            ReportStats reportStats, Source source); static void parse(InputStream input, Resource schemaResource, TypeProvider typeProvider,
            RecordVisitor visitor, AbstractMessageReport messageReport, ReportStats reportStats, Source source); @Override void setDocumentLocator(Locator locator); @Override void startElement(String uri, String localName, String qName, Attributes attributes); @Override void endElement(String uri, String localName, String qName); @Override void characters(char[] ch, int start, int length); Location getCurrentLocation(); @Override void error(SAXParseException exception); @Override void fatalError(SAXParseException exception); void addVisitor(RecordVisitor recordVisitor);  }