Re: Data Module - some issues in SE/Maven Tests

2014-09-02 Thread Thomas Hug
Hi John First one should - as Romain mentioned - usually not be a problem. Might still be worth adding the exception check as I've run into problems on WLS with this particular approach. We lose the ability to deal with entities defined in orm.xml's but that's probably still better than crashing

Re: mocking of abstractentityrepository implementations

2014-09-02 Thread John D. Ament
Hi Did you deactivate the RepositoryExtension ? On Tue, Sep 2, 2014 at 4:50 AM, hwaastad he...@waastad.org wrote: Hi, I'm trying to mock out abstract repositories in different project stages. I can extend my repository (in test classes) and use alternative/stereotype, but excluding does

Re: mocking of abstractentityrepository implementations

2014-09-02 Thread Thomas Hug
For this case it's probably also the PartialBeanBindingExtension to deactivate. Is this only intended for testing purposes? On Tue, Sep 2, 2014 at 12:42 PM, John D. Ament john.d.am...@gmail.com wrote: Hi Did you deactivate the RepositoryExtension ? On Tue, Sep 2, 2014 at 4:50 AM,

Re: mocking of abstractentityrepository implementations

2014-09-02 Thread Thomas Hug
Maybe also have a look at https://issues.apache.org/jira/browse/DELTASPIKE-588 On Tue, Sep 2, 2014 at 1:24 PM, Thomas Hug thomas@gmail.com wrote: For this case it's probably also the PartialBeanBindingExtension to deactivate. Is this only intended for testing purposes? On Tue, Sep

Re: mocking of abstractentityrepository implementations

2014-09-02 Thread hwaastad
HI, and thanks for answering. Based on what you mentioned, i made a deactivator an registered it in my properties so the log shows: INFO - class: org.apache.deltaspike.core.impl.scope.DeltaSpikeContextExtension activated=true INFO - class:

Re: mocking of abstractentityrepository implementations

2014-09-02 Thread Romain Manni-Bucau
Hi ejbs are not vetoable btw Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2014-09-02 15:10 GMT+02:00 hwaastad he...@waastad.org: Hi, yes it's for testing only. I'm

[jira] [Updated] (DELTASPIKE-706) Multiple CDI API versions on classpath in JSF module tests (Weld)

2014-09-02 Thread Jozef Hartinger (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jozef Hartinger updated DELTASPIKE-706: --- Description: When running JSF module tests against Weld 2.2, both geronimo CDI

[jira] [Commented] (DELTASPIKE-706) Multiple CDI API versions on classpath in JSF module tests (Weld)

2014-09-02 Thread Jozef Hartinger (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14118247#comment-14118247 ] Jozef Hartinger commented on DELTASPIKE-706: Fix:

[jira] [Commented] (DELTASPIKE-686) WELD-001408: Unsatisfied dependencies error message when injecting type-safe messages @MessageBundle instance

2014-09-02 Thread Rafael Benevides (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-686?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14118335#comment-14118335 ] Rafael Benevides commented on DELTASPIKE-686: - I don't think that there's

[jira] [Created] (DELTASPIKE-707) AbstractMockManager does not support interfaces mocked by mockito

2014-09-02 Thread Falko Modler (JIRA)
Falko Modler created DELTASPIKE-707: --- Summary: AbstractMockManager does not support interfaces mocked by mockito Key: DELTASPIKE-707 URL: https://issues.apache.org/jira/browse/DELTASPIKE-707

[jira] [Updated] (DELTASPIKE-707) AbstractMockManager does not support interfaces mocked by mockito

2014-09-02 Thread Falko Modler (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-707?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Falko Modler updated DELTASPIKE-707: Description: Following the

[jira] [Commented] (DELTASPIKE-707) AbstractMockManager does not support interfaces mocked by mockito

2014-09-02 Thread Romain Manni-Bucau (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14118602#comment-14118602 ] Romain Manni-Bucau commented on DELTASPIKE-707: --- CDI mocking with

[jira] [Resolved] (DELTASPIKE-707) AbstractMockManager does not support interfaces mocked by mockito

2014-09-02 Thread Gerhard Petracek (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-707?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gerhard Petracek resolved DELTASPIKE-707. - Resolution: Not a Problem the documentation never mentions that it's intended

[jira] [Commented] (DELTASPIKE-698) fix glassfish4 profile

2014-09-02 Thread Gerhard Petracek (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14118711#comment-14118711 ] Gerhard Petracek commented on DELTASPIKE-698: - maybe it's a jdk issue,

[jira] [Commented] (DELTASPIKE-698) fix glassfish4 profile

2014-09-02 Thread Gerhard Petracek (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14118729#comment-14118729 ] Gerhard Petracek commented on DELTASPIKE-698: - on jenkins as well as on

Re: mocking of abstractentityrepository implementations

2014-09-02 Thread hwaastad
Hi, always looking out for a better way to build my tests :-) mocking, well sometimes I just need mock for throwing exceptions and anomality. Now, I know arquillian is a powerful framework and I guess you can dynamically assign alternatives/stereotypes aswell by defining this with a

[jira] [Commented] (DELTASPIKE-706) Multiple CDI API versions on classpath in JSF module tests (Weld)

2014-09-02 Thread John D. Ament (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14118988#comment-14118988 ] John D. Ament commented on DELTASPIKE-706: -- Jozef looks like you're a

[jira] [Commented] (DELTASPIKE-706) Multiple CDI API versions on classpath in JSF module tests (Weld)

2014-09-02 Thread Jozef Hartinger (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14119374#comment-14119374 ] Jozef Hartinger commented on DELTASPIKE-706: Yes, I just wanted a

[jira] [Commented] (DELTASPIKE-706) Multiple CDI API versions on classpath in JSF module tests (Weld)

2014-09-02 Thread Christian Kaltepoth (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14119401#comment-14119401 ] Christian Kaltepoth commented on DELTASPIKE-706: Looks good to me. I