Package org.apache.tapestry.ioc

Examples of org.apache.tapestry.ioc.Registry.shutdown()


        assertTrue(StartupModule._startupInvoked);

        // Ideally we'd have a way to show that the PerthreadManager was notified after
        // RegistryStartup did its thing, but ...

        r.shutdown();
    }
}
View Full Code Here


        pa.set(b, "value", value);

        assertEquals(b.getValue(), value);

        registry.shutdown();
    }

    @Test
    public void super_interface_methods_inherited_by_sub_interface()
    {
View Full Code Here

        assertTrue(StartupModule._startupInvoked);

        // Ideally we'd have a way to show that the ThreadCleanupHub was notified after
        // RegistryStartup did its thing, but ...

        r.shutdown();
    }
}
View Full Code Here

        pa.set(b, "value", value);

        assertEquals(b.getValue(), value);

        registry.shutdown();
    }

    @Test
    public void super_interface_methods_inherited_by_sub_interface()
    {
View Full Code Here

        ToStringService ts = registry.getService(ToStringService.class);

        assertEquals(ts.toString(), "<ToStringService: ToString>");

        registry.shutdown();
    }

    @Test
    public void recursive_singleton_integration_test()
    {
View Full Code Here

        catch (RuntimeException ex)
        {
            // The details are checked elsewhere.
        }

        registry.shutdown();
    }

}
View Full Code Here

        TypeCoercer proxy2 = deserialize(TypeCoercer.class, serialized);

        assertSame(proxy2, proxy, "De-serialized proxy is same object if Registry unchanged.");

        r.shutdown();

        r = buildRegistry();

        TypeCoercer proxy3 = deserialize(TypeCoercer.class, serialized);
View Full Code Here

        TypeCoercer proxy3 = deserialize(TypeCoercer.class, serialized);

        assertNotNull(proxy3);
        assertNotSame(proxy3, proxy, "New proxy should be different, as it is from a different Registry.");

        r.shutdown();
    }

    @Test
    public void deserialize_with_no_registry() throws Exception
    {
View Full Code Here

        TypeCoercer proxy = r.getService(TypeCoercer.class);

        byte[] serialized = serialize(proxy);

        r.shutdown();

        try
        {
            deserialize(TypeCoercer.class, serialized);
            unreachable();
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.