public class TNEFParserTest extends AbstractPOIContainerExtractionTest {
private static final String file = "testWINMAIL.dat";
public void testBasics() throws Exception {
TikaInputStream stream = getTestFile(file);
ContainerAwareDetector detector =
new ContainerAwareDetector(MimeTypes.getDefaultMimeTypes());
try {
assertEquals(
MediaType.application("vnd.ms-tnef"),
detector.detect(stream, new Metadata()));
} finally {
stream.close();
}
}