DATACASS-563 - Run time column type tests conditionally.
Run time column type tests only on Cassandra 3.10 and higher as earlier Cassandra versions do not support integer for updating/setting time columns.
This commit is contained in:
@@ -535,9 +535,11 @@ public class CassandraTypeMappingIntegrationTests extends AbstractKeyspaceCreati
|
||||
assertThat(loaded.getLocalDateTime()).isEqualTo(entity.getLocalDateTime());
|
||||
}
|
||||
|
||||
@Test // DATACASS-296
|
||||
@Test // DATACASS-296, DATACASS-563
|
||||
public void shouldReadAndWriteLocalTime() {
|
||||
|
||||
assumeTrue(cassandraVersion.isGreaterThanOrEqualTo(VERSION_3_10));
|
||||
|
||||
AllPossibleTypes entity = new AllPossibleTypes("1");
|
||||
|
||||
entity.setLocalTime(java.time.LocalTime.of(1, 2, 3));
|
||||
@@ -549,9 +551,11 @@ public class CassandraTypeMappingIntegrationTests extends AbstractKeyspaceCreati
|
||||
assertThat(loaded.getLocalTime()).isEqualTo(entity.getLocalTime());
|
||||
}
|
||||
|
||||
@Test // DATACASS-296
|
||||
@Test // DATACASS-296, DATACASS-563
|
||||
public void shouldReadAndWriteJodaLocalTime() {
|
||||
|
||||
assumeTrue(cassandraVersion.isGreaterThanOrEqualTo(VERSION_3_10));
|
||||
|
||||
AllPossibleTypes entity = new AllPossibleTypes("1");
|
||||
|
||||
entity.setJodaLocalTime(org.joda.time.LocalTime.fromMillisOfDay(50000));
|
||||
@@ -647,9 +651,11 @@ public class CassandraTypeMappingIntegrationTests extends AbstractKeyspaceCreati
|
||||
assertThat(loaded.getBpLocalDateTime()).isEqualTo(entity.getBpLocalDateTime());
|
||||
}
|
||||
|
||||
@Test // DATACASS-296
|
||||
@Test // DATACASS-296, DATACASS-563
|
||||
public void shouldReadAndWriteBpLocalTime() {
|
||||
|
||||
assumeTrue(cassandraVersion.isGreaterThanOrEqualTo(VERSION_3_10));
|
||||
|
||||
AllPossibleTypes entity = new AllPossibleTypes("1");
|
||||
|
||||
entity.setBpLocalTime(org.threeten.bp.LocalTime.of(1, 2, 3));
|
||||
|
||||
Reference in New Issue
Block a user