Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
wsliliang committed Apr 30, 2024
1 parent 4b532ae commit a44141d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ protected OpenAiImageResponseMetadata(Long created) {
}

@Override
public Long created() {
public Long getCreated() {
return this.created;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ void imageAsUrlTest() {
assertThat(imageResponse.getResults()).hasSize(1);

ImageResponseMetadata imageResponseMetadata = imageResponse.getMetadata();
assertThat(imageResponseMetadata.created()).isPositive();
assertThat(imageResponseMetadata.getCreated()).isPositive();

var generation = imageResponse.getResult();
Image image = generation.getOutput();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ void aiResponseContainsImageResponseMetadata() {

assertThat(imageResponseMetadata).isNotNull();

Long created = imageResponseMetadata.created();
Long created = imageResponseMetadata.getCreated();

assertThat(created).isNotNull();
assertThat(created).isEqualTo(1589478378);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public interface ImageResponseMetadata extends ResponseMetadata {
ImageResponseMetadata NULL = new ImageResponseMetadata() {
};

default Long created() {
default Long getCreated() {
return System.currentTimeMillis();
}

Expand Down

0 comments on commit a44141d

Please sign in to comment.