7070 */
7171public class R2dbcEntityTemplateUnitTests {
7272
73- org .springframework .r2dbc .core .DatabaseClient client ;
74- R2dbcEntityTemplate entityTemplate ;
75- StatementRecorder recorder ;
73+ private org .springframework .r2dbc .core .DatabaseClient client ;
74+ private R2dbcEntityTemplate entityTemplate ;
75+ private StatementRecorder recorder ;
7676
7777 @ BeforeEach
78- public void before () {
78+ void before () {
7979
8080 recorder = StatementRecorder .newInstance ();
8181 client = DatabaseClient .builder ().connectionFactory (recorder )
@@ -84,7 +84,7 @@ public void before() {
8484 }
8585
8686 @ Test // gh-220
87- public void shouldCountBy () {
87+ void shouldCountBy () {
8888
8989 MockRowMetadata metadata = MockRowMetadata .builder ()
9090 .columnMetadata (MockColumnMetadata .builder ().name ("name" ).build ()).build ();
@@ -105,7 +105,7 @@ public void shouldCountBy() {
105105 }
106106
107107 @ Test // gh-469
108- public void shouldProjectExistsResult () {
108+ void shouldProjectExistsResult () {
109109
110110 MockRowMetadata metadata = MockRowMetadata .builder ()
111111 .columnMetadata (MockColumnMetadata .builder ().name ("name" ).build ()).build ();
@@ -123,7 +123,7 @@ public void shouldProjectExistsResult() {
123123 }
124124
125125 @ Test // gh-469
126- public void shouldExistsByCriteria () {
126+ void shouldExistsByCriteria () {
127127
128128 MockRowMetadata metadata = MockRowMetadata .builder ()
129129 .columnMetadata (MockColumnMetadata .builder ().name ("name" ).build ()).build ();
@@ -144,7 +144,7 @@ public void shouldExistsByCriteria() {
144144 }
145145
146146 @ Test // gh-220
147- public void shouldSelectByCriteria () {
147+ void shouldSelectByCriteria () {
148148
149149 recorder .addStubbing (s -> s .startsWith ("SELECT" ), Collections .emptyList ());
150150
@@ -160,7 +160,7 @@ public void shouldSelectByCriteria() {
160160 }
161161
162162 @ Test // gh-215
163- public void selectShouldInvokeCallback () {
163+ void selectShouldInvokeCallback () {
164164
165165 MockRowMetadata metadata = MockRowMetadata .builder ().columnMetadata (MockColumnMetadata .builder ().name ("id" ).build ())
166166 .columnMetadata (MockColumnMetadata .builder ().name ("THE_NAME" ).build ()).build ();
@@ -185,7 +185,7 @@ public void selectShouldInvokeCallback() {
185185 }
186186
187187 @ Test // gh-220
188- public void shouldSelectOne () {
188+ void shouldSelectOne () {
189189
190190 recorder .addStubbing (s -> s .startsWith ("SELECT" ), Collections .emptyList ());
191191
@@ -201,7 +201,7 @@ public void shouldSelectOne() {
201201 }
202202
203203 @ Test // gh-220
204- public void shouldUpdateByQuery () {
204+ void shouldUpdateByQuery () {
205205
206206 MockRowMetadata metadata = MockRowMetadata .builder ()
207207 .columnMetadata (MockColumnMetadata .builder ().name ("name" ).build ()).build ();
@@ -223,7 +223,7 @@ public void shouldUpdateByQuery() {
223223 }
224224
225225 @ Test // gh-220
226- public void shouldDeleteByQuery () {
226+ void shouldDeleteByQuery () {
227227
228228 MockRowMetadata metadata = MockRowMetadata .builder ()
229229 .columnMetadata (MockColumnMetadata .builder ().name ("name" ).build ()).build ();
@@ -243,7 +243,7 @@ public void shouldDeleteByQuery() {
243243 }
244244
245245 @ Test // gh-220
246- public void shouldDeleteEntity () {
246+ void shouldDeleteEntity () {
247247
248248 Person person = new Person ();
249249 person .id = "Walter" ;
@@ -260,7 +260,7 @@ public void shouldDeleteEntity() {
260260 }
261261
262262 @ Test // gh-365
263- public void shouldInsertVersioned () {
263+ void shouldInsertVersioned () {
264264
265265 MockRowMetadata metadata = MockRowMetadata .builder ().build ();
266266 MockResult result = MockResult .builder ().rowMetadata (metadata ).rowsUpdated (1 ).build ();
@@ -281,7 +281,7 @@ public void shouldInsertVersioned() {
281281 }
282282
283283 @ Test // gh-557, gh-402
284- public void shouldSkipDefaultIdValueOnInsert () {
284+ void shouldSkipDefaultIdValueOnInsert () {
285285
286286 MockRowMetadata metadata = MockRowMetadata .builder ().build ();
287287 MockResult result = MockResult .builder ().rowMetadata (metadata ).rowsUpdated (1 ).build ();
@@ -299,7 +299,7 @@ public void shouldSkipDefaultIdValueOnInsert() {
299299 }
300300
301301 @ Test // gh-557, gh-402
302- public void shouldSkipDefaultIdValueOnVersionedInsert () {
302+ void shouldSkipDefaultIdValueOnVersionedInsert () {
303303
304304 MockRowMetadata metadata = MockRowMetadata .builder ().build ();
305305 MockResult result = MockResult .builder ().rowMetadata (metadata ).rowsUpdated (1 ).build ();
@@ -321,7 +321,7 @@ public void shouldSkipDefaultIdValueOnVersionedInsert() {
321321 }
322322
323323 @ Test // gh-451
324- public void shouldInsertCorrectlyVersionedAndAudited () {
324+ void shouldInsertCorrectlyVersionedAndAudited () {
325325
326326 MockRowMetadata metadata = MockRowMetadata .builder ().build ();
327327 MockResult result = MockResult .builder ().rowMetadata (metadata ).rowsUpdated (1 ).build ();
@@ -349,7 +349,7 @@ public void shouldInsertCorrectlyVersionedAndAudited() {
349349 }
350350
351351 @ Test // gh-451
352- public void shouldUpdateCorrectlyVersionedAndAudited () {
352+ void shouldUpdateCorrectlyVersionedAndAudited () {
353353
354354 MockRowMetadata metadata = MockRowMetadata .builder ().build ();
355355 MockResult result = MockResult .builder ().rowMetadata (metadata ).rowsUpdated (1 ).build ();
@@ -378,7 +378,7 @@ public void shouldUpdateCorrectlyVersionedAndAudited() {
378378 }
379379
380380 @ Test // gh-215
381- public void insertShouldInvokeCallback () {
381+ void insertShouldInvokeCallback () {
382382
383383 MockRowMetadata metadata = MockRowMetadata .builder ().build ();
384384 MockResult result = MockResult .builder ().rowMetadata (metadata ).rowsUpdated (1 ).build ();
@@ -406,7 +406,7 @@ public void insertShouldInvokeCallback() {
406406 }
407407
408408 @ Test // gh-365
409- public void shouldUpdateVersioned () {
409+ void shouldUpdateVersioned () {
410410
411411 MockRowMetadata metadata = MockRowMetadata .builder ().build ();
412412 MockResult result = MockResult .builder ().rowMetadata (metadata ).rowsUpdated (1 ).build ();
@@ -428,7 +428,7 @@ public void shouldUpdateVersioned() {
428428 }
429429
430430 @ Test // gh-215
431- public void updateShouldInvokeCallback () {
431+ void updateShouldInvokeCallback () {
432432
433433 MockRowMetadata metadata = MockRowMetadata .builder ().build ();
434434 MockResult result = MockResult .builder ().rowMetadata (metadata ).rowsUpdated (1 ).build ();
@@ -480,7 +480,7 @@ public void setName(String name) {
480480
481481 @ Value
482482 @ With
483- static class VersionedPerson {
483+ private static class VersionedPerson {
484484
485485 @ Id String id ;
486486
@@ -491,7 +491,7 @@ static class VersionedPerson {
491491
492492 @ Value
493493 @ With
494- static class PersonWithPrimitiveId {
494+ private static class PersonWithPrimitiveId {
495495
496496 @ Id int id ;
497497
@@ -500,7 +500,7 @@ static class PersonWithPrimitiveId {
500500
501501 @ Value
502502 @ With
503- static class VersionedPersonWithPrimitiveId {
503+ private static class VersionedPersonWithPrimitiveId {
504504
505505 @ Id int id ;
506506
@@ -511,7 +511,7 @@ static class VersionedPersonWithPrimitiveId {
511511
512512 @ Value
513513 @ With
514- static class WithAuditingAndOptimisticLocking {
514+ private static class WithAuditingAndOptimisticLocking {
515515
516516 @ Id String id ;
517517
@@ -527,7 +527,7 @@ static class ValueCapturingEntityCallback<T> {
527527
528528 private final List <T > values = new ArrayList <>(1 );
529529
530- protected void capture (T value ) {
530+ void capture (T value ) {
531531 values .add (value );
532532 }
533533
0 commit comments