Skip to content

Commit

Permalink
fix tests faillure
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaimaaeROUAI committed Jun 3, 2024
1 parent ef76982 commit 1bab23e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 28 deletions.
9 changes: 4 additions & 5 deletions src/events/app/src/main/java/events/model/EventRecord.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,17 @@
/**
* Event record.
*/
// import java.time.Instant;
// import java.util.Map;
// import java.util.Objects;


@Serdeable
public record EventRecord(String source, String track, Instant time, Event event) {

@Creator
public EventRecord(String source, String track, Event event) {
this(source, track, Instant.now(), Objects.requireNonNull(event, "Event cannot be null"));
}

@Creator

public EventRecord(String source, String track, String type, Map<String, String> detail) {
this(source, track, Instant.now(), new Event(type, detail));
}
Expand All @@ -33,4 +32,4 @@ public String type() {
public Map<String, String> detail() {
return event.detail();
}
}
}
23 changes: 0 additions & 23 deletions src/events/app/src/main/java/events/model/EventsReceived.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,4 @@
@Serdeable
public record EventsReceived(boolean success ,int events){
}
// public class EventsReceived {

// private final boolean success;
// private final int events;

// public EventsReceived(boolean success, int events) {
// this.success = success;
// this.events = events;
// }

// /**
// * True if the events were successfully received
// */
// public boolean isSuccess() {
// return success;
// }

// /**
// * The number of successfully received events
// */
// public int getEvents() {
// return events;
// }
// }

0 comments on commit 1bab23e

Please sign in to comment.