Examples of fireThreadCleanup()


Examples of org.apache.hivemind.service.ThreadEventNotifier.fireThreadCleanup()

        h.setValue("fred");

        assertEquals("fred", h.getValue());

        n.fireThreadCleanup();

        assertNull(h.getValue());

        assertEquals(
            "<ThreadedProxy for hivemind.test.services.StringHolder(hivemind.test.services.StringHolder)>",
View Full Code Here

Examples of org.apache.hivemind.service.ThreadEventNotifier.fireThreadCleanup()

                "hivemind.ThreadEventNotifier",
                ThreadEventNotifier.class);

        interceptLogging("hivemind.test.services");

        n.fireThreadCleanup();

        assertLoggedMessage("threadDidDiscardService() has been invoked.");
    }
}
View Full Code Here

Examples of org.apache.hivemind.service.ThreadEventNotifier.fireThreadCleanup()

        ThreadEventNotifier n =
            (ThreadEventNotifier) r.getService(
                HiveMind.THREAD_EVENT_NOTIFIER_SERVICE,
                ThreadEventNotifier.class);

        n.fireThreadCleanup();

        assertEquals("funky monkey", s.getValue());
    }
}
View Full Code Here

Examples of org.apache.hivemind.service.ThreadEventNotifier.fireThreadCleanup()

        h.setValue("fred");

        assertEquals("fred", h.getValue());

        n.fireThreadCleanup();

        assertNull(h.getValue());

        assertEquals(
                "<OuterProxy for hivemind.test.services.StringHolder(hivemind.test.services.StringHolder)>",
View Full Code Here

Examples of org.apache.hivemind.service.ThreadEventNotifier.fireThreadCleanup()

                "hivemind.ThreadEventNotifier",
                ThreadEventNotifier.class);

        interceptLogging("hivemind.test.services");

        n.fireThreadCleanup();

        assertLoggedMessage("threadDidDiscardService() has been invoked.");
    }
}
View Full Code Here

Examples of org.apache.hivemind.service.ThreadEventNotifier.fireThreadCleanup()

        s.put("biff", "bamf");

        assertEquals("bamf", s.get("biff"));

        notifier.fireThreadCleanup();

        assertNull(s.get("biff"));
    }

    private class TestRunner implements Runnable
View Full Code Here

Examples of org.apache.hivemind.service.ThreadEventNotifier.fireThreadCleanup()

        if (_testRunnerFailure != null)
            throw _testRunnerFailure;

        assertEquals(local.get("session"), "Main Session");

        notifier.fireThreadCleanup();

        assertNull(local.get("session"));
    }
}
View Full Code Here

Examples of org.apache.hivemind.service.ThreadEventNotifier.fireThreadCleanup()

    {
        ThreadEventNotifier n = new ThreadEventNotifierImpl();
        Listener l = new Listener();

        n.addThreadCleanupListener(l);
        n.fireThreadCleanup();

        assertEquals(true, l._cleanup);
    }

    public void testRemove()
View Full Code Here

Examples of org.apache.hivemind.service.ThreadEventNotifier.fireThreadCleanup()

        n.addThreadCleanupListener(l1);
        n.addThreadCleanupListener(l2);
        n.removeThreadCleanupListener(l1);

        n.fireThreadCleanup();

        assertEquals(false, l1._cleanup);
        assertEquals(true, l2._cleanup);
    }
View Full Code Here

Examples of org.apache.hivemind.service.ThreadEventNotifier.fireThreadCleanup()

        n.addThreadCleanupListener(l1);
        n.addThreadCleanupListener(l2);
        n.addThreadCleanupListener(l3);

        n.fireThreadCleanup();

        assertEquals(true, l1._cleanup);
        assertEquals(true, l2._cleanup);
        assertEquals(true, l3._cleanup);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.