use of org.gagravarr.tika.OggDetector in project tika by apache.
the class TikaDetectorsTest method testGetHTML.
@Test
public void testGetHTML() throws Exception {
Response response = WebClient.create(endPoint + DETECTORS_PATH).type("text/html").accept("text/html").get();
String text = getStringFromInputStream((InputStream) response.getEntity());
assertContains("<h2>DefaultDetector</h2>", text);
assertContains("Composite", text);
assertContains("<h3>OggDetector", text);
assertContains("<h3>POIFSContainerDetector", text);
assertContains("<h3>MimeTypes", text);
assertContains(OggDetector.class.getName(), text);
assertContains(POIFSContainerDetector.class.getName(), text);
assertContains(ZipContainerDetector.class.getName(), text);
assertContains(MimeTypes.class.getName(), text);
}
Aggregations