Save point: [skip ci]

* Tika test
This commit is contained in:
alandavis
2022-07-26 14:27:39 +01:00
parent 2243fad439
commit a04a26d6f6
3 changed files with 4 additions and 8 deletions

View File

@@ -236,7 +236,7 @@ public class Tika
}
catch (UnsupportedEncodingException e)
{
throw new IllegalStateException("Unsupported encoding "+e.getMessage(), e);
throw new IllegalArgumentException("Unsupported encoding "+e.getMessage(), e);
}
catch (SAXException | TikaException | IOException e)
{

View File

@@ -245,10 +245,6 @@ public class TikaTest extends AbstractBaseTest
{
mockTransformCommand(PDF, TXT, MIMETYPE_PDF, true);
targetEncoding = "rubbish";
// mockMvc.perform(
// mockMvcRequest(ENDPOINT_TRANSFORM, sourceFile, "targetExtension", targetExtension))
// .andExpect(MockMvcResultMatchers.status().is(INTERNAL_SERVER_ERROR.value()));
mockMvc.perform(
mockMvcRequest(ENDPOINT_TRANSFORM, sourceFile, "targetExtension", targetExtension))
.andExpect(status().is(INTERNAL_SERVER_ERROR.value()));