3838import org .springframework .data .cassandra .core .query .Query ;
3939import org .springframework .data .cassandra .repository .support .SchemaTestUtils ;
4040import 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
5251Person han ;
5352Person luke ;
54- Version cassandraVersion ;
5553
5654@ Before
5755public void setUp () {
@@ -122,7 +120,6 @@ public void findByReturningAllValuesAsClosedInterfaceProjection() {
122120
123121@ Test // DATACASS-485
124122public void findAllBy () {
125-
126123assertThat (this .template .query (Person .class ).matching (queryLuke ()).all ()).containsExactlyInAnyOrder (luke );
127124}
128125
@@ -135,7 +132,6 @@ public void findAllByWithCollectionUsingMappingInformation() {
135132
136133@ Test // DATACASS-485
137134public void findAllByWithCollection () {
138-
139135assertThat (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
150146public void findBy () {
151-
152147assertThat (this .template .query (Person .class ).matching (queryLuke ()).one ()).contains (luke );
153148}
154149
155150@ Test // DATACASS-485
156151public void findByNoMatch () {
157-
158152assertThat (this .template .query (Person .class ).matching (querySpock ()).one ()).isEmpty ();
159153}
160154
@@ -165,7 +159,6 @@ public void findByTooManyResults() {
165159
166160@ Test // DATACASS-485
167161public void findByReturningOneValue () {
168-
169162assertThat (this .template .query (Person .class ).matching (queryLuke ()).oneValue ()).isEqualTo (luke );
170163}
171164
@@ -176,7 +169,6 @@ public void findByReturningOneValueButTooManyResults() {
176169
177170@ Test // DATACASS-485
178171public void findByReturningFirstValue () {
179-
180172assertThat (this .template .query (Person .class ).matching (queryLuke ()).firstValue ()).isEqualTo (luke );
181173}
182174
@@ -188,7 +180,6 @@ public void findByReturningFirstValueForManyResults() {
188180@ Test // DATACASS-485
189181public void findByReturningFirstValueAsClosedInterfaceProjection () {
190182
191-
192183PersonProjection result = this .template
193184.query (Person .class )
194185.as (PersonProjection .class )
@@ -202,7 +193,6 @@ public void findByReturningFirstValueAsClosedInterfaceProjection() {
202193@ Test // DATACASS-485
203194public void findByReturningFirstValueAsOpenInterfaceProjection () {
204195
205-
206196PersonSpELProjection result = this .template
207197.query (Person .class )
208198.as (PersonSpELProjection .class )
@@ -254,7 +244,6 @@ public void streamAllReturningResultsAsClosedInterfaceProjection() {
254244@ Test // DATACASS-485
255245public void streamAllReturningResultsAsOpenInterfaceProjection () {
256246
257-
258247TerminatingSelect <PersonSpELProjection > operation =
259248this .template .query (Person .class ).as (PersonSpELProjection .class );
260249
@@ -281,7 +270,6 @@ public void firstShouldReturnFirstEntryInCollection() {
281270
282271@ Test // DATACASS-485
283272public void countShouldReturnNrOfElementsInCollectionWhenNoQueryPresent () {
284-
285273assertThat (this .template .query (Person .class ).count ()).isEqualTo (2 );
286274}
287275
@@ -306,7 +294,6 @@ public void existsShouldReturnFalseIfNoElementExistsInCollection() {
306294
307295@ Test // DATACASS-485
308296public void existsShouldReturnTrueIfAtLeastOneElementMatchesQuery () {
309-
310297assertThat (this .template .query (Person .class ).matching (queryLuke ()).exists ()).isTrue ();
311298}
312299
0 commit comments