private void Compare(DatanodeInfo dn1, DatanodeInfo dn2) { NUnit.Framework.Assert.AreEqual(dn1.GetAdminState(), dn2.GetAdminState()); NUnit.Framework.Assert.AreEqual(dn1.GetBlockPoolUsed(), dn2.GetBlockPoolUsed()); NUnit.Framework.Assert.AreEqual(dn1.GetBlockPoolUsedPercent(), dn2.GetBlockPoolUsedPercent (), Delta); NUnit.Framework.Assert.AreEqual(dn1.GetCapacity(), dn2.GetCapacity()); NUnit.Framework.Assert.AreEqual(dn1.GetDatanodeReport(), dn2.GetDatanodeReport()); NUnit.Framework.Assert.AreEqual(dn1.GetDfsUsed(), dn1.GetDfsUsed()); NUnit.Framework.Assert.AreEqual(dn1.GetDfsUsedPercent(), dn1.GetDfsUsedPercent(), Delta); NUnit.Framework.Assert.AreEqual(dn1.GetIpAddr(), dn2.GetIpAddr()); NUnit.Framework.Assert.AreEqual(dn1.GetHostName(), dn2.GetHostName()); NUnit.Framework.Assert.AreEqual(dn1.GetInfoPort(), dn2.GetInfoPort()); NUnit.Framework.Assert.AreEqual(dn1.GetIpcPort(), dn2.GetIpcPort()); NUnit.Framework.Assert.AreEqual(dn1.GetLastUpdate(), dn2.GetLastUpdate()); NUnit.Framework.Assert.AreEqual(dn1.GetLevel(), dn2.GetLevel()); NUnit.Framework.Assert.AreEqual(dn1.GetNetworkLocation(), dn2.GetNetworkLocation( )); }