private CIProperties getContentRisProperties() { CIProperties cProps = new CIProperties(); // the CU checks the X-Lockss-content-type, not the content-type to determine encoding cProps.put(CachedUrl.PROPERTY_CONTENT_TYPE, "text/plain; charset=UTF-8"); cProps.put("Content-type", "text/plain; charset=UTF-8"); return cProps; }
public void setUp() throws Exception { super.setUp(); tarHeader = new CIProperties(); tarHeader.put(CachedUrl.PROPERTY_CONTENT_TYPE, "application/tar"); tarAu = createTarAu(); // for tests that also check for content els_mle = new FileMetadataListExtractor( new ElsevierDTD5XmlSourceMetadataExtractorFactory .ElsevierDTD5XmlSourceMetadataExtractor()); // for tests that use a no-check-for-pdf version of the extractor nocheck_mle = new FileMetadataListExtractor(new TestElsevierDTD5MetadataExtractor()); setUpExpectedTarContent(); }