REPO-3424 More unit tests and pick up latest alfresco-core (7.2)

This commit is contained in:
Alan Davis
2018-04-16 23:22:18 +01:00
parent f7f6525950
commit 73af441ab3
4 changed files with 90 additions and 3 deletions

View File

@@ -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