@Test public void asEvent() { assertEquals("aggId", testSubject.asEvent().getAggregateIdentifier()); }
public Event asEvent() { if (event == null) { try { event = Event.parseFrom(serializedData); } catch (InvalidProtocolBufferException e) { throw new MessagingPlatformException(ErrorCode.DATAFILE_READ_ERROR, e.getMessage(), e); } } return event; }
SerializedEvent { public Event asEvent() { if (event == null) { try { event = Event.parseFrom(serializedData); } catch (InvalidProtocolBufferException e) { throw new MessagingPlatformException(ErrorCode.DATAFILE_READ_ERROR, e.getMessage(), e); } } return event; } }
SerializedEvent { public Event asEvent() { if (event == null) { try { event = Event.parseFrom(serializedData); } catch (InvalidProtocolBufferException e) { throw new MessagingPlatformException(ErrorCode.DATAFILE_READ_ERROR, e.getMessage(), e); } } return event; } SerializedEvent(Event event);  SerializedEvent(byte[] eventFromFile);  SerializedEvent(InputStream event); }
SerializedEvent { public Event asEvent() { if (event == null) { try { event = Event.parseFrom(serializedData); } catch (InvalidProtocolBufferException e) { throw new MessagingPlatformException(ErrorCode.DATAFILE_READ_ERROR, e.getMessage(), e); } } return event; } SerializedEvent(Event event);  SerializedEvent(byte[] eventFromFile);  SerializedEvent(InputStream event); InputStream asInputStream(); Event asEvent(); int size(); byte[] serializedData(); long getAggregateSequenceNumber(); byte[] getPayload(); String getIdentifier(); String getAggregateType(); String getPayloadType(); String getPayloadRevision(); long getTimestamp(); boolean isDomainEvent(); String getAggregateIdentifier(); long getSequenceNumber(); String getType(); Map<String, Object> getMetaData(); @Override boolean equals(Object o); @Override int hashCode(); ByteString asByteString(); }
SerializedEvent { public Event asEvent() { if (event == null) { try { event = Event.parseFrom(serializedData); } catch (InvalidProtocolBufferException e) { throw new MessagingPlatformException(ErrorCode.DATAFILE_READ_ERROR, e.getMessage(), e); } } return event; } SerializedEvent(Event event);  SerializedEvent(byte[] eventFromFile);  SerializedEvent(InputStream event); InputStream asInputStream(); Event asEvent(); int size(); byte[] serializedData(); long getAggregateSequenceNumber(); byte[] getPayload(); String getIdentifier(); String getAggregateType(); String getPayloadType(); String getPayloadRevision(); long getTimestamp(); boolean isDomainEvent(); String getAggregateIdentifier(); long getSequenceNumber(); String getType(); Map<String, Object> getMetaData(); @Override boolean equals(Object o); @Override int hashCode(); ByteString asByteString();  }