Re: CDI testing module

2016-08-04 Thread John D. Ament
So I'm running into an interesting issue.  I'm not sure if I found a bug,
or if I've gone way far into the deep end here.

I'm getting this exception: https://paste.apache.org/8WEp

You can see my changes here:
https://github.com/johnament/cxf/tree/arquillian

I suspect what's happening is that CXF is being initialized twice.  Now
that I've enabled CDI, the static initialization and the CDI initialization
are both being triggered.  Not sure if you have any ideas.

John

On Tue, Aug 2, 2016 at 9:46 PM John D. Ament  wrote:

> Hi Andriy,
>
> Thanks for the prompt reply.
>
> On Tue, Aug 2, 2016 at 9:28 PM Andriy Redko  wrote:
>
>> Hi John,
>>
>> Thanks a lot for your fixes, much appreciated and of great value for CDI
>> users. To answer a couple of your questions / concerns.
>>
>>
>>
>> *JDA> First, its assuming that Weld is the only testable container. *This
>> is very true. The reason for that is Weld was the only one implementing
>> CDI 1.2 at the moment the CXF/CDI integration was done. OpenWebBeans were
>> behind but there is no obstacles or objects to have a test suite(s)
>> against
>> it as well, it's been a while OpenWebBeans implements 1.2.
>>
>
> I just realized that the CDI integration has been around for all of the
> 3.x line.  I only found out about it in the last couple of weeks.
>
> With that said, I'd like to try to put together a test suite.  I'll send
> it over when ready.  If you guys like it, its yours.
>
> I created https://issues.apache.org/jira/browse/CXF-6988
>
>
>>
>>
>>
>> *JDA> Second, its always doing classpath scanning.   *This is also true,
>> as there was an intention to test exactly the way it is
>> going to be used. The suite also tests against Tomcat and Jetty, embedded
>> and
>> WAR based deployments. With that being said, if Arquillian allows to
>> simplify
>> the test structure while opening more opportuties to test different
>> scenarios
>> (including the ones we already have), it would be great in my opinion.
>>
>
> Sounds good.  Some of the things I'd like to make sure are proved out:
>
> - Testing both Weld and OWB
> - Running different parts of the test per deployment.
> - Ensuring the various tests with Jetty/Jetty Embedded/Tomcat
>
>
>>
>> Thanks.
>>
>> Best Regards,
>> Andriy Redko
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> *JDA> Hi, JDA> Long time user, first time contributor to CXF.  Though I'm
>> no stranger to JDA> the ASF by any long shot. JDA> I was looking at putting
>> in some fixes for issues I reported.  First one JDA> was a non-problem.
>> However, when trying to figure out how to add tests to JDA> ensure that
>> empty application class applications work fine (CXF-6986), I JDA> realized
>> that the current testing structure in systest wouldn't work. *JDA>
>> https://github.com/apache/cxf/blob/master/systests/cdi/src/test/java/org/apache/cxf/systest/jaxrs/cdi/AbstractCDITest.java
>> 
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> *JDA> It looks like this test code is doing a few odd things.  First, its
>> JDA> assuming that Weld is the only testable container.  The ASF actually
>> hosts JDA> the other CDI impl, OpenWebBeans.  Second, its always doing
>> classpath JDA> scanning.  This strategy would mean I need a separate module
>> to test my JDA> feature, which is a little odd. JDA> I was wondering if
>> there was any interest in converting this to an JDA> arquillian based
>> test?  The test code could be platform inspecific, JDA> allowing tests to
>> be created for both CDI impls, improving compatibility. JDA> WDYT? JDA> in
>> case it helps understand the problem, my proposed changes can be seen JDA>
>> here: *https://github.com/apache/cxf/pull/150
>>
>>
>>
>> *JDA> - John *
>>
>


[GitHub] cxf issue #149: [CXF-6987] Also consider the classes defined on an applicati...

2016-08-04 Thread johnament
Github user johnament commented on the issue:

https://github.com/apache/cxf/pull/149
  
Oh, you merged it! Heh, thanks.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] cxf pull request #153: [CXF-6987] Also consider the classes defined on an ap...

2016-08-04 Thread johnament
Github user johnament closed the pull request at:

https://github.com/apache/cxf/pull/153


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] cxf pull request #153: [CXF-6987] Also consider the classes defined on an ap...

2016-08-04 Thread johnament
GitHub user johnament opened a pull request:

https://github.com/apache/cxf/pull/153

[CXF-6987] Also consider the classes defined on an application when s…

…ingletons are populated.

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/johnament/cxf CXF-6987

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/cxf/pull/153.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #153


commit a97a7ff004669cf8d4f8264111861a73765631e0
Author: John D. Ament 
Date:   2016-08-02T23:49:29Z

[CXF-6987] Also consider the classes defined on an application when 
singletons are populated.




---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] cxf issue #149: [CXF-6987] Also consider the classes defined on an applicati...

2016-08-04 Thread johnament
Github user johnament commented on the issue:

https://github.com/apache/cxf/pull/149
  
I'm going to close and create a new PR to see if that will force jenkins to 
rebuild.  Would it be OK if I modified the job to have a longer history?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] cxf pull request #149: [CXF-6987] Also consider the classes defined on an ap...

2016-08-04 Thread johnament
Github user johnament closed the pull request at:

https://github.com/apache/cxf/pull/149


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] cxf issue #149: [CXF-6987] Also consider the classes defined on an applicati...

2016-08-04 Thread johnament
Github user johnament commented on the issue:

https://github.com/apache/cxf/pull/149
  
Jenkins retest this please


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] cxf issue #151: [CXF-6989] Use Commons StrTokenizer to handle filenames with...

2016-08-04 Thread osbornk
Github user osbornk commented on the issue:

https://github.com/apache/cxf/pull/151
  
Unfortunately, dealing with possibly quoted text is not entirely trivial. 
That is why I brought in StrTokenizer.  It handles this case really well. There 
is a decent amount of code involved in tokenization. So, that is why I had to 
introduce this dependency.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] cxf pull request #152: [CXF-6994] Skip RMCaptureInInterceptor processing for...

2016-08-04 Thread asoldano
GitHub user asoldano opened a pull request:

https://github.com/apache/cxf/pull/152

[CXF-6994] Skip RMCaptureInInterceptor processing for GET requests



You can merge this pull request into a Git repository by running:

$ git pull https://github.com/asoldano/cxf CXF-6994

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/cxf/pull/152.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #152


commit 57d9d556066372fef3cde1589acb570e543b78df
Author: Alessio Soldano 
Date:   2016-08-04T16:31:05Z

[CXF-6994] Skip RMCaptureInInterceptor processing for GET requests




---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] cxf issue #151: [CXF-6989] Use Commons StrTokenizer to handle filenames with...

2016-08-04 Thread sberyozkin
Github user sberyozkin commented on the issue:

https://github.com/apache/cxf/pull/151
  
Thanks for the patch. Would it be possible to avoid bringing in a new 
dependency only to make it easier to deal with this case ?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---