Search in sources :

Example 6 with TestLocation

use of com.zimbra.cs.ephemeral.EphemeralStoreTest.TestLocation in project zm-mailbox by Zimbra.

the class LdapEphemeralStoreTest method testSet.

@Test
public void testSet() throws Exception {
    EphemeralKey key = new EphemeralKey("foo");
    store.set(new EphemeralInput(new EphemeralKey("foo"), "bar"), new TestLocation());
    Map<String, Object> expected = makeMap("foo", "bar");
    verifyAttrMap(expected);
}
Also used : TestLocation(com.zimbra.cs.ephemeral.EphemeralStoreTest.TestLocation) Test(org.junit.Test)

Aggregations

TestLocation (com.zimbra.cs.ephemeral.EphemeralStoreTest.TestLocation)6 Test (org.junit.Test)5 AbsoluteExpiration (com.zimbra.cs.ephemeral.EphemeralInput.AbsoluteExpiration)3