27
27
* @author Jens Schauder
28
28
*/
29
29
@ ExtendWith (MockitoExtension .class )
30
- public class EntityRowMapperUnitTests {
30
+ class EntityRowMapperUnitTests {
31
31
32
- DefaultReactiveDataAccessStrategy strategy = new DefaultReactiveDataAccessStrategy (PostgresDialect .INSTANCE );
32
+ private DefaultReactiveDataAccessStrategy strategy = new DefaultReactiveDataAccessStrategy (PostgresDialect .INSTANCE );
33
33
34
- Row rowMock = mock (Row .class );
35
- RowMetadata metadata = MockRowMetadata .builder ()
34
+ private Row rowMock = mock (Row .class );
35
+ private RowMetadata metadata = MockRowMetadata .builder ()
36
36
.columnMetadata (MockColumnMetadata .builder ().name ("integer_set" ).build ())
37
37
.columnMetadata (MockColumnMetadata .builder ().name ("boxed_integers" ).build ())
38
38
.columnMetadata (MockColumnMetadata .builder ().name ("primitive_integers" ).build ())
@@ -43,7 +43,7 @@ public class EntityRowMapperUnitTests {
43
43
.columnMetadata (MockColumnMetadata .builder ().name ("ids" ).build ()).build ();
44
44
45
45
@ Test // gh-22
46
- public void shouldMapSimpleEntity () {
46
+ void shouldMapSimpleEntity () {
47
47
48
48
EntityRowMapper <SimpleEntity > mapper = getRowMapper (SimpleEntity .class );
49
49
when (rowMock .get ("id" )).thenReturn ("foo" );
@@ -53,7 +53,7 @@ public void shouldMapSimpleEntity() {
53
53
}
54
54
55
55
@ Test // gh-22
56
- public void shouldMapSimpleEntityWithConstructorCreation () {
56
+ void shouldMapSimpleEntityWithConstructorCreation () {
57
57
58
58
EntityRowMapper <SimpleEntityConstructorCreation > mapper = getRowMapper (SimpleEntityConstructorCreation .class );
59
59
when (rowMock .get ("id" )).thenReturn ("foo" );
@@ -63,7 +63,7 @@ public void shouldMapSimpleEntityWithConstructorCreation() {
63
63
}
64
64
65
65
@ Test // gh-22
66
- public void shouldApplyConversionWithConstructorCreation () {
66
+ void shouldApplyConversionWithConstructorCreation () {
67
67
68
68
EntityRowMapper <ConversionWithConstructorCreation > mapper = getRowMapper (ConversionWithConstructorCreation .class );
69
69
when (rowMock .get ("id" )).thenReturn ((byte ) 0x24 );
@@ -73,7 +73,7 @@ public void shouldApplyConversionWithConstructorCreation() {
73
73
}
74
74
75
75
@ Test // gh-30
76
- public void shouldConvertArrayToCollection () {
76
+ void shouldConvertArrayToCollection () {
77
77
78
78
EntityRowMapper <EntityWithCollection > mapper = getRowMapper (EntityWithCollection .class );
79
79
when (rowMock .get ("ids" )).thenReturn ((new String [] { "foo" , "bar" }));
@@ -83,7 +83,7 @@ public void shouldConvertArrayToCollection() {
83
83
}
84
84
85
85
@ Test // gh-30
86
- public void shouldConvertArrayToSet () {
86
+ void shouldConvertArrayToSet () {
87
87
88
88
EntityRowMapper <EntityWithCollection > mapper = getRowMapper (EntityWithCollection .class );
89
89
when (rowMock .get ("integer_set" )).thenReturn ((new int [] { 3 , 14 }));
@@ -93,7 +93,7 @@ public void shouldConvertArrayToSet() {
93
93
}
94
94
95
95
@ Test // gh-30
96
- public void shouldConvertArrayMembers () {
96
+ void shouldConvertArrayMembers () {
97
97
98
98
EntityRowMapper <EntityWithCollection > mapper = getRowMapper (EntityWithCollection .class );
99
99
when (rowMock .get ("primitive_integers" )).thenReturn ((new Long [] { 3L , 14L }));
@@ -103,7 +103,7 @@ public void shouldConvertArrayMembers() {
103
103
}
104
104
105
105
@ Test // gh-30
106
- public void shouldConvertArrayToBoxedArray () {
106
+ void shouldConvertArrayToBoxedArray () {
107
107
108
108
EntityRowMapper <EntityWithCollection > mapper = getRowMapper (EntityWithCollection .class );
109
109
when (rowMock .get ("boxed_integers" )).thenReturn ((new int [] { 3 , 11 }));
@@ -113,7 +113,7 @@ public void shouldConvertArrayToBoxedArray() {
113
113
}
114
114
115
115
@ Test // gh-252
116
- public void shouldReadEnums () {
116
+ void shouldReadEnums () {
117
117
118
118
EntityRowMapper <WithEnumCollections > mapper = getRowMapper (WithEnumCollections .class );
119
119
when (rowMock .get ("enum_array" )).thenReturn ((new String [] { "ONE" , "TWO" }));
0 commit comments