Skip to content

Commit 7375273

Browse files
committed
Polishing.
Reduce method visibility. See #519
1 parent c745165 commit 7375273

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/test/java/org/springframework/data/r2dbc/repository/H2R2dbcRepositoryIntegrationTests.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import reactor.core.publisher.Mono;
2626
import reactor.test.StepVerifier;
2727

28-
import java.util.Arrays;
28+
import java.util.Collections;
2929

3030
import javax.sql.DataSource;
3131

@@ -93,57 +93,57 @@ protected Class<? extends LegoSetRepository> getRepositoryInterfaceType() {
9393
}
9494

9595
@Test // gh-469
96-
public void shouldSuppressNullValues() {
96+
void shouldSuppressNullValues() {
9797
repository.findMax("doo").as(StepVerifier::create).verifyComplete();
9898
}
9999

100100
@Test // gh-235
101-
public void shouldReturnUpdateCount() {
101+
void shouldReturnUpdateCount() {
102102

103103
shouldInsertNewItems();
104104

105105
repository.updateManual(42).as(StepVerifier::create).expectNext(2L).verifyComplete();
106106
}
107107

108108
@Test // gh-235
109-
public void shouldReturnUpdateCountAsDouble() {
109+
void shouldReturnUpdateCountAsDouble() {
110110

111111
shouldInsertNewItems();
112112

113113
repository.updateManualAndReturnDouble(42).as(StepVerifier::create).expectNext(2.0).verifyComplete();
114114
}
115115

116116
@Test // gh-235
117-
public void shouldReturnUpdateSuccess() {
117+
void shouldReturnUpdateSuccess() {
118118

119119
shouldInsertNewItems();
120120

121121
repository.updateManualAndReturnBoolean(42).as(StepVerifier::create).expectNext(true).verifyComplete();
122122
}
123123

124124
@Test // gh-235
125-
public void shouldNotReturnUpdateCount() {
125+
void shouldNotReturnUpdateCount() {
126126

127127
shouldInsertNewItems();
128128

129129
repository.updateManualAndReturnNothing(42).as(StepVerifier::create).verifyComplete();
130130
}
131131

132132
@Test // gh-390
133-
public void shouldInsertIdOnlyEntity() {
133+
void shouldInsertIdOnlyEntity() {
134134

135135
this.jdbc.execute("CREATE TABLE ID_ONLY(id serial CONSTRAINT id_only_pk PRIMARY KEY)");
136136

137137
IdOnlyEntity entity1 = new IdOnlyEntity();
138-
idOnlyEntityRepository.saveAll(Arrays.asList(entity1))
138+
idOnlyEntityRepository.saveAll(Collections.singletonList(entity1))
139139
.as(StepVerifier::create) //
140140
.consumeNextWith( actual -> {
141141
assertThat(actual.getId()).isNotNull();
142142
}).verifyComplete();
143143
}
144144

145145
@Test // gh-519
146-
public void shouldReturnEntityThroughInterface() {
146+
void shouldReturnEntityThroughInterface() {
147147

148148
shouldInsertNewItems();
149149

0 commit comments

Comments
 (0)