@Test public void testEquals() { EqualsTester et = new EqualsTester().addEqualityGroup(Boolean.FALSE).addEqualityGroup(baseNat(), baseNat()); { CiscoIosDynamicNat diffAction = baseNat(); diffAction.setAction(RuleAction.DESTINATION_INSIDE); et.addEqualityGroup(diffAction); } { CiscoIosDynamicNat diffName = baseNat(); diffName.setAclName("diffacl"); et.addEqualityGroup(diffName); } { CiscoIosDynamicNat diffPool = baseNat(); diffPool.setNatPool("diffpool"); et.addEqualityGroup(diffPool); } et.testEquals(); }
@Override public boolean equals(Object o) { if (!(o instanceof CiscoIosDynamicNat)) { return false; } CiscoIosDynamicNat other = (CiscoIosDynamicNat) o; return (getAction() == other.getAction()) && Objects.equals(_aclName, other._aclName) && Objects.equals(_natPool, other._natPool); }
CiscoIosDynamicNat extends CiscoIosNat { @Override public boolean equals(Object o) { if (!(o instanceof CiscoIosDynamicNat)) { return false; } CiscoIosDynamicNat other = (CiscoIosDynamicNat) o; return (getAction() == other.getAction()) && Objects.equals(_aclName, other._aclName) && Objects.equals(_natPool, other._natPool); } }
CiscoIosDynamicNat extends CiscoIosNat { @Override public boolean equals(Object o) { if (!(o instanceof CiscoIosDynamicNat)) { return false; } CiscoIosDynamicNat other = (CiscoIosDynamicNat) o; return (getAction() == other.getAction()) && Objects.equals(_aclName, other._aclName) && Objects.equals(_natPool, other._natPool); }  }
CiscoIosDynamicNat extends CiscoIosNat { @Override public boolean equals(Object o) { if (!(o instanceof CiscoIosDynamicNat)) { return false; } CiscoIosDynamicNat other = (CiscoIosDynamicNat) o; return (getAction() == other.getAction()) && Objects.equals(_aclName, other._aclName) && Objects.equals(_natPool, other._natPool); }  @VisibleForTesting static String computeDynamicDestinationNatAclName(@Nonnull String natAclName); @Nullable String getAclName(); void setAclName(@Nullable String aclName); void setNatPool(@Nullable String natPool); @Override boolean equals(Object o); @Override int hashCode(); @Override Optional<Transformation.Builder> toIncomingTransformation(
      Map<String, IpAccessList> ipAccessLists, Map<String, NatPool> natPools); @Override Optional<Transformation.Builder> toOutgoingTransformation(
      Map<String, IpAccessList> ipAccessLists,
      Map<String, NatPool> natPools,
      Set<String> insideInterfaces,
      Configuration c); }
CiscoIosDynamicNat extends CiscoIosNat { @Override public boolean equals(Object o) { if (!(o instanceof CiscoIosDynamicNat)) { return false; } CiscoIosDynamicNat other = (CiscoIosDynamicNat) o; return (getAction() == other.getAction()) && Objects.equals(_aclName, other._aclName) && Objects.equals(_natPool, other._natPool); }  @VisibleForTesting static String computeDynamicDestinationNatAclName(@Nonnull String natAclName); @Nullable String getAclName(); void setAclName(@Nullable String aclName); void setNatPool(@Nullable String natPool); @Override boolean equals(Object o); @Override int hashCode(); @Override Optional<Transformation.Builder> toIncomingTransformation(
      Map<String, IpAccessList> ipAccessLists, Map<String, NatPool> natPools); @Override Optional<Transformation.Builder> toOutgoingTransformation(
      Map<String, IpAccessList> ipAccessLists,
      Map<String, NatPool> natPools,
      Set<String> insideInterfaces,
      Configuration c);  }