mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-19 05:30:43 +00:00
CE-881 - Update error message
This commit is contained in:
@ -575,15 +575,15 @@ class QJavalinProcessHandlerTest extends QJavalinTestBase
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
** test calling download file with missing filePath
|
||||
** test calling download file without needed query-string params
|
||||
**
|
||||
*******************************************************************************/
|
||||
@Test
|
||||
public void test_downloadFileMissingFilePath()
|
||||
public void test_downloadFileMissingQueryStringParams()
|
||||
{
|
||||
HttpResponse<String> response = Unirest.get(BASE_URL + "/download/myTestFile.txt").asString();
|
||||
assertEquals(400, response.getStatus());
|
||||
assertTrue(response.getBody().contains("A filePath was not provided"));
|
||||
assertTrue(response.getBody().contains("Missing query parameters to identify file"));
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user