Comments (9)
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.
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.
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.
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:
- 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. - 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.
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.
OK, I'm goona close this one. Please reopen if you still have issues.
from cdi-unit.
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.
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
JesperOn 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.
I've already configured the dependency in my pom ;-)
from cdi-unit.
Related Issues (20)
- WELD-001408: Unsatisfied dependencies for type EntityManager with qualifiers @Named HOT 4
- Cannot inject ContextController HOT 3
- Discover implementation of fields with interface type
- Error message for public rule field should be more helpful
- InRequestScope mentions nonexistent DummyHttpServletRequest
- Move to new group ID: io.github.cdi-unit HOT 1
- Investigate the capabilities of Travis CI to automate the release HOT 1
- Recent builds are failing on TravisCI
- cdi-unit fails to build with JDK 14 HOT 1
- Maven is complaining about malformed projects
- Repository gardening
- Unable to run cdiunit on Zulu JDK 11 HOT 4
- CdiRunner does not unbind the BeanManager in finally HOT 1
- Migrate from TravisCI to GitHub Actions
- Setup release workflow with GitHub Actions HOT 10
- NoClassDefFoundError with JDK 11 HOT 4
- Version for Jakarta EE HOT 29
- Case sensitivity in URL comparison HOT 3
- Question: PowerMock Support?
- Release HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cdi-unit.