DebugAtomType extends AtomType implements IAtomType { @Override public void setAtomTypeName(String identifier) { logger.debug("Setting atom type name: ", identifier); super.setAtomTypeName(identifier); } DebugAtomType(String elementSymbol);  DebugAtomType(String identifier, String elementSymbol);  DebugAtomType(IElement element); @Override Integer getAtomicNumber(); @Override void setAtomicNumber(Integer atomicNumber); @Override String getSymbol(); @Override void setSymbol(String symbol); @Override void addListener(IChemObjectListener col); @Override int getListenerCount(); @Override void removeListener(IChemObjectListener col); @Override void notifyChanged(); @Override void notifyChanged(IChemObjectChangeEvent evt); @Override void setProperty(Object description, Object property); @Override void removeProperty(Object description); @Override T getProperty(Object description); @Override Map<Object, Object> getProperties(); @Override String getID(); @Override void setID(String identifier); @Override void setFlag(int flagType, boolean flagValue); @Override boolean getFlag(int flagType); @Override void addProperties(Map<Object, Object> properties); @Override void setFlags(boolean[] flagsNew); @Override boolean[] getFlags(); @Override Object clone(); @Override IChemObjectBuilder getBuilder(); @Override void setNaturalAbundance(Double naturalAbundance); @Override void setExactMass(Double exactMass); @Override Double getNaturalAbundance(); @Override Double getExactMass(); @Override Integer getMassNumber(); @Override void setMassNumber(Integer massNumber); @Override void setAtomTypeName(String identifier); @Override void setMaxBondOrder(IBond.Order maxBondOrder); @Override void setBondOrderSum(Double bondOrderSum); @Override String getAtomTypeName(); @Override IBond.Order getMaxBondOrder(); @Override Double getBondOrderSum(); @Override void setFormalCharge(Integer charge); @Override Integer getFormalCharge(); @Override void setFormalNeighbourCount(Integer count); @Override Integer getFormalNeighbourCount(); @Override void setHybridization(IAtomType.Hybridization hybridization); @Override IAtomType.Hybridization getHybridization(); @Override void setCovalentRadius(Double radius); @Override Double getCovalentRadius(); @Override void setValency(Integer valency); @Override Integer getValency();  }
@Test public void testCompare_AtomTypeName() { DebugAtomType at1 = new DebugAtomType("C"); DebugAtomType at2 = new DebugAtomType("C"); at1.setAtomTypeName(new String("C4")); at2.setAtomTypeName(new String("C4")); Assert.assertTrue(at1.compare(at2)); }
@Test public void testCompare_DiffAtomTypeName() { DebugAtomType at1 = new DebugAtomType("C"); DebugAtomType at2 = new DebugAtomType("C"); at1.setAtomTypeName(new String("C4")); at2.setAtomTypeName(new String("C3")); Assert.assertFalse(at1.compare(at2)); }