Git Product home page Git Product logo

Comments (9)

BrynCooke avatar BrynCooke commented on July 2, 2024

Hi.

Would you mind sending me a zip of the project? ([email protected]) From SO it look like there isn't anything sensitive in it yet. It would enable me to take a quick look and see what's going on.

Maven support for web apps testing was actually not straight forward so it's possible you've found a bug.

The other thing to do is to try the 2.0.9-SNAPSHOT. Details can be found here: https://groups.google.com/forum/?fromgroups#!topic/cdi-unit/52qn0gAfe8E

from cdi-unit.

BrynCooke avatar BrynCooke commented on July 2, 2024

Tried to recreate your project from SO. Didn't manage it fully, but it did make seem to be making it past the wicket configure step without problems.

Going to have to wait for an example project that I can test with.

from cdi-unit.

tejl avatar tejl commented on July 2, 2024

Hi Bryn

Thank you very much for spending the time. I hope you can wait a bit. I've
put the Wicket test setup aside for a bit and is now focusing on other
parts. As I am working hard on 2 projekts of which the other is to be
finished on monday, I'll have to continue work on the Wicket/JGlue test
setup some time end of next week.

Best regards,
Jesper

On Mon, May 27, 2013 at 11:07 PM, Bryn Cooke [email protected]:

Tried to recreate your project from SO. Didn't manage it fully, but it did
make seem to be making it past the wicket configure step without problems.

Going to have to wait for an example project that I can test with.


Reply to this email directly or view it on GitHubhttps://github.com//issues/21#issuecomment-18514781
.

from cdi-unit.

tejl avatar tejl commented on July 2, 2024

Hej Bryn

I had some time to use. I've created a simple Eclipse/Maven setup to demonstrate the problem. The POM might be a bit bloated because its a slightly modified copy of our prototyping project.

I think this is not just a Maven problem. I've expanded the testing a bit.

I did simplify my question a bit to much. The correct scenario is this:

  1. MyPanelTest corresponds to my earlier provided example and works. The
    class under test (MyPanel) is situated in src/main/java, while MyPanelTest
    is in src/test/java.
  2. The problem is when testing an abstract class.
    First I did this by creating a subclass and extending it.

The subclass EmbryonicPanelTested is situated in the src/test/java/panel/EmbryonicPanelTest file. This works will in Eclipse but fails in Maven.

Secondly I did the same but put the sub class as a separate file i.e. src/test/java/panel/EmbryonicPanelTested2.java. This does not work in Eclipse nor in Maven.

Best regards,
Jesper

from cdi-unit.

BrynCooke avatar BrynCooke commented on July 2, 2024

OK. Please try the 2.0.9-SNAPSHOT. Details can be found here: https://groups.google.com/forum/?fromgroups#!topic/cdi-unit/52qn0gAfe8E

This was because there was caching of some type information in wicket keyed on bean manager. However because all the bean managers had the same id they were treated as equal leading to bad things happening.

from cdi-unit.

BrynCooke avatar BrynCooke commented on July 2, 2024

OK, I'm goona close this one. Please reopen if you still have issues.

from cdi-unit.

tejl avatar tejl commented on July 2, 2024

Hi Bryn.

Sorry for late response. I've been struck with fever. It works with version
2.0.9-SNAPSHOT!

Thanks
Jesper

On Tue, Jun 4, 2013 at 10:12 PM, Bryn Cooke [email protected]:

OK, I'm goona close this one. Please reopen if you still have issues.


Reply to this email directly or view it on GitHubhttps://github.com//issues/21#issuecomment-18935721
.

from cdi-unit.

BrynCooke avatar BrynCooke commented on July 2, 2024

Great to hear it.

I've released a new version of CDI-Unit so you should be able to start using 2.1.0 from maven central.

Bryn

On 6 Jun 2013, at 14:13, Jesper Tejlgaard [email protected] wrote:

Hi Bryn.

Sorry for late response. I've been struck with fever. It works with version
2.0.9-SNAPSHOT!

Thanks
Jesper

On Tue, Jun 4, 2013 at 10:12 PM, Bryn Cooke [email protected]:

OK, I'm goona close this one. Please reopen if you still have issues.


Reply to this email directly or view it on GitHubhttps://github.com//issues/21#issuecomment-18935721
.


Reply to this email directly or view it on GitHub.

from cdi-unit.

tejl avatar tejl commented on July 2, 2024

I've already configured the dependency in my pom ;-)

from cdi-unit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.