CE-882 Add testPossibleValueWithoutTableOrProcess

This commit is contained in:
2024-04-29 07:57:32 -05:00
parent 7b2e9c4f55
commit 2b6d1ea468

View File

@ -844,6 +844,24 @@ class QJavalinImplementationTest extends QJavalinTestBase
/*******************************************************************************
**
*******************************************************************************/
@Test
void testPossibleValueWithoutTableOrProcess()
{
HttpResponse<String> response = Unirest.get(BASE_URL + "/possibleValues/person").asString();
assertEquals(200, response.getStatus());
JSONObject jsonObject = JsonUtils.toJSONObject(response.getBody());
assertNotNull(jsonObject);
assertNotNull(jsonObject.getJSONArray("options"));
assertEquals(6, jsonObject.getJSONArray("options").length());
assertEquals(1, jsonObject.getJSONArray("options").getJSONObject(0).getInt("id"));
assertEquals("Darin Kelkhoff (1)", jsonObject.getJSONArray("options").getJSONObject(0).getString("label"));
}
/******************************************************************************* /*******************************************************************************
** **
*******************************************************************************/ *******************************************************************************/