Class PreparedStatementTest

    • Constructor Detail

      • PreparedStatementTest

        public PreparedStatementTest()
    • 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)