This content has been marked as final.
Show 3 replies
-
1. Re: How to make a test enricher avaible
aslak Nov 22, 2010 5:57 PM (in response to iapazmino)Have you looked at the AuxiliaryArchiveAppender SPI, make that available on classpath, but only make the TestEnricher available in the AuxiliaryArchiveAppender returned Archive, archive.addServiceProvider(TestEnricher.class, Impl.class)
?
-
2. Re: How to make a test enricher avaible
iapazmino Nov 24, 2010 8:21 PM (in response to aslak)Thanks a lot, almost there.
Now I just need to add an annotation class in the test cases where I'm not using the test enricher at all.
But I don't get why I need to add the classes in the deployment archive, either with addServiceProvider or addClasses, even when the test enricher is added as a dependency within the test scope.
-
3. Re: How to make a test enricher avaible
aslak Nov 24, 2010 8:37 PM (in response to iapazmino)1 of 1 people found this helpfulBecause the TestEnricher is executed inside the container, and how it is transfered to the container is via the deployment using the appender.