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

@ -59,7 +59,9 @@ import com.kingsrook.qqq.backend.core.utils.ValueUtils;
/******************************************************************************* /*******************************************************************************
** ** This is a single-step process used to provide Column Statistics. These include
** counts per-value for a field, plus things like total count, min, max, avg, based
** on the field type.
*******************************************************************************/ *******************************************************************************/
public class ColumnStatsStep implements BackendStep public class ColumnStatsStep implements BackendStep
{ {

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(""),
// these used to be an assertion failure - but enricher now sets a default name for backend steps w/ a code name // "Missing name for a step");
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
assertValidationSuccess((qInstance) -> qInstance.getProcess(TestUtils.PROCESS_NAME_GREET_PEOPLE).getStepList().get(0).setName("")); assertValidationFailureReasons((qInstance) -> qInstance.getProcess(TestUtils.PROCESS_NAME_GREET_PEOPLE_INTERACTIVE).getStepList().get(1).setName(null),
assertValidationSuccess((qInstance) -> qInstance.getProcess(TestUtils.PROCESS_NAME_GREET_PEOPLE_INTERACTIVE).getStepList().get(1).setName(null)); "Missing name for a step");
} }