@Test public void testExceptionProperties() { Map<String, Object> propertyMap; BooleanResponse testObject = new BooleanResponse(); assertTrue(testObject.getExceptionProperties() == null); propertyMap = null; testObject = new BooleanResponse(); testObject.setExceptionProperties(propertyMap); assertTrue(testObject.getExceptionProperties() == null); propertyMap = new HashMap<>(); testObject = new BooleanResponse(); testObject.setExceptionProperties(propertyMap); assertTrue(testObject.getExceptionProperties() == null); propertyMap.put("propertyName", "propertyValue"); testObject = new BooleanResponse(); 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 BooleanResponse)) { return false; } if (!super.equals(objectToCompare)) { return false; } BooleanResponse that = (BooleanResponse) objectToCompare; return isFlag() == that.isFlag(); }
BooleanResponse extends FFDCResponseBase { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof BooleanResponse)) { return false; } if (!super.equals(objectToCompare)) { return false; } BooleanResponse that = (BooleanResponse) objectToCompare; return isFlag() == that.isFlag(); } }
BooleanResponse extends FFDCResponseBase { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof BooleanResponse)) { return false; } if (!super.equals(objectToCompare)) { return false; } BooleanResponse that = (BooleanResponse) objectToCompare; return isFlag() == that.isFlag(); } BooleanResponse();  BooleanResponse(BooleanResponse template); }
BooleanResponse extends FFDCResponseBase { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof BooleanResponse)) { return false; } if (!super.equals(objectToCompare)) { return false; } BooleanResponse that = (BooleanResponse) objectToCompare; return isFlag() == that.isFlag(); } BooleanResponse();  BooleanResponse(BooleanResponse template); boolean isFlag(); void setFlag(boolean flag); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode(); }
BooleanResponse extends FFDCResponseBase { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof BooleanResponse)) { return false; } if (!super.equals(objectToCompare)) { return false; } BooleanResponse that = (BooleanResponse) objectToCompare; return isFlag() == that.isFlag(); } BooleanResponse();  BooleanResponse(BooleanResponse template); boolean isFlag(); void setFlag(boolean flag); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode();  }