-
1. Re: Glassfish 3 remote: archive deploys, but test case not found
ljnelson Nov 24, 2010 12:12 PM (in response to ljnelson)Aslak tells me via Twitter that I have to add the test case class itself. Now to figure out how to do that!
Best,
Laird
-
2. Re: Glassfish 3 remote: archive deploys, but test case not found
aslak Nov 24, 2010 12:14 PM (in response to ljnelson)I assume you have something in that ear right? So add the TestClass to that something. e.g
ShrinkWrap.create(EnterpriseArchive.class, "test.ear")
.addModule(
ShrinkWrap.create(JavaArchive.class, "my-ejb.jar")
.addClass(TestCase.class)
)
-
3. Re: Glassfish 3 remote: archive deploys, but test case not found
ljnelson Nov 24, 2010 12:24 PM (in response to aslak)Got it; thanks. Something about the ShrinkWrap API always turns my head sideways.
For example: what's the difference between EnterpriseArchive#addApplicationResource() and EnterpriseArchive#addResource()? Both appear to put resources under META-INF unless you tell them to put them somewhere else.
-
4. Re: Glassfish 3 remote: archive deploys, but test case not found
aslak Nov 24, 2010 12:34 PM (in response to ljnelson)god question.. addApplicationResource is the add'AnyThing' equlent to setApplicationXML(). where ResourceContainer.addResource is the more generic approach across Archive types(JavaArchive, WebArchive etc). This makes sense in WebArchive where ResourceContainer is mapped to a different location then WebArchive.addWebResource.. but for EnterpriseArchive.. hmmm..
-
5. Re: Glassfish 3 remote: archive deploys, but test case not found
ljnelson Nov 24, 2010 12:40 PM (in response to aslak)And then there's EnterpriseArchive#addManifestResource(). Which I think does--again--the same thing.