Skip to content

Commit

Permalink
Make event type more explicit in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jen20 committed Oct 6, 2015
1 parent d895b46 commit 7cc883e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/eventstore/j/examples/EventDataBuilderExample.java
Expand Up @@ -7,23 +7,23 @@

public class EventDataBuilderExample {

final EventData empty = new EventDataBuilder("empty").build();
final EventData empty = new EventDataBuilder("eventType").build();

final EventData binary = new EventDataBuilder("binary")
final EventData binary = new EventDataBuilder("eventType")
.eventId(UUID.randomUUID())
.data(new byte[]{1, 2, 3, 4})
.metadata(new byte[]{5, 6, 7, 8})
.build();

final EventData string = new EventDataBuilder("string")
final EventData string = new EventDataBuilder("eventType")
.eventId(UUID.randomUUID())
.data("data")
.metadata("metadata")
.build();

final EventData json = new EventDataBuilder("json")
final EventData json = new EventDataBuilder("eventType")
.eventId(UUID.randomUUID())
.jsonData("{\"data\":\"data\"}")
.jsonMetadata("{\"metadata\":\"metadata\"}")
.build();
}
}

0 comments on commit 7cc883e

Please sign in to comment.