You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: assertions-examples/src/test/generated-assertions/com/google/common/net/AbstractInternetDomainNameAssert.java
+169-2Lines changed: 169 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
packagecom.google.common.net;
2
2
3
+
importjava.util.Objects;
3
4
importorg.assertj.core.api.AbstractObjectAssert;
4
5
importorg.assertj.core.internal.Iterables;
5
-
importorg.assertj.core.util.Objects;
6
6
7
7
/**
8
8
* Abstract base class for {@link InternetDomainName} specific assertions - Generated by CustomAssertionGenerator.
@@ -126,6 +126,114 @@ public S isNotPublicSuffix() {
126
126
returnmyself;
127
127
}
128
128
129
+
/**
130
+
* Verifies that the actual InternetDomainName has registry suffix.
131
+
* @return this assertion object.
132
+
* @throws AssertionError - if the actual InternetDomainName does not have registry suffix.
133
+
*/
134
+
publicShasRegistrySuffix() {
135
+
// check that actual InternetDomainName we want to make assertions on is not null.
136
+
isNotNull();
137
+
138
+
// check that property call/field access is true
139
+
if (!actual.hasRegistrySuffix()) {
140
+
failWithMessage("\nExpecting that actual InternetDomainName has registry suffix but does not have.");
141
+
}
142
+
143
+
// return the current assertion for method chaining
144
+
returnmyself;
145
+
}
146
+
147
+
/**
148
+
* Verifies that the actual InternetDomainName does not have registry suffix.
149
+
* @return this assertion object.
150
+
* @throws AssertionError - if the actual InternetDomainName has registry suffix.
151
+
*/
152
+
publicSdoesNotHaveRegistrySuffix() {
153
+
// check that actual InternetDomainName we want to make assertions on is not null.
154
+
isNotNull();
155
+
156
+
// check that property call/field access is false
157
+
if (actual.hasRegistrySuffix()) {
158
+
failWithMessage("\nExpecting that actual InternetDomainName does not have registry suffix but has.");
159
+
}
160
+
161
+
// return the current assertion for method chaining
162
+
returnmyself;
163
+
}
164
+
165
+
/**
166
+
* Verifies that the actual InternetDomainName is registry suffix.
167
+
* @return this assertion object.
168
+
* @throws AssertionError - if the actual InternetDomainName is not registry suffix.
169
+
*/
170
+
publicSisRegistrySuffix() {
171
+
// check that actual InternetDomainName we want to make assertions on is not null.
172
+
isNotNull();
173
+
174
+
// check that property call/field access is true
175
+
if (!actual.isRegistrySuffix()) {
176
+
failWithMessage("\nExpecting that actual InternetDomainName is registry suffix but is not.");
177
+
}
178
+
179
+
// return the current assertion for method chaining
180
+
returnmyself;
181
+
}
182
+
183
+
/**
184
+
* Verifies that the actual InternetDomainName is not registry suffix.
185
+
* @return this assertion object.
186
+
* @throws AssertionError - if the actual InternetDomainName is registry suffix.
187
+
*/
188
+
publicSisNotRegistrySuffix() {
189
+
// check that actual InternetDomainName we want to make assertions on is not null.
190
+
isNotNull();
191
+
192
+
// check that property call/field access is false
193
+
if (actual.isRegistrySuffix()) {
194
+
failWithMessage("\nExpecting that actual InternetDomainName is not registry suffix but is.");
195
+
}
196
+
197
+
// return the current assertion for method chaining
198
+
returnmyself;
199
+
}
200
+
201
+
/**
202
+
* Verifies that the actual InternetDomainName is top domain under registry suffix.
203
+
* @return this assertion object.
204
+
* @throws AssertionError - if the actual InternetDomainName is not top domain under registry suffix.
205
+
*/
206
+
publicSisTopDomainUnderRegistrySuffix() {
207
+
// check that actual InternetDomainName we want to make assertions on is not null.
208
+
isNotNull();
209
+
210
+
// check that property call/field access is true
211
+
if (!actual.isTopDomainUnderRegistrySuffix()) {
212
+
failWithMessage("\nExpecting that actual InternetDomainName is top domain under registry suffix but is not.");
213
+
}
214
+
215
+
// return the current assertion for method chaining
216
+
returnmyself;
217
+
}
218
+
219
+
/**
220
+
* Verifies that the actual InternetDomainName is not top domain under registry suffix.
221
+
* @return this assertion object.
222
+
* @throws AssertionError - if the actual InternetDomainName is top domain under registry suffix.
223
+
*/
224
+
publicSisNotTopDomainUnderRegistrySuffix() {
225
+
// check that actual InternetDomainName we want to make assertions on is not null.
226
+
isNotNull();
227
+
228
+
// check that property call/field access is false
229
+
if (actual.isTopDomainUnderRegistrySuffix()) {
230
+
failWithMessage("\nExpecting that actual InternetDomainName is not top domain under registry suffix but is.");
231
+
}
232
+
233
+
// return the current assertion for method chaining
234
+
returnmyself;
235
+
}
236
+
129
237
/**
130
238
* Verifies that the actual InternetDomainName is top private domain.
131
239
* @return this assertion object.
@@ -198,6 +306,42 @@ public S isNotUnderPublicSuffix() {
198
306
returnmyself;
199
307
}
200
308
309
+
/**
310
+
* Verifies that the actual InternetDomainName is under registry suffix.
311
+
* @return this assertion object.
312
+
* @throws AssertionError - if the actual InternetDomainName is not under registry suffix.
313
+
*/
314
+
publicSisUnderRegistrySuffix() {
315
+
// check that actual InternetDomainName we want to make assertions on is not null.
316
+
isNotNull();
317
+
318
+
// check that property call/field access is true
319
+
if (!actual.isUnderRegistrySuffix()) {
320
+
failWithMessage("\nExpecting that actual InternetDomainName is under registry suffix but is not.");
321
+
}
322
+
323
+
// return the current assertion for method chaining
324
+
returnmyself;
325
+
}
326
+
327
+
/**
328
+
* Verifies that the actual InternetDomainName is not under registry suffix.
329
+
* @return this assertion object.
330
+
* @throws AssertionError - if the actual InternetDomainName is under registry suffix.
331
+
*/
332
+
publicSisNotUnderRegistrySuffix() {
333
+
// check that actual InternetDomainName we want to make assertions on is not null.
334
+
isNotNull();
335
+
336
+
// check that property call/field access is false
337
+
if (actual.isUnderRegistrySuffix()) {
338
+
failWithMessage("\nExpecting that actual InternetDomainName is not under registry suffix but is.");
339
+
}
340
+
341
+
// return the current assertion for method chaining
342
+
returnmyself;
343
+
}
344
+
201
345
/**
202
346
* Verifies that the actual InternetDomainName's name is equal to the given one.
203
347
* @param name the given name to compare the actual InternetDomainName's name to.
@@ -213,7 +357,7 @@ public S hasName(String name) {
Copy file name to clipboardExpand all lines: assertions-examples/src/test/generated-assertions/org/apache/commons/lang3/exception/AbstractContextedRuntimeExceptionAssert.java
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
packageorg.apache.commons.lang3.exception;
2
2
3
+
importjava.util.Objects;
3
4
importorg.assertj.core.api.AbstractObjectAssert;
4
5
importorg.assertj.core.internal.Iterables;
5
-
importorg.assertj.core.util.Objects;
6
6
7
7
/**
8
8
* Abstract base class for {@link ContextedRuntimeException} specific assertions - Generated by CustomAssertionGenerator.
@@ -339,7 +339,7 @@ public S hasMessage(String message) {
339
339
340
340
// null safe check
341
341
StringactualMessage = actual.getMessage();
342
-
if (!Objects.areEqual(actualMessage, message)) {
342
+
if (!Objects.deepEquals(actualMessage, message)) {
Copy file name to clipboardExpand all lines: assertions-examples/src/test/generated-assertions/org/assertj/examples/data/AbstractBasketBallPlayerAssert.java
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
packageorg.assertj.examples.data;
2
2
3
+
importjava.util.Objects;
3
4
importorg.assertj.core.api.AbstractObjectAssert;
4
5
importorg.assertj.core.api.Assertions;
5
6
importorg.assertj.core.internal.Iterables;
6
-
importorg.assertj.core.util.Objects;
7
7
8
8
/**
9
9
* Abstract base class for {@link BasketBallPlayer} specific assertions - Generated by CustomAssertionGenerator.
@@ -58,7 +58,7 @@ public S hasName(Name name) throws org.assertj.examples.exception.NameException
Copy file name to clipboardExpand all lines: assertions-examples/src/test/generated-assertions/org/assertj/examples/data/AbstractClassUsingDifferentClassesWithSameNameAssert.java
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
packageorg.assertj.examples.data;
2
2
3
+
importjava.util.Objects;
3
4
importorg.assertj.core.api.AbstractObjectAssert;
4
-
importorg.assertj.core.util.Objects;
5
5
6
6
/**
7
7
* Abstract base class for {@link ClassUsingDifferentClassesWithSameName} specific assertions - Generated by CustomAssertionGenerator.
@@ -32,7 +32,7 @@ public S hasMovieTeam(org.assertj.examples.data.movie.Team movieTeam) {
0 commit comments