Skip to content

Commit

Permalink
fix broken metadata-io test
Browse files Browse the repository at this point in the history
  • Loading branch information
chriscollins3456 committed Dec 12, 2024
1 parent 8d8fe8c commit a297147
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
import com.linkedin.form.FormInfo;
import com.linkedin.form.FormPrompt;
import com.linkedin.form.FormPromptArray;
import com.linkedin.form.OwnershipParams;
import com.linkedin.form.PromptCardinality;
import com.linkedin.form.StructuredPropertyParams;
import com.linkedin.metadata.query.filter.Condition;
import com.linkedin.metadata.query.filter.ConjunctiveCriterion;
Expand Down Expand Up @@ -394,16 +392,12 @@ public void testRemovePromptsFromFormInfo() {
.setId("2")
.setStructuredPropertyParams(
new StructuredPropertyParams().setUrn(existingPropertyUrn)));
prompts.add(
new FormPrompt()
.setId("3")
.setOwnershipParams(new OwnershipParams().setCardinality(PromptCardinality.MULTIPLE)));
FormInfo formInfo = new FormInfo().setPrompts(new FormPromptArray(prompts));

FormInfo updatedFormInfo =
DeleteEntityUtils.removePromptsFromFormInfoAspect(formInfo, deletedPropertyUrn);

assertEquals(updatedFormInfo.getPrompts().size(), 2);
assertEquals(updatedFormInfo.getPrompts().size(), 1);
assertEquals(
updatedFormInfo.getPrompts(),
formInfo.getPrompts().stream()
Expand Down

0 comments on commit a297147

Please sign in to comment.