This content has been marked as final.
Show 3 replies
-
1. Re: UI Scoped Class can't be tested
julius278 Mar 30, 2017 7:54 AM (in response to mjobanek)Oh, that was not what I wanted to do sry for "outsourcing" this article...
Try to change your deployment to:
- ShrinkWrap.create(WebArchive.class)
- .addClasses(BeispielKlasse.class, BeispielBean.class)
- .addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml")
- .addAsLibraries(Maven
- .resolver()
- .loadPomFromFile("pom.xml")
- .resolve("com.vaadin:vaadin-cdi")
- .withTransitivity()
- .asFile());
There is an error message at "Maven", I'm not sure why...
-
2. Re: UI Scoped Class can't be tested
mjobanek Mar 30, 2017 8:29 AM (in response to julius278)1 of 1 people found this helpfulNo problem :-).
To use ShrinkWrap Resolver you need to add maven dependency into your pom.xml file:
<dependency> <groupId>org.jboss.shrinkwrap.resolver</groupId> <artifactId>shrinkwrap-resolver-depchain</artifactId> <version>3.0.0-alpha-4</version> <type>pom</type> </dependency>
Anyway, according to your exception, it doesn't seem to be this problem - there is no ClassNotFoundException.
I would probably ask on Vaadin forum if they have any experience with it as the exception comes from Vaadin code.
-
3. Re: UI Scoped Class can't be tested
julius278 Mar 30, 2017 11:28 AM (in response to mjobanek)Okay, I'm going to ask in the Vaadin forum, thanks for your help.