|
25 | 25 | import reactor.core.publisher.Mono; |
26 | 26 | import reactor.test.StepVerifier; |
27 | 27 |
|
28 | | -import java.util.Arrays; |
| 28 | +import java.util.Collections; |
29 | 29 |
|
30 | 30 | import javax.sql.DataSource; |
31 | 31 |
|
@@ -93,57 +93,57 @@ protected Class<? extends LegoSetRepository> getRepositoryInterfaceType() { |
93 | 93 | } |
94 | 94 |
|
95 | 95 | @Test // gh-469 |
96 | | - public void shouldSuppressNullValues() { |
| 96 | + void shouldSuppressNullValues() { |
97 | 97 | repository.findMax("doo").as(StepVerifier::create).verifyComplete(); |
98 | 98 | } |
99 | 99 |
|
100 | 100 | @Test // gh-235 |
101 | | - public void shouldReturnUpdateCount() { |
| 101 | + void shouldReturnUpdateCount() { |
102 | 102 |
|
103 | 103 | shouldInsertNewItems(); |
104 | 104 |
|
105 | 105 | repository.updateManual(42).as(StepVerifier::create).expectNext(2L).verifyComplete(); |
106 | 106 | } |
107 | 107 |
|
108 | 108 | @Test // gh-235 |
109 | | - public void shouldReturnUpdateCountAsDouble() { |
| 109 | + void shouldReturnUpdateCountAsDouble() { |
110 | 110 |
|
111 | 111 | shouldInsertNewItems(); |
112 | 112 |
|
113 | 113 | repository.updateManualAndReturnDouble(42).as(StepVerifier::create).expectNext(2.0).verifyComplete(); |
114 | 114 | } |
115 | 115 |
|
116 | 116 | @Test // gh-235 |
117 | | - public void shouldReturnUpdateSuccess() { |
| 117 | + void shouldReturnUpdateSuccess() { |
118 | 118 |
|
119 | 119 | shouldInsertNewItems(); |
120 | 120 |
|
121 | 121 | repository.updateManualAndReturnBoolean(42).as(StepVerifier::create).expectNext(true).verifyComplete(); |
122 | 122 | } |
123 | 123 |
|
124 | 124 | @Test // gh-235 |
125 | | - public void shouldNotReturnUpdateCount() { |
| 125 | + void shouldNotReturnUpdateCount() { |
126 | 126 |
|
127 | 127 | shouldInsertNewItems(); |
128 | 128 |
|
129 | 129 | repository.updateManualAndReturnNothing(42).as(StepVerifier::create).verifyComplete(); |
130 | 130 | } |
131 | 131 |
|
132 | 132 | @Test // gh-390 |
133 | | - public void shouldInsertIdOnlyEntity() { |
| 133 | + void shouldInsertIdOnlyEntity() { |
134 | 134 |
|
135 | 135 | this.jdbc.execute("CREATE TABLE ID_ONLY(id serial CONSTRAINT id_only_pk PRIMARY KEY)"); |
136 | 136 |
|
137 | 137 | IdOnlyEntity entity1 = new IdOnlyEntity(); |
138 | | - idOnlyEntityRepository.saveAll(Arrays.asList(entity1)) |
| 138 | + idOnlyEntityRepository.saveAll(Collections.singletonList(entity1)) |
139 | 139 | .as(StepVerifier::create) // |
140 | 140 | .consumeNextWith( actual -> { |
141 | 141 | assertThat(actual.getId()).isNotNull(); |
142 | 142 | }).verifyComplete(); |
143 | 143 | } |
144 | 144 |
|
145 | 145 | @Test // gh-519 |
146 | | - public void shouldReturnEntityThroughInterface() { |
| 146 | + void shouldReturnEntityThroughInterface() { |
147 | 147 |
|
148 | 148 | shouldInsertNewItems(); |
149 | 149 |
|
|
0 commit comments