@Test(expected = UnsupportedOperationException.class) public void testImmutableMap() { new TransactionStartedEvent(CHARGING_STATION_ID, TRANSACTION_ID, START_TRANSACTION_INFO, NULL_USER_IDENTITY_CONTEXT).getStartTransactionInfo().getAttributes().put("key", "value"); }
public StartTransactionInfo getStartTransactionInfo() { return startTransactionInfo; }
TransactionStartedEvent { public StartTransactionInfo getStartTransactionInfo() { return startTransactionInfo; } }
TransactionStartedEvent { public StartTransactionInfo getStartTransactionInfo() { return startTransactionInfo; } TransactionStartedEvent(ChargingStationId chargingStationId, TransactionId transactionId, StartTransactionInfo startTransactionInfo, IdentityContext identityContext); }
TransactionStartedEvent { public StartTransactionInfo getStartTransactionInfo() { return startTransactionInfo; } TransactionStartedEvent(ChargingStationId chargingStationId, TransactionId transactionId, StartTransactionInfo startTransactionInfo, IdentityContext identityContext); ChargingStationId getChargingStationId(); TransactionId getTransactionId(); StartTransactionInfo getStartTransactionInfo(); IdentityContext getIdentityContext(); }
TransactionStartedEvent { public StartTransactionInfo getStartTransactionInfo() { return startTransactionInfo; } TransactionStartedEvent(ChargingStationId chargingStationId, TransactionId transactionId, StartTransactionInfo startTransactionInfo, IdentityContext identityContext); ChargingStationId getChargingStationId(); TransactionId getTransactionId(); StartTransactionInfo getStartTransactionInfo(); IdentityContext getIdentityContext();  }