private static final String JAVA7_STRING = "http://docs.oracle.com/javase/7/docs/api/java/lang/String.html";
private static final String JAVA8_STRING = "http://docs.oracle.com/javase/8/docs/api/java/lang/String.html";
@Test
public void testGetMethods() throws Exception {
final DTD dtd = DTD.getDTD("html.dtd");
final String javaDocPath = String.class.getName().replaceAll("\\.", "/") + ".html";
final JavadocParser htmlParser = new JavadocParser(dtd, javaDocPath);
htmlParser.parse(new InputStreamReader(new URL(JAVA6_STRING).openStream(), "UTF-8"));
assertNull("Java6 getErrorMessage", htmlParser.getErrorMessage());