Source:
<code>public void testVarcharTextAndAsciiLists() { String query = "select * from something"; ImmutableMap<String, ColumnTypes> columnTypes = ImmutableMap.of( "list_type_varchar", ColumnTypes.VarcharList, "list_type_text", ColumnTypes.TextList, "list_type_ascii", ColumnTypes.AsciiList ); <START> ImmutableMap<String, ListType> columnTypesAsNewCqlType = ImmutableMap.of( <END> "list_type_varchar", list(PrimitiveType.VARCHAR), "list_type_text", list(PrimitiveType.TEXT), "list_type_ascii", list(PrimitiveType.ASCII) ); ImmutableMap<String, List<String>> rows = ImmutableMap.of( "list_type_varchar", Arrays.asList("one", "two", "three"), "list_type_text", Arrays.asList("one", "two", "three"), "list_type_ascii", Arrays.asList("one", "two", "three") ); PrimingRequest prime = PrimingRequest.queryBuilder() .withQuery(query) .withColumnTypes(columnTypes) .withRows(rows) .build(); AbstractScassandraTest.primingClient.prime(prime); List<CassandraRow> result = cassandra().executeQuery(query).rows(); assertEquals(result.size(), 1); CassandraRow rowOne = result.get(0); assertEquals(Arrays.asList("one", "two", "three"), rowOne.getList("list_type_varchar", String.class)); assertEquals(Arrays.asList("one", "two", "three"), rowOne.getList("list_type_text", String.class)); assertEquals(Arrays.asList("one", "two", "three"), rowOne.getList("list_type_ascii", String.class)); List<PrimingRequest> primingRequests = AbstractScassandraTest.primingClient.retrieveQueryPrimes(); assertEquals(columnTypesAsNewCqlType, primingRequests.get(0).getThen().getColumnTypes()); assertEquals(Arrays.asList(rows), primingRequests.get(0).getThen().getRows()); }</code><technical_language>yeah type inference for generics in 7</technical_language>

Target:
public void testVarcharTextAndAsciiLists() { String query = "select * from something"; ImmutableMap<String, ColumnTypes> columnTypes = ImmutableMap.of( "list_type_varchar", ColumnTypes.VarcharList, "list_type_text", ColumnTypes.TextList, "list_type_ascii", ColumnTypes.AsciiList ); ImmutableMap<String, CqlType> columnTypesAsNewCqlType = ImmutableMap.of( "list_type_varchar", list(PrimitiveType.VARCHAR), "list_type_text", list(PrimitiveType.TEXT), "list_type_ascii", list(PrimitiveType.ASCII) ); ImmutableMap<String, List<String>> rows = ImmutableMap.of( "list_type_varchar", Arrays.asList("one", "two", "three"), "list_type_text", Arrays.asList("one", "two", "three"), "list_type_ascii", Arrays.asList("one", "two", "three") ); PrimingRequest prime = PrimingRequest.queryBuilder() .withQuery(query) .withColumnTypes(columnTypes) .withRows(rows) .build(); AbstractScassandraTest.primingClient.prime(prime); List<CassandraRow> result = cassandra().executeQuery(query).rows(); assertEquals(result.size(), 1); CassandraRow rowOne = result.get(0); assertEquals(Arrays.asList("one", "two", "three"), rowOne.getList("list_type_varchar", String.class)); assertEquals(Arrays.asList("one", "two", "three"), rowOne.getList("list_type_text", String.class)); assertEquals(Arrays.asList("one", "two", "three"), rowOne.getList("list_type_ascii", String.class)); List<PrimingRequest> primingRequests = AbstractScassandraTest.primingClient.retrieveQueryPrimes(); assertEquals(columnTypesAsNewCqlType, primingRequests.get(0).getThen().getColumnTypes()); assertEquals(Arrays.asList(rows), primingRequests.get(0).getThen().getRows()); }