@Test(expected = IllegalArgumentException.class) public void unsupportedTransactionId() { TransactionIdFactory.createTransactionId("%UnsupportedTransactionId%", CHARGING_STATION_ID, PROTOCOL); }
public static TransactionId createTransactionId(String transactionNumber, ChargingStationId chargingStationId, String protocol) { return Ints.tryParse(checkNotNull(transactionNumber)) != null ? new NumberedTransactionId(chargingStationId, protocol, Ints.tryParse(transactionNumber)) : new UuidTransactionId(UUID.fromString(transactionNumber)); }
TransactionIdFactory { public static TransactionId createTransactionId(String transactionNumber, ChargingStationId chargingStationId, String protocol) { return Ints.tryParse(checkNotNull(transactionNumber)) != null ? new NumberedTransactionId(chargingStationId, protocol, Ints.tryParse(transactionNumber)) : new UuidTransactionId(UUID.fromString(transactionNumber)); } }
TransactionIdFactory { public static TransactionId createTransactionId(String transactionNumber, ChargingStationId chargingStationId, String protocol) { return Ints.tryParse(checkNotNull(transactionNumber)) != null ? new NumberedTransactionId(chargingStationId, protocol, Ints.tryParse(transactionNumber)) : new UuidTransactionId(UUID.fromString(transactionNumber)); } private  TransactionIdFactory(); }
TransactionIdFactory { public static TransactionId createTransactionId(String transactionNumber, ChargingStationId chargingStationId, String protocol) { return Ints.tryParse(checkNotNull(transactionNumber)) != null ? new NumberedTransactionId(chargingStationId, protocol, Ints.tryParse(transactionNumber)) : new UuidTransactionId(UUID.fromString(transactionNumber)); } private  TransactionIdFactory(); static TransactionId createTransactionId(String transactionNumber, ChargingStationId chargingStationId, String protocol); }
TransactionIdFactory { public static TransactionId createTransactionId(String transactionNumber, ChargingStationId chargingStationId, String protocol) { return Ints.tryParse(checkNotNull(transactionNumber)) != null ? new NumberedTransactionId(chargingStationId, protocol, Ints.tryParse(transactionNumber)) : new UuidTransactionId(UUID.fromString(transactionNumber)); } private  TransactionIdFactory(); static TransactionId createTransactionId(String transactionNumber, ChargingStationId chargingStationId, String protocol);  }