2727 * @author Jens Schauder
2828 */
2929@ ExtendWith (MockitoExtension .class )
30- public class EntityRowMapperUnitTests {
30+ class EntityRowMapperUnitTests {
3131
32- DefaultReactiveDataAccessStrategy strategy = new DefaultReactiveDataAccessStrategy (PostgresDialect .INSTANCE );
32+ private DefaultReactiveDataAccessStrategy strategy = new DefaultReactiveDataAccessStrategy (PostgresDialect .INSTANCE );
3333
34- Row rowMock = mock (Row .class );
35- RowMetadata metadata = MockRowMetadata .builder ()
34+ private Row rowMock = mock (Row .class );
35+ private RowMetadata metadata = MockRowMetadata .builder ()
3636 .columnMetadata (MockColumnMetadata .builder ().name ("integer_set" ).build ())
3737 .columnMetadata (MockColumnMetadata .builder ().name ("boxed_integers" ).build ())
3838 .columnMetadata (MockColumnMetadata .builder ().name ("primitive_integers" ).build ())
@@ -43,7 +43,7 @@ public class EntityRowMapperUnitTests {
4343 .columnMetadata (MockColumnMetadata .builder ().name ("ids" ).build ()).build ();
4444
4545 @ Test // gh-22
46- public void shouldMapSimpleEntity () {
46+ void shouldMapSimpleEntity () {
4747
4848 EntityRowMapper <SimpleEntity > mapper = getRowMapper (SimpleEntity .class );
4949 when (rowMock .get ("id" )).thenReturn ("foo" );
@@ -53,7 +53,7 @@ public void shouldMapSimpleEntity() {
5353 }
5454
5555 @ Test // gh-22
56- public void shouldMapSimpleEntityWithConstructorCreation () {
56+ void shouldMapSimpleEntityWithConstructorCreation () {
5757
5858 EntityRowMapper <SimpleEntityConstructorCreation > mapper = getRowMapper (SimpleEntityConstructorCreation .class );
5959 when (rowMock .get ("id" )).thenReturn ("foo" );
@@ -63,7 +63,7 @@ public void shouldMapSimpleEntityWithConstructorCreation() {
6363 }
6464
6565 @ Test // gh-22
66- public void shouldApplyConversionWithConstructorCreation () {
66+ void shouldApplyConversionWithConstructorCreation () {
6767
6868 EntityRowMapper <ConversionWithConstructorCreation > mapper = getRowMapper (ConversionWithConstructorCreation .class );
6969 when (rowMock .get ("id" )).thenReturn ((byte ) 0x24 );
@@ -73,7 +73,7 @@ public void shouldApplyConversionWithConstructorCreation() {
7373 }
7474
7575 @ Test // gh-30
76- public void shouldConvertArrayToCollection () {
76+ void shouldConvertArrayToCollection () {
7777
7878 EntityRowMapper <EntityWithCollection > mapper = getRowMapper (EntityWithCollection .class );
7979 when (rowMock .get ("ids" )).thenReturn ((new String [] { "foo" , "bar" }));
@@ -83,7 +83,7 @@ public void shouldConvertArrayToCollection() {
8383 }
8484
8585 @ Test // gh-30
86- public void shouldConvertArrayToSet () {
86+ void shouldConvertArrayToSet () {
8787
8888 EntityRowMapper <EntityWithCollection > mapper = getRowMapper (EntityWithCollection .class );
8989 when (rowMock .get ("integer_set" )).thenReturn ((new int [] { 3 , 14 }));
@@ -93,7 +93,7 @@ public void shouldConvertArrayToSet() {
9393 }
9494
9595 @ Test // gh-30
96- public void shouldConvertArrayMembers () {
96+ void shouldConvertArrayMembers () {
9797
9898 EntityRowMapper <EntityWithCollection > mapper = getRowMapper (EntityWithCollection .class );
9999 when (rowMock .get ("primitive_integers" )).thenReturn ((new Long [] { 3L , 14L }));
@@ -103,7 +103,7 @@ public void shouldConvertArrayMembers() {
103103 }
104104
105105 @ Test // gh-30
106- public void shouldConvertArrayToBoxedArray () {
106+ void shouldConvertArrayToBoxedArray () {
107107
108108 EntityRowMapper <EntityWithCollection > mapper = getRowMapper (EntityWithCollection .class );
109109 when (rowMock .get ("boxed_integers" )).thenReturn ((new int [] { 3 , 11 }));
@@ -113,7 +113,7 @@ public void shouldConvertArrayToBoxedArray() {
113113 }
114114
115115 @ Test // gh-252
116- public void shouldReadEnums () {
116+ void shouldReadEnums () {
117117
118118 EntityRowMapper <WithEnumCollections > mapper = getRowMapper (WithEnumCollections .class );
119119 when (rowMock .get ("enum_array" )).thenReturn ((new String [] { "ONE" , "TWO" }));
0 commit comments