Search in sources :

Example 1 with Digest

use of org.onosproject.store.atomix.primitives.impl.MapValue.Digest in project onos by opennetworkinglab.

the class MapValueTest method testDigest.

@Test
public void testDigest() {
    Timestamp ts = new LogicalTimestamp(10);
    MapValue<String> mv = new MapValue<>("foo", ts);
    Digest actual = mv.digest();
    Digest expected = new MapValue.Digest(ts, false);
    assertEquals(actual, expected);
}
Also used : LogicalTimestamp(org.onosproject.store.LogicalTimestamp) Digest(org.onosproject.store.atomix.primitives.impl.MapValue.Digest) Timestamp(org.onosproject.store.Timestamp) LogicalTimestamp(org.onosproject.store.LogicalTimestamp) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 LogicalTimestamp (org.onosproject.store.LogicalTimestamp)1 Timestamp (org.onosproject.store.Timestamp)1 Digest (org.onosproject.store.atomix.primitives.impl.MapValue.Digest)1