use of org.scale7.cassandra.pelops.pool.IThriftPool in project scale7-pelops by s7.
the class MutatorIntegrationTest method testNewColumnWithTTLDefaultFromMemberVariable.
@Test
public void testNewColumnWithTTLDefaultFromMemberVariable() {
IThriftPool pool = Mockito.mock(IThriftPool.class);
Mutator mutator = new Mutator(pool, Long.MAX_VALUE, true, Integer.MAX_VALUE);
Column column = mutator.newColumn(Bytes.fromUTF8("a"), Bytes.fromUTF8("b"));
assertEquals("column name is not in the expected state", Bytes.fromUTF8("a").getBytes(), column.name);
assertEquals("column value is not in the expected state", Bytes.fromUTF8("b").getBytes(), column.value);
assertEquals("column TTL is not in the expected state", Integer.MAX_VALUE, column.ttl);
}
Aggregations