Package org.apache.tapestry.ioc.services

Examples of org.apache.tapestry.ioc.services.ThreadCleanupListener


    @Test
    public void listeners_are_one_shot()
    {
        Log log = mockLog();
        ThreadCleanupListener listener = mockThreadCleanupListener();

        listener.threadDidCleanup();

        replay();

        ThreadCleanupHubImpl hub = new ThreadCleanupHubImpl(log);
View Full Code Here


    {
        final RuntimeException t = new RuntimeException("Boom!");

        Log log = mockLog();

        ThreadCleanupListener listener = new ThreadCleanupListener()
        {

            public void threadDidCleanup()
            {
                throw t;
View Full Code Here

    @Test
    public void listeners_are_one_shot()
    {
        Logger logger = mockLogger();
        ThreadCleanupListener listener = mockThreadCleanupListener();

        listener.threadDidCleanup();

        replay();

        PerthreadManagerImpl hub = new PerthreadManagerImpl(logger);
View Full Code Here

    {
        final RuntimeException t = new RuntimeException("Boom!");

        Logger logger = mockLogger();

        ThreadCleanupListener listener = new ThreadCleanupListener()
        {

            public void threadDidCleanup()
            {
                throw t;
View Full Code Here

    @Test
    public void listeners_are_one_shot()
    {
        Logger logger = mockLogger();
        ThreadCleanupListener listener = mockThreadCleanupListener();

        listener.threadDidCleanup();

        replay();

        ThreadCleanupHubImpl hub = new ThreadCleanupHubImpl(logger);
View Full Code Here

    {
        final RuntimeException t = new RuntimeException("Boom!");

        Logger logger = mockLogger();

        ThreadCleanupListener listener = new ThreadCleanupListener()
        {

            public void threadDidCleanup()
            {
                throw t;
View Full Code Here

    @Test
    public void listeners_are_one_shot()
    {
        Log log = newLog();
        ThreadCleanupListener listener = newThreadCleanupListener();

        listener.threadDidCleanup();

        replay();

        ThreadCleanupHubImpl hub = new ThreadCleanupHubImpl(log);
View Full Code Here

    {
        final RuntimeException t = new RuntimeException("Boom!");

        Log log = newLog();

        ThreadCleanupListener listener = new ThreadCleanupListener()
        {

            public void threadDidCleanup()
            {
                throw t;
View Full Code Here

TOP

Related Classes of org.apache.tapestry.ioc.services.ThreadCleanupListener

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.