ALF-11592: Post-upgrade differencing bug

Character data now handled correctly in XML parsing logic.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32200 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Matt Ward
2011-11-22 17:59:24 +00:00
parent e24f355d47
commit 9be594eee2
3 changed files with 63 additions and 56 deletions

View File

@@ -38,6 +38,8 @@ import org.alfresco.util.schemacomp.validator.DbValidator;
import org.alfresco.util.schemacomp.validator.NameValidator;
import org.junit.Before;
import org.junit.Test;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;
/**
* Tests for the XMLToSchema class.
@@ -52,7 +54,8 @@ public class XMLToSchemaTest
@Before
public void setUp() throws Exception
{
in = new BufferedInputStream(getClass().getResourceAsStream("xml_to_schema_test.xml"));
Resource testFileResource = new ClassPathResource("schemacomp/xml_to_schema_test.xml");
in = new BufferedInputStream(testFileResource.getInputStream());
xmlToSchema = new XMLToSchema(in);
}