mirror of
https://github.com/Alfresco/alfresco-transform-core.git
synced 2025-08-07 17:48:35 +00:00
REPO-3424 More unit tests and pick up latest alfresco-core (7.2)
This commit is contained in:
@@ -273,6 +273,15 @@ public abstract class AbstractTransformerControllerTest
|
||||
.andExpect(status().reason(containsString("The source filename was not supplied")));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void noTargetExtensionTest() throws Exception
|
||||
{
|
||||
mockMvc.perform(MockMvcRequestBuilders.fileUpload("/transform")
|
||||
.file(sourceFile))
|
||||
.andExpect(status().is(400))
|
||||
.andExpect(status().reason(containsString("Request parameter targetExtension is missing")));
|
||||
}
|
||||
|
||||
// @Test
|
||||
// // Not a real test, but helpful for trying out the duration times in log code.
|
||||
// public void testTimes() throws InterruptedException
|
||||
|
Reference in New Issue
Block a user