Package io.stargate.it.cql
Class PreparedStatementTest
- java.lang.Object
-
- io.stargate.it.BaseIntegrationTest
-
- io.stargate.it.cql.PreparedStatementTest
-
- Direct Known Subclasses:
PreparedStatementTest.WithV4ProtocolVersionTest
,PreparedStatementTest.WithV5ProtocolVersionTest
@ExtendWith(CqlSessionExtension.class) public abstract class PreparedStatementTest extends BaseIntegrationTest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PreparedStatementTest.WithV4ProtocolVersionTest
static class
PreparedStatementTest.WithV5ProtocolVersionTest
-
Field Summary
-
Fields inherited from class io.stargate.it.BaseIntegrationTest
backend
-
-
Constructor Summary
Constructors Constructor Description PreparedStatementTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
conditionalUpdateTest(com.datastax.oss.driver.api.core.CqlSession session)
void
createSchema(com.datastax.oss.driver.api.core.CqlSession session)
void
failedReprepareTest(com.datastax.oss.driver.api.core.CqlSession session)
void
insertWithoutVariablesTest(com.datastax.oss.driver.api.core.CqlSession session)
void
insertWithVariablesTest(com.datastax.oss.driver.api.core.CqlSession session, com.datastax.oss.driver.api.core.CqlIdentifier keyspaceId)
void
noExtraValuesTest(com.datastax.oss.driver.api.core.CqlSession session)
void
selectWithoutVariablesTest(com.datastax.oss.driver.api.core.CqlSession session, com.datastax.oss.driver.api.core.CqlIdentifier keyspaceId)
void
selectWithVariablesTest(com.datastax.oss.driver.api.core.CqlSession session, com.datastax.oss.driver.api.core.CqlIdentifier keyspaceId)
-
Methods inherited from class io.stargate.it.BaseIntegrationTest
backendSupportsSAI, init, isCassandra4, isCassandra41, now, withProtocolV4, withProtocolV5
-
-
-
-
Method Detail
-
createSchema
@BeforeEach public void createSchema(com.datastax.oss.driver.api.core.CqlSession session)
-
insertWithoutVariablesTest
@Test @DisplayName("Should get expected metadata when preparing INSERT with no variables") public void insertWithoutVariablesTest(com.datastax.oss.driver.api.core.CqlSession session)
-
insertWithVariablesTest
@Test @DisplayName("Should get expected metadata when preparing INSERT with variables") public void insertWithVariablesTest(com.datastax.oss.driver.api.core.CqlSession session, com.datastax.oss.driver.api.core.CqlIdentifier keyspaceId)
-
selectWithoutVariablesTest
@Test @DisplayName("Should get expected metadata when preparing SELECT without variables") public void selectWithoutVariablesTest(com.datastax.oss.driver.api.core.CqlSession session, com.datastax.oss.driver.api.core.CqlIdentifier keyspaceId)
-
selectWithVariablesTest
@Test @DisplayName("Should get expected metadata when preparing SELECT with variables") public void selectWithVariablesTest(com.datastax.oss.driver.api.core.CqlSession session, com.datastax.oss.driver.api.core.CqlIdentifier keyspaceId)
-
failedReprepareTest
@Test @DisplayName("Should fail to reprepare if the query becomes invalid after a schema change") public void failedReprepareTest(com.datastax.oss.driver.api.core.CqlSession session)
-
conditionalUpdateTest
@Test @DisplayName("Should not store metadata for conditional updates") public void conditionalUpdateTest(com.datastax.oss.driver.api.core.CqlSession session)
-
noExtraValuesTest
@Test @DisplayName("Should return just one selected column, not more") public void noExtraValuesTest(com.datastax.oss.driver.api.core.CqlSession session)
-
-