@@ -0,0 +1,1350 @@
+package org.springframework.boot.autoconfigure.cassandra;%0A%0Aimport com.datastax.oss.driver.api.core.config.OptionsMap;%0Aimport com.datastax.oss.driver.api.core.config.TypedDriverOption;%0Aimport org.junit.jupiter.api.Test;%0A%0Aimport static org.assertj.core.api.Assertions.assertThat;%0A%0A/**%0A * Tests for %7B@link CassandraProperties%7D.%0A *%0A * @author Chris Bono%0A */%0Aclass CassandraPropertiesTest %7B%0A%0A%09@Test%0A%09void defaultValuesAreConsistent() %7B%0A%09%09CassandraProperties properties = new CassandraProperties();%0A%09%09OptionsMap optionsMap = OptionsMap.driverDefaults();%0A%0A%09%09assertThat(properties.getConnection().getConnectTimeout())%0A%09%09%09%09.isEqualTo(optionsMap.get(TypedDriverOption.CONNECTION_CONNECT_TIMEOUT));%0A%0A%09%09assertThat(properties.getConnection().getInitQueryTimeout())%0A%09%09%09%09.isEqualTo(optionsMap.get(TypedDriverOption.CONNECTION_INIT_QUERY_TIMEOUT));%0A%0A%09%09assertThat(properties.getRequest().getTimeout()).isEqualTo(optionsMap.get(TypedDriverOption.REQUEST_TIMEOUT));%0A%0A%09%09assertThat(properties.getRequest().getPageSize())%0A%09%09%09%09.isEqualTo(optionsMap.get(TypedDriverOption.REQUEST_PAGE_SIZE));%0A%0A%09%09assertThat(properties.getRequest().getThrottler().getType().type())%0A%09%09%09%09.isEqualTo(optionsMap.get(TypedDriverOption.REQUEST_THROTTLER_CLASS));%0A%0A%09%09assertThat(properties.getPool().getHeartbeatInterval())%0A%09%09%09%09.isEqualTo(optionsMap.get(TypedDriverOption.HEARTBEAT_INTERVAL));%0A%09%7D%0A%0A%7D%0A

Validate Cassandra defaults