IntentData { @Override public int hashCode() { return Objects.hash(confirmationRequired, confirmations, prompts, slots, samples); } IntentData(Boolean confirmationRequired,
                      Set<PromptVariation> confirmations,
                      DialogIntentPrompt prompts,
                      Set<String> samples,
                      Map<String, IntentSlotData> slots); static IntentData combine(IntentData a, IntentData b); static Codec<IntentData> codec(); static IntentData empty(); static Resource.Builder resource(); static Builder builder(); @JsonProperty("samples") Set<String> getSamples(); @JsonProperty("confirmations") Set<PromptVariation> getConfirmations(); @JsonProperty("slots") Map<String, IntentSlotData> getSlots(); @JsonProperty("confirmationRequired") Boolean getConfirmationRequired(); @JsonProperty("prompts") DialogIntentPrompt getPrompts(); @JsonIgnore boolean isEmpty(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void testEqualsSelf() { IntentData left = mockBuilder("test").build(); assertEquals(left, left); assertEquals(left.hashCode(), left.hashCode()); }
@Test public void testNotEquals() { IntentData left = mockBuilder("left").build(); IntentData right = mockBuilder("right").build(); assertNotEquals(left, right); assertNotEquals(left.hashCode(), right.hashCode()); }
@Test public void testNotEqualsDifferentConfirmationRequired() { IntentData left = mockBuilder("test").withConfirmationRequired(true).build(); IntentData right = mockBuilder("test").build(); assertNotEquals(left, right); assertNotEquals(left.hashCode(), right.hashCode()); }
@Test public void testNotEqualsDifferentConfirmation() { IntentData left = mockBuilder("test").withConfirmation("different").build(); IntentData right = mockBuilder("test").build(); assertNotEquals(left, right); assertNotEquals(left.hashCode(), right.hashCode()); }
@Test public void testNotEqualsDifferentElicitationRequired() { IntentData left = mockBuilder("test").withElicitationRequired(true).build(); IntentData right = mockBuilder("test").build(); assertNotEquals(left, right); assertNotEquals(left.hashCode(), right.hashCode()); }
@Test public void testNotEqualsDifferentElicitation() { IntentData left = mockBuilder("test").withElicitation("different").build(); IntentData right = mockBuilder("test").build(); assertNotEquals(left, right); assertNotEquals(left.hashCode(), right.hashCode()); }
@Test public void testNotEqualsDifferentSamples() { IntentData left = mockBuilder("test").withSample("different").build(); IntentData right = mockBuilder("test").build(); assertNotEquals(left, right); assertNotEquals(left.hashCode(), right.hashCode()); }