Fix test for step without name (enricher now handles)

This commit is contained in:
2023-02-24 17:03:56 -06:00
parent 8a8f0d6e6f
commit ea731bac5c

View File

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