Project

General

Profile

« Previous | Next » 

Revision 47495

Test for VTD and CDATA, sadly failing hence ignored

View differences:

modules/dnet-core-components/branches/saxonHE/src/test/java/eu/dnetlib/miscutils/functional/xml/VtdTest.java
1
package eu.dnetlib.miscutils.functional.xml;
2

  
3
import java.io.ByteArrayOutputStream;
4
import java.io.IOException;
5

  
6
import com.ximpleware.*;
7
import org.junit.Ignore;
8
import org.junit.Test;
9

  
10
/**
11
 * Created by Alessia Bardi on 14/06/2017.
12
 *
13
 * @author Alessia Bardi
14
 */
15
public class VtdTest {
16

  
17
	private String xmlCDATA = "<p><![CDATA[hello]]</p>";
18

  
19
	@Ignore
20
	@Test
21
	public void testCDATA() throws ParseException, XPathParseException, NavException, ModifyException, IOException, TranscodeException, XPathEvalException {
22
		VTDGen vg = new VTDGen();
23
		ByteArrayOutputStream baos = new ByteArrayOutputStream();
24
		vg.setDoc(xmlCDATA.getBytes());
25
		vg.parse(false);
26
	}
27

  
28
}

Also available in: Unified diff