Package org.ff4j.audit

Examples of org.ff4j.audit.InMemoryEventRepository


    @Test
    public void testAuditWithLimit() throws InterruptedException {
        int nb = 500;
        int limit = 25;
        EventPublisher pub = new EventPublisher();
        pub.setRepository(new InMemoryEventRepository(limit));
        for (int i = 0; i < nb; i++) {
            pub.publish(new Event("aer", EventType.HIT_FLIPPED));
            Thread.sleep(2);
        }
        Assert.assertEquals(limit, pub.getRepository().getTotalEventCount());
View Full Code Here

TOP

Related Classes of org.ff4j.audit.InMemoryEventRepository

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.