Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasCAI-mlv committed Feb 11, 2025
1 parent 759f14b commit 1575453
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/com/michelin/ns4kafka/model/Status.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

import static com.michelin.ns4kafka.util.enumation.Kind.STATUS;

import com.fasterxml.jackson.annotation.JsonValue;
import com.michelin.ns4kafka.util.enumation.Kind;
import io.micronaut.core.annotation.Introspected;
import io.micronaut.http.HttpStatus;
Expand All @@ -39,7 +40,7 @@
@Introspected
@EqualsAndHashCode(callSuper = true)
public class Status extends Resource {
private String status;
private StatusPhase status;
private String message;
private String reason;
private StatusDetails details;
Expand All @@ -56,7 +57,7 @@ public class Status extends Resource {
*/
public Status(StatusPhase status, String message, String reason, StatusDetails details, int code) {
super("v1", STATUS);
this.status = status.toString();
this.status = status;
this.message = message;
this.reason = reason;
this.details = details;
Expand Down Expand Up @@ -100,6 +101,7 @@ public enum StatusPhase {

private final String name;

@JsonValue
@Override
public String toString() {
return name;
Expand Down

0 comments on commit 1575453

Please sign in to comment.