Fix test; add comment

This commit is contained in:
2023-03-16 09:06:09 -05:00
parent bf44f97630
commit 939dcc308c
2 changed files with 8 additions and 6 deletions

View File

@ -347,11 +347,11 @@ class QInstanceValidatorTest extends BaseTest
@Test
public void test_validateProcessStepWithEmptyName()
{
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// these used to be an assertion failure - but enricher now sets a default name for backend steps w/ a code name //
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
assertValidationSuccess((qInstance) -> qInstance.getProcess(TestUtils.PROCESS_NAME_GREET_PEOPLE).getStepList().get(0).setName(""));
assertValidationSuccess((qInstance) -> qInstance.getProcess(TestUtils.PROCESS_NAME_GREET_PEOPLE_INTERACTIVE).getStepList().get(1).setName(null));
assertValidationFailureReasons((qInstance) -> qInstance.getProcess(TestUtils.PROCESS_NAME_GREET_PEOPLE).getStepList().get(0).setName(""),
"Missing name for a step");
assertValidationFailureReasons((qInstance) -> qInstance.getProcess(TestUtils.PROCESS_NAME_GREET_PEOPLE_INTERACTIVE).getStepList().get(1).setName(null),
"Missing name for a step");
}