Skip to content

Commit 09c0fc8

Browse files
committed
Polishing.
Standardized GitHub references of tests. Original pull request /pull/691
1 parent 859c011 commit 09c0fc8

File tree

1 file changed

+44
-44
lines changed

1 file changed

+44
-44
lines changed

src/test/java/org/springframework/data/r2dbc/repository/query/PartTreeR2dbcQueryUnitTests.java

+44-44
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ void setUp() {
106106
dataAccessStrategy);
107107
}
108108

109-
@Test // gh-282
109+
@Test // GH-282
110110
void createsQueryToFindAllEntitiesByStringAttribute() throws Exception {
111111

112112
R2dbcQueryMethod queryMethod = getQueryMethod("findAllByFirstName", String.class);
@@ -119,7 +119,7 @@ void createsQueryToFindAllEntitiesByStringAttribute() throws Exception {
119119
.where(TABLE + ".first_name = $1");
120120
}
121121

122-
@Test // gh-282
122+
@Test // GH-282
123123
void createsQueryWithIsNullCondition() throws Exception {
124124

125125
R2dbcQueryMethod queryMethod = getQueryMethod("findAllByFirstName", String.class);
@@ -132,7 +132,7 @@ void createsQueryWithIsNullCondition() throws Exception {
132132
.where(TABLE + ".first_name IS NULL");
133133
}
134134

135-
@Test // gh-282
135+
@Test // GH-282
136136
void createsQueryWithLimitForExistsProjection() throws Exception {
137137

138138
R2dbcQueryMethod queryMethod = getQueryMethod("existsByFirstName", String.class);
@@ -145,7 +145,7 @@ void createsQueryWithLimitForExistsProjection() throws Exception {
145145
.where(TABLE + ".first_name = $1 LIMIT 1");
146146
}
147147

148-
@Test // gh-282
148+
@Test // GH-282
149149
void createsQueryToFindAllEntitiesByTwoStringAttributes() throws Exception {
150150

151151
R2dbcQueryMethod queryMethod = getQueryMethod("findAllByLastNameAndFirstName", String.class, String.class);
@@ -159,7 +159,7 @@ void createsQueryToFindAllEntitiesByTwoStringAttributes() throws Exception {
159159
.where(TABLE + ".last_name = $1 AND (" + TABLE + ".first_name = $2)");
160160
}
161161

162-
@Test // gh-282
162+
@Test // GH-282
163163
void createsQueryToFindAllEntitiesByOneOfTwoStringAttributes() throws Exception {
164164

165165
R2dbcQueryMethod queryMethod = getQueryMethod("findAllByLastNameOrFirstName", String.class, String.class);
@@ -173,7 +173,7 @@ void createsQueryToFindAllEntitiesByOneOfTwoStringAttributes() throws Exception
173173
.where(TABLE + ".last_name = $1 OR (" + TABLE + ".first_name = $2)");
174174
}
175175

176-
@Test // gh-282, gh-349
176+
@Test // GH-282, GH-349
177177
void createsQueryToFindAllEntitiesByDateAttributeBetween() throws Exception {
178178

179179
R2dbcQueryMethod queryMethod = getQueryMethod("findAllByDateOfBirthBetween", Date.class, Date.class);
@@ -195,7 +195,7 @@ void createsQueryToFindAllEntitiesByDateAttributeBetween() throws Exception {
195195
verify(bindTarget, times(1)).bind(1, to);
196196
}
197197

198-
@Test // gh-282
198+
@Test // GH-282
199199
void createsQueryToFindAllEntitiesByIntegerAttributeLessThan() throws Exception {
200200

201201
R2dbcQueryMethod queryMethod = getQueryMethod("findAllByAgeLessThan", Integer.class);
@@ -209,7 +209,7 @@ void createsQueryToFindAllEntitiesByIntegerAttributeLessThan() throws Exception
209209
.where(TABLE + ".age < $1");
210210
}
211211

212-
@Test // gh-282
212+
@Test // GH-282
213213
void createsQueryToFindAllEntitiesByIntegerAttributeLessThanEqual() throws Exception {
214214

215215
R2dbcQueryMethod queryMethod = getQueryMethod("findAllByAgeLessThanEqual", Integer.class);
@@ -223,7 +223,7 @@ void createsQueryToFindAllEntitiesByIntegerAttributeLessThanEqual() throws Excep
223223
.where(TABLE + ".age <= $1");
224224
}
225225

226-
@Test // gh-282
226+
@Test // GH-282
227227
void createsQueryToFindAllEntitiesByIntegerAttributeGreaterThan() throws Exception {
228228

229229
R2dbcQueryMethod queryMethod = getQueryMethod("findAllByAgeGreaterThan", Integer.class);
@@ -237,7 +237,7 @@ void createsQueryToFindAllEntitiesByIntegerAttributeGreaterThan() throws Excepti
237237
.where(TABLE + ".age > $1");
238238
}
239239

240-
@Test // gh-282
240+
@Test // GH-282
241241
void createsQueryToFindAllEntitiesByIntegerAttributeGreaterThanEqual() throws Exception {
242242

243243
R2dbcQueryMethod queryMethod = getQueryMethod("findAllByAgeGreaterThanEqual", Integer.class);
@@ -251,7 +251,7 @@ void createsQueryToFindAllEntitiesByIntegerAttributeGreaterThanEqual() throws Ex
251251
.where(TABLE + ".age >= $1");
252252
}
253253

254-
@Test // gh-282
254+
@Test // GH-282
255255
void createsQueryToFindAllEntitiesByDateAttributeAfter() throws Exception {
256256

257257
R2dbcQueryMethod queryMethod = getQueryMethod("findAllByDateOfBirthAfter", Date.class);
@@ -265,7 +265,7 @@ void createsQueryToFindAllEntitiesByDateAttributeAfter() throws Exception {
265265
.where(TABLE + ".date_of_birth > $1");
266266
}
267267

268-
@Test // gh-282
268+
@Test // GH-282
269269
void createsQueryToFindAllEntitiesByDateAttributeBefore() throws Exception {
270270
R2dbcQueryMethod queryMethod = getQueryMethod("findAllByDateOfBirthBefore", Date.class);
271271
PartTreeR2dbcQuery r2dbcQuery = new PartTreeR2dbcQuery(queryMethod, operations, r2dbcConverter, dataAccessStrategy);
@@ -278,7 +278,7 @@ void createsQueryToFindAllEntitiesByDateAttributeBefore() throws Exception {
278278
.where(TABLE + ".date_of_birth < $1");
279279
}
280280

281-
@Test // gh-282
281+
@Test // GH-282
282282
void createsQueryToFindAllEntitiesByIntegerAttributeIsNull() throws Exception {
283283

284284
R2dbcQueryMethod queryMethod = getQueryMethod("findAllByAgeIsNull");
@@ -292,7 +292,7 @@ void createsQueryToFindAllEntitiesByIntegerAttributeIsNull() throws Exception {
292292
.where(TABLE + ".age IS NULL");
293293
}
294294

295-
@Test // gh-282
295+
@Test // GH-282
296296
void createsQueryToFindAllEntitiesByIntegerAttributeIsNotNull() throws Exception {
297297

298298
R2dbcQueryMethod queryMethod = getQueryMethod("findAllByAgeIsNotNull");
@@ -306,7 +306,7 @@ void createsQueryToFindAllEntitiesByIntegerAttributeIsNotNull() throws Exception
306306
.where(TABLE + ".age IS NOT NULL");
307307
}
308308

309-
@Test // gh-282
309+
@Test // GH-282
310310
void createsQueryToFindAllEntitiesByStringAttributeLike() throws Exception {
311311

312312
R2dbcQueryMethod queryMethod = getQueryMethod("findAllByFirstNameLike", String.class);
@@ -320,7 +320,7 @@ void createsQueryToFindAllEntitiesByStringAttributeLike() throws Exception {
320320
.where(TABLE + ".first_name LIKE $1");
321321
}
322322

323-
@Test // gh-282
323+
@Test // GH-282
324324
void createsQueryToFindAllEntitiesByStringAttributeNotLike() throws Exception {
325325

326326
R2dbcQueryMethod queryMethod = getQueryMethod("findAllByFirstNameNotLike", String.class);
@@ -334,7 +334,7 @@ void createsQueryToFindAllEntitiesByStringAttributeNotLike() throws Exception {
334334
.where(TABLE + ".first_name NOT LIKE $1");
335335
}
336336

337-
@Test // gh-282
337+
@Test // GH-282
338338
void createsQueryToFindAllEntitiesByStringAttributeStartingWith() throws Exception {
339339

340340
R2dbcQueryMethod queryMethod = getQueryMethod("findAllByFirstNameStartingWith", String.class);
@@ -348,7 +348,7 @@ void createsQueryToFindAllEntitiesByStringAttributeStartingWith() throws Excepti
348348
.where(TABLE + ".first_name LIKE $1");
349349
}
350350

351-
@Test // gh-282
351+
@Test // GH-282
352352
void appendsLikeOperatorParameterWithPercentSymbolForStartingWithQuery() throws Exception {
353353

354354
R2dbcQueryMethod queryMethod = getQueryMethod("findAllByFirstNameStartingWith", String.class);
@@ -361,7 +361,7 @@ void appendsLikeOperatorParameterWithPercentSymbolForStartingWithQuery() throws
361361
verify(bindTarget, times(1)).bind(0, "Jo%");
362362
}
363363

364-
@Test // gh-282
364+
@Test // GH-282
365365
void createsQueryToFindAllEntitiesByStringAttributeEndingWith() throws Exception {
366366

367367
R2dbcQueryMethod queryMethod = getQueryMethod("findAllByFirstNameEndingWith", String.class);
@@ -375,7 +375,7 @@ void createsQueryToFindAllEntitiesByStringAttributeEndingWith() throws Exception
375375
.where(TABLE + ".first_name LIKE $1");
376376
}
377377

378-
@Test // gh-282
378+
@Test // GH-282
379379
void prependsLikeOperatorParameterWithPercentSymbolForEndingWithQuery() throws Exception {
380380

381381
R2dbcQueryMethod queryMethod = getQueryMethod("findAllByFirstNameEndingWith", String.class);
@@ -388,7 +388,7 @@ void prependsLikeOperatorParameterWithPercentSymbolForEndingWithQuery() throws E
388388
verify(bindTarget, times(1)).bind(0, "%hn");
389389
}
390390

391-
@Test // gh-282
391+
@Test // GH-282
392392
void createsQueryToFindAllEntitiesByStringAttributeContaining() throws Exception {
393393

394394
R2dbcQueryMethod queryMethod = getQueryMethod("findAllByFirstNameContaining", String.class);
@@ -402,7 +402,7 @@ void createsQueryToFindAllEntitiesByStringAttributeContaining() throws Exception
402402
.where(TABLE + ".first_name LIKE $1");
403403
}
404404

405-
@Test // gh-282
405+
@Test // GH-282
406406
void wrapsLikeOperatorParameterWithPercentSymbolsForContainingQuery() throws Exception {
407407

408408
R2dbcQueryMethod queryMethod = getQueryMethod("findAllByFirstNameContaining", String.class);
@@ -415,7 +415,7 @@ void wrapsLikeOperatorParameterWithPercentSymbolsForContainingQuery() throws Exc
415415
verify(bindTarget, times(1)).bind(0, "%oh%");
416416
}
417417

418-
@Test // gh-282
418+
@Test // GH-282
419419
void createsQueryToFindAllEntitiesByStringAttributeNotContaining() throws Exception {
420420

421421
R2dbcQueryMethod queryMethod = getQueryMethod("findAllByFirstNameNotContaining", String.class);
@@ -429,7 +429,7 @@ void createsQueryToFindAllEntitiesByStringAttributeNotContaining() throws Except
429429
.where(TABLE + ".first_name NOT LIKE $1");
430430
}
431431

432-
@Test // gh-282
432+
@Test // GH-282
433433
void wrapsLikeOperatorParameterWithPercentSymbolsForNotContainingQuery() throws Exception {
434434

435435
R2dbcQueryMethod queryMethod = getQueryMethod("findAllByFirstNameNotContaining", String.class);
@@ -442,7 +442,7 @@ void wrapsLikeOperatorParameterWithPercentSymbolsForNotContainingQuery() throws
442442
verify(bindTarget, times(1)).bind(0, "%oh%");
443443
}
444444

445-
@Test // gh-282
445+
@Test // GH-282
446446
void createsQueryToFindAllEntitiesByIntegerAttributeWithDescendingOrderingByStringAttribute() throws Exception {
447447

448448
R2dbcQueryMethod queryMethod = getQueryMethod("findAllByAgeOrderByLastNameDesc", Integer.class);
@@ -457,7 +457,7 @@ void createsQueryToFindAllEntitiesByIntegerAttributeWithDescendingOrderingByStri
457457
.orderBy("users.last_name DESC");
458458
}
459459

460-
@Test // gh-282
460+
@Test // GH-282
461461
void createsQueryToFindAllEntitiesByIntegerAttributeWithAscendingOrderingByStringAttribute() throws Exception {
462462

463463
R2dbcQueryMethod queryMethod = getQueryMethod("findAllByAgeOrderByLastNameAsc", Integer.class);
@@ -472,7 +472,7 @@ void createsQueryToFindAllEntitiesByIntegerAttributeWithAscendingOrderingByStrin
472472
.orderBy("users.last_name ASC");
473473
}
474474

475-
@Test // gh-282
475+
@Test // GH-282
476476
void createsQueryToFindAllEntitiesByStringAttributeNot() throws Exception {
477477

478478
R2dbcQueryMethod queryMethod = getQueryMethod("findAllByLastNameNot", String.class);
@@ -486,7 +486,7 @@ void createsQueryToFindAllEntitiesByStringAttributeNot() throws Exception {
486486
.where(TABLE + ".last_name != $1");
487487
}
488488

489-
@Test // gh-282
489+
@Test // GH-282
490490
void createsQueryToFindAllEntitiesByIntegerAttributeIn() throws Exception {
491491

492492
R2dbcQueryMethod queryMethod = getQueryMethod("findAllByAgeIn", Collection.class);
@@ -501,7 +501,7 @@ void createsQueryToFindAllEntitiesByIntegerAttributeIn() throws Exception {
501501
.where(TABLE + ".age IN ($1)");
502502
}
503503

504-
@Test // gh-282
504+
@Test // GH-282
505505
void createsQueryToFindAllEntitiesByIntegerAttributeNotIn() throws Exception {
506506

507507
R2dbcQueryMethod queryMethod = getQueryMethod("findAllByAgeNotIn", Collection.class);
@@ -516,7 +516,7 @@ void createsQueryToFindAllEntitiesByIntegerAttributeNotIn() throws Exception {
516516
.where(TABLE + ".age NOT IN ($1)");
517517
}
518518

519-
@Test // gh-282, gh-698
519+
@Test // GH-282, GH-698
520520
void createsQueryToFindAllEntitiesByBooleanAttributeTrue() throws Exception {
521521

522522
R2dbcQueryMethod queryMethod = getQueryMethod("findAllByActiveTrue");
@@ -530,7 +530,7 @@ void createsQueryToFindAllEntitiesByBooleanAttributeTrue() throws Exception {
530530
.where(TABLE + ".active = $1");
531531
}
532532

533-
@Test // gh-282, gh-698
533+
@Test // GH-282, GH-698
534534
void createsQueryToFindAllEntitiesByBooleanAttributeFalse() throws Exception {
535535

536536
R2dbcQueryMethod queryMethod = getQueryMethod("findAllByActiveFalse");
@@ -544,7 +544,7 @@ void createsQueryToFindAllEntitiesByBooleanAttributeFalse() throws Exception {
544544
.where(TABLE + ".active = $1");
545545
}
546546

547-
@Test // gh-282
547+
@Test // GH-282
548548
void createsQueryToFindAllEntitiesByStringAttributeIgnoringCase() throws Exception {
549549

550550
R2dbcQueryMethod queryMethod = getQueryMethod("findAllByFirstNameIgnoreCase", String.class);
@@ -558,7 +558,7 @@ void createsQueryToFindAllEntitiesByStringAttributeIgnoringCase() throws Excepti
558558
.where("UPPER(" + TABLE + ".first_name) = UPPER($1)");
559559
}
560560

561-
@Test // gh-282
561+
@Test // GH-282
562562
void throwsExceptionWhenIgnoringCaseIsImpossible() throws Exception {
563563

564564
R2dbcQueryMethod queryMethod = getQueryMethod("findByIdIgnoringCase", Long.class);
@@ -568,7 +568,7 @@ void throwsExceptionWhenIgnoringCaseIsImpossible() throws Exception {
568568
.isThrownBy(() -> createQuery(r2dbcQuery, getAccessor(queryMethod, new Object[] { 1L })));
569569
}
570570

571-
@Test // gh-282
571+
@Test // GH-282
572572
void throwsExceptionWhenInPredicateHasNonIterableParameter() throws Exception {
573573

574574
R2dbcQueryMethod queryMethod = getQueryMethod("findAllByIdIn", Long.class);
@@ -577,7 +577,7 @@ void throwsExceptionWhenInPredicateHasNonIterableParameter() throws Exception {
577577
.isThrownBy(() -> new PartTreeR2dbcQuery(queryMethod, operations, r2dbcConverter, dataAccessStrategy));
578578
}
579579

580-
@Test // gh-282
580+
@Test // GH-282
581581
void throwsExceptionWhenSimplePropertyPredicateHasIterableParameter() throws Exception {
582582

583583
R2dbcQueryMethod queryMethod = getQueryMethod("findAllById", Collection.class);
@@ -586,7 +586,7 @@ void throwsExceptionWhenSimplePropertyPredicateHasIterableParameter() throws Exc
586586
.isThrownBy(() -> new PartTreeR2dbcQuery(queryMethod, operations, r2dbcConverter, dataAccessStrategy));
587587
}
588588

589-
@Test // gh-282
589+
@Test // GH-282
590590
void throwsExceptionWhenConditionKeywordIsUnsupported() throws Exception {
591591

592592
R2dbcQueryMethod queryMethod = getQueryMethod("findAllByIdIsEmpty");
@@ -596,7 +596,7 @@ void throwsExceptionWhenConditionKeywordIsUnsupported() throws Exception {
596596
.isThrownBy(() -> createQuery(r2dbcQuery, getAccessor(queryMethod, new Object[0])));
597597
}
598598

599-
@Test // gh-282
599+
@Test // GH-282
600600
void throwsExceptionWhenInvalidNumberOfParameterIsGiven() throws Exception {
601601

602602
R2dbcQueryMethod queryMethod = getQueryMethod("findAllByFirstName", String.class);
@@ -606,7 +606,7 @@ void throwsExceptionWhenInvalidNumberOfParameterIsGiven() throws Exception {
606606
.isThrownBy(() -> createQuery(r2dbcQuery, getAccessor(queryMethod, new Object[0])));
607607
}
608608

609-
@Test // gh-282
609+
@Test // GH-282
610610
void createsQueryWithLimitToFindEntitiesByStringAttribute() throws Exception {
611611

612612
R2dbcQueryMethod queryMethod = getQueryMethod("findTop3ByFirstName", String.class);
@@ -620,7 +620,7 @@ void createsQueryWithLimitToFindEntitiesByStringAttribute() throws Exception {
620620
.where(TABLE + ".first_name = $1 LIMIT 3");
621621
}
622622

623-
@Test // gh-282
623+
@Test // GH-282
624624
void createsQueryToFindFirstEntityByStringAttribute() throws Exception {
625625

626626
R2dbcQueryMethod queryMethod = getQueryMethod("findFirstByFirstName", String.class);
@@ -634,7 +634,7 @@ void createsQueryToFindFirstEntityByStringAttribute() throws Exception {
634634
.where(TABLE + ".first_name = $1 LIMIT 1");
635635
}
636636

637-
@Test // gh-341
637+
@Test // GH-341
638638
void createsQueryToDeleteByFirstName() throws Exception {
639639

640640
R2dbcQueryMethod queryMethod = getQueryMethod("deleteByFirstName", String.class);
@@ -648,7 +648,7 @@ void createsQueryToDeleteByFirstName() throws Exception {
648648
.where(TABLE + ".first_name = $1");
649649
}
650650

651-
@Test // gh-344
651+
@Test // GH-344
652652
void createsQueryToFindAllEntitiesByStringAttributeWithDistinct() throws Exception {
653653

654654
R2dbcQueryMethod queryMethod = getQueryMethod("findDistinctByFirstName", String.class);
@@ -661,7 +661,7 @@ void createsQueryToFindAllEntitiesByStringAttributeWithDistinct() throws Excepti
661661

662662
}
663663

664-
@Test // gh-475
664+
@Test // GH-475
665665
void createsQueryToFindByOpenProjection() throws Exception {
666666

667667
R2dbcQueryMethod queryMethod = getQueryMethod("findOpenProjectionBy");
@@ -673,7 +673,7 @@ void createsQueryToFindByOpenProjection() throws Exception {
673673
.from(TABLE);
674674
}
675675

676-
@Test // gh-475
676+
@Test // GH-475
677677
void createsDtoProjectionQuery() throws Exception {
678678

679679
R2dbcQueryMethod queryMethod = getQueryMethod("findAsDtoProjectionBy");
@@ -685,7 +685,7 @@ void createsDtoProjectionQuery() throws Exception {
685685
.from(TABLE);
686686
}
687687

688-
@Test // gh-363
688+
@Test // GH-363
689689
void createsQueryForCountProjection() throws Exception {
690690

691691
R2dbcQueryMethod queryMethod = getQueryMethod("countByFirstName", String.class);

0 commit comments

Comments
 (0)