Updates for tests for min/max records

This commit is contained in:
2024-05-17 16:40:00 -05:00
parent ede497ee85
commit 6f6f9af17d
2 changed files with 4 additions and 4 deletions

View File

@ -1304,7 +1304,7 @@ public class QInstanceValidatorTest extends BaseTest
{ {
TableAutomationAction action = getAction0(qInstance); TableAutomationAction action = getAction0(qInstance);
action.setCodeReference(null); action.setCodeReference(null);
action.setProcessName(TestUtils.PROCESS_NAME_GREET_PEOPLE); action.setProcessName(TestUtils.PROCESS_NAME_BASEPULL);
}, },
"different table"); "different table");
} }

View File

@ -1132,21 +1132,21 @@ public class TestUtils
{ {
return new QProcessMetaData() return new QProcessMetaData()
.withName(PROCESS_NAME_GREET_PEOPLE) .withName(PROCESS_NAME_GREET_PEOPLE)
.withTableName(TABLE_NAME_PERSON) .withTableName(TABLE_NAME_PERSON_MEMORY)
.addStep(new QBackendStepMetaData() .addStep(new QBackendStepMetaData()
.withName("prepare") .withName("prepare")
.withCode(new QCodeReference() .withCode(new QCodeReference()
.withName(MockBackendStep.class.getName()) .withName(MockBackendStep.class.getName())
.withCodeType(QCodeType.JAVA)) .withCodeType(QCodeType.JAVA))
.withInputData(new QFunctionInputMetaData() .withInputData(new QFunctionInputMetaData()
.withRecordListMetaData(new QRecordListMetaData().withTableName(TABLE_NAME_PERSON)) .withRecordListMetaData(new QRecordListMetaData().withTableName(TABLE_NAME_PERSON_MEMORY))
.withFieldList(List.of( .withFieldList(List.of(
new QFieldMetaData("greetingPrefix", QFieldType.STRING), new QFieldMetaData("greetingPrefix", QFieldType.STRING),
new QFieldMetaData("greetingSuffix", QFieldType.STRING) new QFieldMetaData("greetingSuffix", QFieldType.STRING)
))) )))
.withOutputMetaData(new QFunctionOutputMetaData() .withOutputMetaData(new QFunctionOutputMetaData()
.withRecordListMetaData(new QRecordListMetaData() .withRecordListMetaData(new QRecordListMetaData()
.withTableName(TABLE_NAME_PERSON) .withTableName(TABLE_NAME_PERSON_MEMORY)
.withField(new QFieldMetaData("fullGreeting", QFieldType.STRING)) .withField(new QFieldMetaData("fullGreeting", QFieldType.STRING))
) )
.withFieldList(List.of(new QFieldMetaData("outputMessage", QFieldType.STRING)))) .withFieldList(List.of(new QFieldMetaData("outputMessage", QFieldType.STRING))))