/** Test method for {@link com.twitterapime.model.DefaultEntity#equals(java.lang.Object)}. */ public void testEqualsObject() { DefaultEntity d = new DefaultEntity(dataSample); assertTrue(d.equals(d)); assertFalse(d.equals(null)); DefaultEntity dc = new DefaultEntity(dataSample); assertTrue(d.equals(dc)); dc.setData((Hashtable) null); assertFalse(d.equals(dc)); }
/** Test method for {@link com.twitterapime.model.DefaultEntity#setData(java.util.Hashtable)}. */ public void testSetData() { DefaultEntity d = new DefaultEntity(); d.setData(dataSample); assertTrue(dataSample.equals(d.data)); d.setData((Hashtable) null); assertNotNull(d.data); assertFalse(dataSample.equals(d.data)); // DefaultEntity d1 = new DefaultEntity(); d1.setData(d); assertTrue(d1.equals(d)); }