Package com.proofpoint.platform.sample.PersonStore

Examples of com.proofpoint.platform.sample.PersonStore.StoreEntry


        store.put("bar", createPerson("bar@example.com", "Mr Bar"));

        Collection<StoreEntry> entries = store.getAll();
        assertEquals(entries.size(), 2);

        StoreEntry fooEntry = Iterables.find(entries, new Predicate<StoreEntry>()
        {
            @Override
            public boolean apply(StoreEntry input)
            {
                return input.getId().equals("foo");
            }
        });
        assertEquals(fooEntry.getPerson(), createPerson("foo@example.com", "Mr Foo"));

        StoreEntry barEntry = Iterables.find(entries, new Predicate<StoreEntry>()
        {
            @Override
            public boolean apply(StoreEntry input)
            {
                return input.getId().equals("bar");
            }
        });
        assertEquals(barEntry.getPerson(), createPerson("bar@example.com", "Mr Bar"));
    }
View Full Code Here

TOP

Related Classes of com.proofpoint.platform.sample.PersonStore.StoreEntry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.