Permalink
Browse files

Adding a test super counter column family to FluentCassandra.Integrat…

…ion.Tests
  • Loading branch information...
1 parent 103bcfa commit b81ccd72c67d016cf01498143c19993716ae15f1 @Aaronontheweb Aaronontheweb committed Jul 29, 2013
Showing with 9 additions and 0 deletions.
  1. +9 −0 test/FluentCassandra.Integration.Tests/CassandraDatabaseSetup.cs
@@ -17,6 +17,7 @@ public class CassandraDatabaseSetup
public CassandraColumnFamily UserFamily;
public CassandraColumnFamily CounterFamily;
+ public CassandraSuperColumnFamily SuperCounterFamily;
public User[] Users = new[] {
new User { Id = 1, Name = "Darren Gemmell", Email = "darren@somewhere.com", Age = 32 },
@@ -54,6 +55,7 @@ public CassandraDatabaseSetup(bool reset = false, string cqlVersion = CqlVersion
SuperFamily = DB.GetColumnFamily<AsciiType, AsciiType>("Super");
UserFamily = DB.GetColumnFamily("Users");
CounterFamily = DB.GetColumnFamily("Counters");
+ SuperCounterFamily = DB.GetSuperColumnFamily("SuperCounters");
if (exists && !reset)
return;
@@ -90,6 +92,13 @@ public void ResetDatabase()
ColumnNameType = CassandraType.AsciiType,
DefaultColumnValueType = CassandraType.CounterColumnType
});
+ keyspace.TryCreateColumnFamily(new CassandraColumnFamilySchema()
+ {
+ FamilyName = "SuperCounters",
+ SuperColumnNameType = CassandraType.AsciiType,
+ ColumnNameType = CassandraType.AsciiType,
+ DefaultColumnValueType = CassandraType.CounterColumnType
+ });
keyspace.TryCreateColumnFamily(new CassandraColumnFamilySchema {
FamilyName = "StandardDecimalType",
ColumnNameType = CassandraType.DecimalType

0 comments on commit b81ccd7

Please sign in to comment.