You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Bruno Borges (JIRA)" <ji...@apache.org> on 2010/09/16 18:18:41 UTC

[jira] Created: (CAMEL-3129) Support user-defined shutdown timeout for CamelTestSupport

Support user-defined shutdown timeout for CamelTestSupport
----------------------------------------------------------

                 Key: CAMEL-3129
                 URL: https://issues.apache.org/activemq/browse/CAMEL-3129
             Project: Apache Camel
          Issue Type: Improvement
          Components: camel-core
    Affects Versions: 2.4.0
            Reporter: Bruno Borges


Would be nice if CamelTestSupport could allow user to define the Shutdown timeout of CamelContext.

We at Neociclo are finding difficult to debug through JUnit tests because of the hard-coded 10s timeout.

public void setUp() ... {
        ...
        context = createCamelContext();
        assertValidContext(context);

        // reduce default shutdown timeout to avoid waiting for 300 seconds
--    context.getShutdownStrategy().setTimeout(10);
++  context.getShutdownStrategy().setTimeout(getShutdownTimeout());
        ...
}

+ protected int getShutdownTimeout() {
+        return 10;
+ }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (CAMEL-3129) Support user-defined shutdown timeout for CamelTestSupport

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-3129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen reassigned CAMEL-3129:
----------------------------------

    Assignee: Claus Ibsen

> Support user-defined shutdown timeout for CamelTestSupport
> ----------------------------------------------------------
>
>                 Key: CAMEL-3129
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3129
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.4.0
>            Reporter: Bruno Borges
>            Assignee: Claus Ibsen
>
> Would be nice if CamelTestSupport could allow user to define the Shutdown timeout of CamelContext.
> We at Neociclo are finding difficult to debug through JUnit tests because of the hard-coded 10s timeout.
> public void setUp() ... {
>         ...
>         context = createCamelContext();
>         assertValidContext(context);
>         // reduce default shutdown timeout to avoid waiting for 300 seconds
> --    context.getShutdownStrategy().setTimeout(10);
> ++  context.getShutdownStrategy().setTimeout(getShutdownTimeout());
>         ...
> }
> + protected int getShutdownTimeout() {
> +        return 10;
> + }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CAMEL-3129) Support user-defined shutdown timeout for CamelTestSupport

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-3129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-3129.
--------------------------------

    Fix Version/s: 2.5.0
       Resolution: Fixed

trunk: 997858.

> Support user-defined shutdown timeout for CamelTestSupport
> ----------------------------------------------------------
>
>                 Key: CAMEL-3129
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3129
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.4.0
>            Reporter: Bruno Borges
>            Assignee: Claus Ibsen
>             Fix For: 2.5.0
>
>
> Would be nice if CamelTestSupport could allow user to define the Shutdown timeout of CamelContext.
> We at Neociclo are finding difficult to debug through JUnit tests because of the hard-coded 10s timeout.
> public void setUp() ... {
>         ...
>         context = createCamelContext();
>         assertValidContext(context);
>         // reduce default shutdown timeout to avoid waiting for 300 seconds
> --    context.getShutdownStrategy().setTimeout(10);
> ++  context.getShutdownStrategy().setTimeout(getShutdownTimeout());
>         ...
> }
> + protected int getShutdownTimeout() {
> +        return 10;
> + }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.