@Test public void testEqualsHelpItem() { assertTrue(hi1.equals(hi2)); }
@Override public boolean equals(Object o) { if (o instanceof HelpItem) { return this.trigger.equals(((HelpItem)o).getTrigger()); } else { return false; } }
HelpItem { @Override public boolean equals(Object o) { if (o instanceof HelpItem) { return this.trigger.equals(((HelpItem)o).getTrigger()); } else { return false; } } }
HelpItem { @Override public boolean equals(Object o) { if (o instanceof HelpItem) { return this.trigger.equals(((HelpItem)o).getTrigger()); } else { return false; } } HelpItem(String trigger, Flag flagRequired, String[] helpText); }
HelpItem { @Override public boolean equals(Object o) { if (o instanceof HelpItem) { return this.trigger.equals(((HelpItem)o).getTrigger()); } else { return false; } } HelpItem(String trigger, Flag flagRequired, String[] helpText); String getTrigger(); void setTrigger(String trigger); String[] getHelpText(); void setHelpText(String[] helpText); Flag getFlagRequired(); void setFlagRequired(Flag flagRequired); @Override boolean equals(Object o); }
HelpItem { @Override public boolean equals(Object o) { if (o instanceof HelpItem) { return this.trigger.equals(((HelpItem)o).getTrigger()); } else { return false; } } HelpItem(String trigger, Flag flagRequired, String[] helpText); String getTrigger(); void setTrigger(String trigger); String[] getHelpText(); void setHelpText(String[] helpText); Flag getFlagRequired(); void setFlagRequired(Flag flagRequired); @Override boolean equals(Object o);  }