DATACASS-800 - Upgrade to Cassandra driver 4.9.0.

This commit is contained in:
Mark Paluch
2020-09-09 13:49:43 +02:00
parent 48db9f9e38
commit 6a7e6378c3

View File

@@ -96,6 +96,8 @@ class PartTreeCassandraQueryUnitTests {
when(userTypeMock.getAttachmentPoint()).thenReturn(attachmentPoint);
when(userTypeMock.getFieldNames())
.thenReturn(Arrays.asList("city", "country").stream().map(CqlIdentifier::fromCql).collect(Collectors.toList()));
when(userTypeMock.allIndicesOf("city")).thenReturn(Collections.singletonList(0));
when(userTypeMock.allIndicesOf("country")).thenReturn(Collections.singletonList(1));
when(userTypeMock.getFieldTypes()).thenReturn(Arrays.asList(DataTypes.TEXT, DataTypes.TEXT));
udtValue = new DefaultUdtValue(userTypeMock);