Skip to content

Commit 5e8925e

Browse files
committed
DATACASS-597 - Polishing.
Reformat test code, remove superflous blank lines.
1 parent ab87850 commit 5e8925e

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

spring-data-cassandra/src/test/java/org/springframework/data/cassandra/core/ExecutableSelectOperationSupportIntegrationTests.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
import org.springframework.data.cassandra.core.query.Query;
3939
import org.springframework.data.cassandra.repository.support.SchemaTestUtils;
4040
import org.springframework.data.cassandra.test.util.AbstractKeyspaceCreatingIntegrationTest;
41-
import org.springframework.data.util.Version;
4241

4342
/**
4443
* Integration tests for {@link ExecutableSelectOperationSupport}.
@@ -51,7 +50,6 @@ public class ExecutableSelectOperationSupportIntegrationTests extends AbstractKe
5150

5251
Person han;
5352
Person luke;
54-
Version cassandraVersion;
5553

5654
@Before
5755
public void setUp() {
@@ -122,7 +120,6 @@ public void findByReturningAllValuesAsClosedInterfaceProjection() {
122120

123121
@Test // DATACASS-485
124122
public void findAllBy() {
125-
126123
assertThat(this.template.query(Person.class).matching(queryLuke()).all()).containsExactlyInAnyOrder(luke);
127124
}
128125

@@ -135,7 +132,6 @@ public void findAllByWithCollectionUsingMappingInformation() {
135132

136133
@Test // DATACASS-485
137134
public void findAllByWithCollection() {
138-
139135
assertThat(this.template.query(Human.class).inTable("person").matching(queryLuke()).all()).hasSize(1);
140136
}
141137

@@ -148,13 +144,11 @@ public void findAllByWithProjection() {
148144

149145
@Test // DATACASS-485
150146
public void findBy() {
151-
152147
assertThat(this.template.query(Person.class).matching(queryLuke()).one()).contains(luke);
153148
}
154149

155150
@Test // DATACASS-485
156151
public void findByNoMatch() {
157-
158152
assertThat(this.template.query(Person.class).matching(querySpock()).one()).isEmpty();
159153
}
160154

@@ -165,7 +159,6 @@ public void findByTooManyResults() {
165159

166160
@Test // DATACASS-485
167161
public void findByReturningOneValue() {
168-
169162
assertThat(this.template.query(Person.class).matching(queryLuke()).oneValue()).isEqualTo(luke);
170163
}
171164

@@ -176,7 +169,6 @@ public void findByReturningOneValueButTooManyResults() {
176169

177170
@Test // DATACASS-485
178171
public void findByReturningFirstValue() {
179-
180172
assertThat(this.template.query(Person.class).matching(queryLuke()).firstValue()).isEqualTo(luke);
181173
}
182174

@@ -188,7 +180,6 @@ public void findByReturningFirstValueForManyResults() {
188180
@Test // DATACASS-485
189181
public void findByReturningFirstValueAsClosedInterfaceProjection() {
190182

191-
192183
PersonProjection result = this.template
193184
.query(Person.class)
194185
.as(PersonProjection.class)
@@ -202,7 +193,6 @@ public void findByReturningFirstValueAsClosedInterfaceProjection() {
202193
@Test // DATACASS-485
203194
public void findByReturningFirstValueAsOpenInterfaceProjection() {
204195

205-
206196
PersonSpELProjection result = this.template
207197
.query(Person.class)
208198
.as(PersonSpELProjection.class)
@@ -254,7 +244,6 @@ public void streamAllReturningResultsAsClosedInterfaceProjection() {
254244
@Test // DATACASS-485
255245
public void streamAllReturningResultsAsOpenInterfaceProjection() {
256246

257-
258247
TerminatingSelect<PersonSpELProjection> operation =
259248
this.template.query(Person.class).as(PersonSpELProjection.class);
260249

@@ -281,7 +270,6 @@ public void firstShouldReturnFirstEntryInCollection() {
281270

282271
@Test // DATACASS-485
283272
public void countShouldReturnNrOfElementsInCollectionWhenNoQueryPresent() {
284-
285273
assertThat(this.template.query(Person.class).count()).isEqualTo(2);
286274
}
287275

@@ -306,7 +294,6 @@ public void existsShouldReturnFalseIfNoElementExistsInCollection() {
306294

307295
@Test // DATACASS-485
308296
public void existsShouldReturnTrueIfAtLeastOneElementMatchesQuery() {
309-
310297
assertThat(this.template.query(Person.class).matching(queryLuke()).exists()).isTrue();
311298
}
312299

0 commit comments

Comments
 (0)