IntentSlotData { @Override public int hashCode() { return Objects.hash(confirmationRequired, confirmations, elicitationRequired, elicitations, prompts, samples); } IntentSlotData(Boolean confirmationRequired, Set<PromptVariation> confirmations,
                          Boolean elicitationRequired, Set<PromptVariation> elicitations,
                          DialogSlotPrompt prompts,
                          Set<String> samples); @JsonProperty("samples") Set<String> getSamples(); @JsonProperty("elicitations") Set<PromptVariation> getElicitations(); @JsonProperty("confirmations") Set<PromptVariation> getConfirmations(); @JsonProperty("confirmationRequired") Boolean getConfirmationRequired(); @JsonProperty("elicitationRequired") Boolean getElicitationRequired(); @JsonProperty("prompts") DialogSlotPrompt getPrompts(); @Override boolean equals(Object o); @Override int hashCode(); static Builder builder();  }
@Test public void testEqualsSelf() { IntentSlotData test = mockBuilder("test").build(); assertEquals(test, test); assertEquals(test.hashCode(), test.hashCode()); }
@Test public void testNotEqualsDifferentConfirmations() { IntentSlotData left = mockBuilder("left").build(); IntentSlotData right = mockBuilder("left") .withConfirmation("different") .build(); assertNotEquals(left, right); assertNotEquals(left.hashCode(), right.hashCode()); }
@Test public void testNotEqualsDifferentConfirmationRequired() { IntentSlotData left = mockBuilder("left").build(); IntentSlotData right = mockBuilder("left") .withConfirmationRequired(false) .build(); assertNotEquals(left, right); assertNotEquals(left.hashCode(), right.hashCode()); }
@Test public void testNotEqualsDifferentElicitations() { IntentSlotData left = mockBuilder("left").build(); IntentSlotData right = mockBuilder("left") .withElicitation("different") .build(); assertNotEquals(left, right); assertNotEquals(left.hashCode(), right.hashCode()); }
@Test public void testNotEqualsDifferentElicitationRequired() { IntentSlotData left = mockBuilder("left").build(); IntentSlotData right = mockBuilder("left") .withElicitationRequired(false) .build(); assertNotEquals(left, right); assertNotEquals(left.hashCode(), right.hashCode()); }
@Test public void testNotEqualsDifferentConfirmationPrompt() { IntentSlotData left = mockBuilder("left").build(); IntentSlotData right = mockBuilder("left") .withConfirmationPrompt("different") .build(); assertNotEquals(left, right); assertNotEquals(left.hashCode(), right.hashCode()); }
@Test public void testNotEqualsDifferentElicitationPrompt() { IntentSlotData left = mockBuilder("left").build(); IntentSlotData right = mockBuilder("left") .withElicitationPrompt("different") .build(); assertNotEquals(left, right); assertNotEquals(left.hashCode(), right.hashCode()); }
@Test public void testNotEqualsDifferentSamples() { IntentSlotData left = mockBuilder("left").build(); IntentSlotData right = mockBuilder("left") .withSlotSample("different") .build(); assertNotEquals(left, right); assertNotEquals(left.hashCode(), right.hashCode()); }