@Test(expected = UnsupportedOperationException.class) public void unsupportedOperationExceptionThrownWhenModifyingAttributes() { BootChargingStationCommand command = new BootChargingStationCommand(CHARGING_STATION_ID, PROTOCOL, BOOT_NOTIFICATION_ATTRIBUTES, IDENTITY_CONTEXT); command.getAttributes().put("foo", "bar"); }
public Map<String, String> getAttributes() { return attributes; }
BootChargingStationCommand { public Map<String, String> getAttributes() { return attributes; } }
BootChargingStationCommand { public Map<String, String> getAttributes() { return attributes; } BootChargingStationCommand(ChargingStationId chargingStationId, String protocol, IdentityContext identityContext);  BootChargingStationCommand(ChargingStationId chargingStationId, String protocol, Map<String, String> attributes, IdentityContext identityContext); }
BootChargingStationCommand { public Map<String, String> getAttributes() { return attributes; } BootChargingStationCommand(ChargingStationId chargingStationId, String protocol, IdentityContext identityContext);  BootChargingStationCommand(ChargingStationId chargingStationId, String protocol, Map<String, String> attributes, IdentityContext identityContext); ChargingStationId getChargingStationId(); String getProtocol(); Map<String, String> getAttributes(); IdentityContext getIdentityContext(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
BootChargingStationCommand { public Map<String, String> getAttributes() { return attributes; } BootChargingStationCommand(ChargingStationId chargingStationId, String protocol, IdentityContext identityContext);  BootChargingStationCommand(ChargingStationId chargingStationId, String protocol, Map<String, String> attributes, IdentityContext identityContext); ChargingStationId getChargingStationId(); String getProtocol(); Map<String, String> getAttributes(); IdentityContext getIdentityContext(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }