Package org.apache.hivemind

Examples of org.apache.hivemind.Registry.shutdown()


        assertEquals("ParseApp", ag.getSpecification().getName());

        verify();
       
        registry.shutdown();
    }
}
View Full Code Here


        connection.setDoOutput(true);
        connection.connect();
        InputStream inputStream = connection.getInputStream();
        assertTrue(inputStream.read() != 0);

        registry.shutdown();
    }

    public void testJsr160Connector() throws Exception
    {
        Registry registry = buildFrameworkRegistry("testConnectors.xml");
View Full Code Here

        verifyControls();

        assertTrue("start method has not been called", ((MBeanTestService) mBean1).isStartCalled());

        registry.shutdown();
    }

    /**
     * Tests the handling of a not compliant mbean
     */
 
View Full Code Here

        List l = r.getConfiguration("hivemind.test.config.Simple");

        assertEquals(2, l.size());

        r.shutdown();

        try
        {
            l.size();
        }
View Full Code Here

                "hivemind.test.services.Simple",
                SimpleService.class);

        assertEquals(11, s.add(4, 7));

        r.shutdown();

        try
        {
            s.add(9, 5);
            unreachable();
View Full Code Here

    public void testRegistryShutdownUnrepeatable() throws Exception
    {
        Registry r = buildFrameworkRegistry("SimpleModule.xml");

        r.shutdown();

        try
        {
            r.getConfiguration("foo.bar");
            unreachable();
View Full Code Here

            assertExceptionSubstring(ex, "The HiveMind Registry has been shutdown.");
        }

        try
        {
            r.shutdown();
            unreachable();
        }
        catch (ApplicationRuntimeException ex)
        {
            assertExceptionSubstring(ex, "The HiveMind Registry has been shutdown.");
View Full Code Here

        h.setValue("fred");

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

        r.shutdown();

        try
        {
            h.getValue();
            unreachable();
View Full Code Here

        s.run();

        assertLoggedMessage("run -- Singleton");

        r.shutdown();

        assertLoggedMessage("registryDidShutdown -- Singleton");
    }

    public void testPrimitiveCore() throws Exception
View Full Code Here

        s.run();

        assertLoggedMessage("run -- Primitive");

        r.shutdown();

        assertLoggedMessage("registryDidShutdown -- Primitive");
    }

}
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.