@Test public void testEqualsDifferentName() { final SubroutineArgumentDeclaration first = new SubroutineArgumentDeclaration("an_arg"); final SubroutineArgumentDeclaration other = new SubroutineArgumentDeclaration( StringUtils.reverse(first.getName())); assertThat(first).isNotEqualTo(other); assertThat(other).isNotEqualTo(first); }
public String getName() { return name; }
SubroutineArgumentDeclaration implements DataTyped { public String getName() { return name; } }
SubroutineArgumentDeclaration implements DataTyped { public String getName() { return name; } SubroutineArgumentDeclaration(final String name);  SubroutineArgumentDeclaration(final String name, final DataType dataType);  SubroutineArgumentDeclaration(final String name, final boolean isByRef, final DataType dataType); }
SubroutineArgumentDeclaration implements DataTyped { public String getName() { return name; } SubroutineArgumentDeclaration(final String name);  SubroutineArgumentDeclaration(final String name, final DataType dataType);  SubroutineArgumentDeclaration(final String name, final boolean isByRef, final DataType dataType); @Override boolean equals(final Object obj); @Override DataType getDataType(); String getName(); @Override int hashCode(); boolean isByRef(); @Override String toString(); }
SubroutineArgumentDeclaration implements DataTyped { public String getName() { return name; } SubroutineArgumentDeclaration(final String name);  SubroutineArgumentDeclaration(final String name, final DataType dataType);  SubroutineArgumentDeclaration(final String name, final boolean isByRef, final DataType dataType); @Override boolean equals(final Object obj); @Override DataType getDataType(); String getName(); @Override int hashCode(); boolean isByRef(); @Override String toString();  }