@Test public void testExceptionProperties() { Map<String, Object> propertyMap; CountResponse testObject = new CountResponse(); assertTrue(testObject.getExceptionProperties() == null); propertyMap = null; testObject = new CountResponse(); testObject.setExceptionProperties(propertyMap); assertTrue(testObject.getExceptionProperties() == null); propertyMap = new HashMap<>(); testObject = new CountResponse(); testObject.setExceptionProperties(propertyMap); assertTrue(testObject.getExceptionProperties() == null); propertyMap.put("propertyName", "propertyValue"); testObject = new CountResponse(); testObject.setExceptionProperties(propertyMap); Map<String, Object> retrievedPropertyMap = testObject.getExceptionProperties(); assertTrue(retrievedPropertyMap != null); assertFalse(retrievedPropertyMap.isEmpty()); assertTrue("propertyValue".equals(retrievedPropertyMap.get("propertyName"))); }
@Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof CountResponse)) { return false; } if (!super.equals(objectToCompare)) { return false; } CountResponse that = (CountResponse) objectToCompare; return Objects.equals(count, that.count); }
CountResponse extends FFDCResponseBase { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof CountResponse)) { return false; } if (!super.equals(objectToCompare)) { return false; } CountResponse that = (CountResponse) objectToCompare; return Objects.equals(count, that.count); } }
CountResponse extends FFDCResponseBase { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof CountResponse)) { return false; } if (!super.equals(objectToCompare)) { return false; } CountResponse that = (CountResponse) objectToCompare; return Objects.equals(count, that.count); } CountResponse();  CountResponse(CountResponse template); }
CountResponse extends FFDCResponseBase { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof CountResponse)) { return false; } if (!super.equals(objectToCompare)) { return false; } CountResponse that = (CountResponse) objectToCompare; return Objects.equals(count, that.count); } CountResponse();  CountResponse(CountResponse template); long getCount(); void setCount(long count); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode(); }
CountResponse extends FFDCResponseBase { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof CountResponse)) { return false; } if (!super.equals(objectToCompare)) { return false; } CountResponse that = (CountResponse) objectToCompare; return Objects.equals(count, that.count); } CountResponse();  CountResponse(CountResponse template); long getCount(); void setCount(long count); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode();  }