You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "Mark Struberg (JIRA)" <ji...@apache.org> on 2009/01/08 00:08:46 UTC

[jira] Created: (OWB-33) bug in EJBInterceptComponentTest#testMultipleInterceptedComponent

bug in EJBInterceptComponentTest#testMultipleInterceptedComponent
-----------------------------------------------------------------

                 Key: OWB-33
                 URL: https://issues.apache.org/jira/browse/OWB-33
             Project: OpenWebBeans
          Issue Type: Bug
          Components: Interceptor and Decorators
            Reporter: Mark Struberg
            Assignee: Gurkan Erdogdu


The test for EJBInterceptComponentTest#testMultipleInterceptedComponent contains an error. 

Since the context.getContextData() is a HashMap internally, the order of "key" and "key2" is finally undefined.

This make the checks
Assert.assertEquals("key", arr[0]);
Assert.assertEquals("key2", arr[1]);
to fail sporadically.

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


[jira] Closed: (OWB-33) bug in EJBInterceptComponentTest#testMultipleInterceptedComponent

Posted by "Gurkan Erdogdu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OWB-33?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gurkan Erdogdu closed OWB-33.
-----------------------------

       Resolution: Fixed
    Fix Version/s: M1

> bug in EJBInterceptComponentTest#testMultipleInterceptedComponent
> -----------------------------------------------------------------
>
>                 Key: OWB-33
>                 URL: https://issues.apache.org/jira/browse/OWB-33
>             Project: OpenWebBeans
>          Issue Type: Bug
>          Components: Interceptor and Decorators
>            Reporter: Mark Struberg
>            Assignee: Gurkan Erdogdu
>             Fix For: M1
>
>         Attachments: OWB-33-2.patch, OWB-33.patch
>
>
> The test for EJBInterceptComponentTest#testMultipleInterceptedComponent contains an error. 
> Since the context.getContextData() is a HashMap internally, the order of "key" and "key2" is finally undefined.
> This make the checks
> Assert.assertEquals("key", arr[0]);
> Assert.assertEquals("key2", arr[1]);
> to fail sporadically.

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


[jira] Updated: (OWB-33) bug in EJBInterceptComponentTest#testMultipleInterceptedComponent

Posted by "Mark Struberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OWB-33?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Struberg updated OWB-33:
-----------------------------

    Attachment: OWB-33-2.patch

and easily fixed another test in the same suite the same way.

This patch is cumulative ie contains the first one.

> bug in EJBInterceptComponentTest#testMultipleInterceptedComponent
> -----------------------------------------------------------------
>
>                 Key: OWB-33
>                 URL: https://issues.apache.org/jira/browse/OWB-33
>             Project: OpenWebBeans
>          Issue Type: Bug
>          Components: Interceptor and Decorators
>            Reporter: Mark Struberg
>            Assignee: Gurkan Erdogdu
>         Attachments: OWB-33-2.patch, OWB-33.patch
>
>
> The test for EJBInterceptComponentTest#testMultipleInterceptedComponent contains an error. 
> Since the context.getContextData() is a HashMap internally, the order of "key" and "key2" is finally undefined.
> This make the checks
> Assert.assertEquals("key", arr[0]);
> Assert.assertEquals("key2", arr[1]);
> to fail sporadically.

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


[jira] Updated: (OWB-33) bug in EJBInterceptComponentTest#testMultipleInterceptedComponent

Posted by "Mark Struberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OWB-33?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Struberg updated OWB-33:
-----------------------------

    Attachment: OWB-33.patch

> bug in EJBInterceptComponentTest#testMultipleInterceptedComponent
> -----------------------------------------------------------------
>
>                 Key: OWB-33
>                 URL: https://issues.apache.org/jira/browse/OWB-33
>             Project: OpenWebBeans
>          Issue Type: Bug
>          Components: Interceptor and Decorators
>            Reporter: Mark Struberg
>            Assignee: Gurkan Erdogdu
>         Attachments: OWB-33.patch
>
>
> The test for EJBInterceptComponentTest#testMultipleInterceptedComponent contains an error. 
> Since the context.getContextData() is a HashMap internally, the order of "key" and "key2" is finally undefined.
> This make the checks
> Assert.assertEquals("key", arr[0]);
> Assert.assertEquals("key2", arr[1]);
> to fail sporadically.

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