-
-
Notifications
You must be signed in to change notification settings - Fork 51
/
additional-formats.test.js.snap
143 lines (109 loc) · 3.23 KB
/
additional-formats.test.js.snap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`template integration tests for additional formats of data types should generate DTO file with proper type classes 1`] = `
"package com.asyncapi.model;
import jakarta.validation.constraints.*;
import jakarta.validation.Valid;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
import javax.annotation.processing.Generated;
import java.util.List;
import java.util.Objects;
@Generated(value="com.asyncapi.generator.template.spring", date="AnyDate")
public class SongPayload {
private @Valid java.util.UUID id;
private @Valid String title;
private @Valid String uri;
private @Valid String email;
private @Valid java.math.BigDecimal rating;
/**
* ID
*/
@JsonProperty("id")
public java.util.UUID getId() {
return id;
}
public void setId(java.util.UUID id) {
this.id = id;
}
/**
* Title of a song
*/
@JsonProperty("title")
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
/**
* URI of a song
*/
@JsonProperty("uri")
public String getUri() {
return uri;
}
public void setUri(String uri) {
this.uri = uri;
}
/**
* Author email
*/
@JsonProperty("email")
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
/**
* Title rating
*/
@JsonProperty("rating")
public java.math.BigDecimal getRating() {
return rating;
}
public void setRating(java.math.BigDecimal rating) {
this.rating = rating;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SongPayload songPayload = (SongPayload) o;
return
Objects.equals(this.id, songPayload.id) &&
Objects.equals(this.title, songPayload.title) &&
Objects.equals(this.uri, songPayload.uri) &&
Objects.equals(this.email, songPayload.email) &&
Objects.equals(this.rating, songPayload.rating);
}
@Override
public int hashCode() {
return Objects.hash(id, title, uri, email, rating);
}
@Override
public String toString() {
return "class SongPayload {\\n" +
" id: " + toIndentedString(id) + "\\n" +
" title: " + toIndentedString(title) + "\\n" +
" uri: " + toIndentedString(uri) + "\\n" +
" email: " + toIndentedString(email) + "\\n" +
" rating: " + toIndentedString(rating) + "\\n" +
"}";
}
/**
* Convert the given object to string with each line indented by 4 spaces (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\\n", "\\n ");
}
}"
`;