There's also something Dain wrote, that I think is now in the blocks
module, for testing local interfaces.  I think it runs your junit test
inside the jboss  vm.  it's used in the cmp2 tests.

With the plain testsuite way of doing things, you have to write something
like an mbean to deploy explicitly to do your testing.  The thing Dain
wrote (as I understnad it) lets you just write tests, and takes care of
running  them in jboss.

david jencks


On 2003.01.03 00:13:01 -0500 Bill Burke wrote:
> MessageJames,
> 
> The way JBoss Unit tests work is that an EAR, SAR, EJB Jar, whatever is
> built.  The client test remotely hot-deploys the EAR, SAR, whatever, and
> then calls methods on the EJBS, MBeans, whatever to test things.
> 
> I'd really like to productize our testsuite and am looking for somebody
> to
> do this work.  The reporting, the JUnit extensions, and have example
> tests
> to show how to use the functionality and documentation.
> 
> XXXXXXXXXXXXXXXX
> Bill Burke
> Chief Architect
> JBoss Group, LLC
> XXXXXXXXXXXXXXXX
> 
> 
> 
> 
>   -----Original Message-----
>   From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of James
> Higginbotham
>   Sent: Thursday, January 02, 2003 11:57 PM
>   To: [EMAIL PROTECTED]
>   Subject: RE: [JBoss-dev] Jboss + Junit?
> 
> 
>   Bill,
> 
>   Thanks for the tip, this is some interesting stuff.. I was thinking of
> taking it one step further and constructing a TestRunner that is really
> an
> mbean. So, you could in fact deploy your ear, a jar with the unit tests,
> then through the console run a single class's tests.. I haven't quite
> figured out how to run more than one without writing either a custom
> deployer and use some extension like .junit for the jar of test class(es)
> or
> having the mbean querying the respository and finding all *Test classes
> deployed. This way, the test can actually be on the server side and
> invoke
> local methods. You could also hot deploy your ear and your unit tests and
> run them again without shutting down. Thoughts? Is this in there and I
> just
> missed it? Or, do I just have way too much time to think about
> applications
> of JBoss? I'm just tired of the same ol' J2EE applications I guess.... I
> really like the JBossTestSetup and assoc classes - really nice!
> 
>   James
>     -----Original Message-----
>     From: Bill Burke [mailto:[EMAIL PROTECTED]]
>     Sent: Thursday, January 02, 2003 5:08 PM
>     To: [EMAIL PROTECTED]
>     Subject: RE: [JBoss-dev] Jboss + Junit?
> 
> 
>     Our Junit extensions support all of what you want.
> 
>     Its under testsuite/...
> 
>     We need somebody to document this stuff.  Somebody volunteered once,
> but
> never got back to me.
> 
>     Bill
>       -----Original Message-----
>       From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of James
> Higginbotham
>       Sent: Thursday, January 02, 2003 4:23 PM
>       To: [EMAIL PROTECTED]
>       Subject: [JBoss-dev] Jboss + Junit?
> 
> 
>       Hi,
> 
>       I wanted to drop this note on the dev list since this question is
> in
> regards to a previous posting on the dev list. I had heard that the jboss
> team had made some extensions to Junit, is that right? If so, what were
> they
> in a nutshell? Can someone point me to the source as well?
> 
>       Also, does anyone know if there is a project out that provides
> Junit
> as an mbean such that unit tests can be deployed and run within the jboss
> runtime and test local EJB methods, utilize hot deploy (like the junit
> custom classloader concept), etc? I was just wondering if anyone had
> considered such a thing, knowing full well that it would be a JB only
> thing
> and that more cross-server solutions have been made (Cactus for one). It
> seems to be that it would be a more beneficial solution - write, compile,
> deploy, test within one VM in theory, possibly kicked off from the
> beanshell
> in Emacs (David should like that one!). Ok, so I'm dreaming a little..
> Thoughts?
> 
>       James
> 
> 
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD><TITLE>Message</TITLE>
> <META http-equiv=Content-Type content="text/html; charset=us-ascii">
> <META content="MSHTML 6.00.2600.0" name=GENERATOR></HEAD>
> <BODY>
> <DIV><SPAN class=174270805-03012003><FONT face=Arial color=#0000ff 
> size=2>James,</FONT></SPAN></DIV>
> <DIV><SPAN class=174270805-03012003><FONT face=Arial color=#0000ff 
> size=2></FONT></SPAN>&nbsp;</DIV>
> <DIV><SPAN class=174270805-03012003><FONT face=Arial color=#0000ff
> size=2>The 
> way JBoss Unit tests work is that an EAR, SAR, EJB Jar, whatever is
> built.&nbsp; 
> The client test remotely hot-deploys&nbsp;the EAR, SAR, whatever, and
> then calls 
> methods on the EJBS, MBeans, whatever to test things.</FONT></SPAN></DIV>
> <DIV><SPAN class=174270805-03012003><FONT face=Arial color=#0000ff 
> size=2></FONT></SPAN>&nbsp;</DIV>
> <DIV><SPAN class=174270805-03012003><FONT face=Arial color=#0000ff
> size=2>I'd 
> really like to productize our testsuite and am looking for somebody to do
> this 
> work.&nbsp; The reporting, the JUnit extensions, and have example tests
> to show 
> how to use the functionality and documentation.</FONT></SPAN></DIV>
> <DIV><SPAN class=174270805-03012003><FONT face=Arial color=#0000ff 
> size=2></FONT></SPAN>&nbsp;</DIV>
> <DIV><SPAN class=174270805-03012003>
> <P><FONT size=2>XXXXXXXXXXXXXXXX<BR>Bill Burke<BR>Chief
> Architect<BR>JBoss 
> Group, LLC<BR>XXXXXXXXXXXXXXXX<BR></FONT></P></SPAN></DIV>
> <DIV><SPAN class=174270805-03012003><FONT face=Arial color=#0000ff 
> size=2></FONT></SPAN>&nbsp;</DIV>
> <DIV><SPAN class=174270805-03012003><FONT face=Arial color=#0000ff 
> size=2></FONT></SPAN>&nbsp;</DIV>
> <BLOCKQUOTE dir=ltr 
> style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px
> solid; MARGIN-RIGHT: 0px">
>   <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
>   size=2>-----Original Message-----<BR><B>From:</B> 
>   [EMAIL PROTECTED] 
>   [mailto:[EMAIL PROTECTED]]<B>On Behalf Of 
>   </B>James Higginbotham<BR><B>Sent:</B> Thursday, January 02, 2003 11:57
> 
>   PM<BR><B>To:</B> [EMAIL PROTECTED]<BR><B>Subject:</B>
> 
>   RE: [JBoss-dev] Jboss + Junit?<BR><BR></FONT></DIV>
>   <DIV><SPAN class=184574804-03012003><FONT face=Arial color=#0000ff 
>   size=2>Bill,</FONT></SPAN></DIV>
>   <DIV><SPAN class=184574804-03012003><FONT face=Arial color=#0000ff 
>   size=2></FONT></SPAN>&nbsp;</DIV>
>   <DIV><SPAN class=184574804-03012003><FONT face=Arial color=#0000ff 
>   size=2>Thanks for the tip, this is some interesting stuff.. I was
> thinking of 
>   taking it one step further and constructing a TestRunner that is really
> an 
>   mbean. So, you could in fact deploy your ear, a jar with the unit
> tests, then 
>   through the console run a single class's tests.. I haven't quite
> figured out 
>   how to run more than one without writing either a custom deployer and
> use some 
>   extension like .junit for the jar of test class(es) or having the mbean
> 
>   querying the respository and finding all *Test classes deployed. This
> way, the 
>   test can actually be on the server side and invoke local methods. You
> could 
>   also hot deploy your ear and your unit tests and run them again without
> 
>   shutting down. Thoughts? Is this in there and I just missed it? Or, do
> I just 
>   have way too much time to think about applications of JBoss? I'm just
> tired of 
>   the same ol' J2EE applications I guess.... I really like the
> JBossTestSetup 
>   and assoc classes - really nice!</FONT></SPAN></DIV>
>   <DIV><SPAN class=184574804-03012003><FONT face=Arial color=#0000ff 
>   size=2></FONT></SPAN>&nbsp;</DIV>
>   <DIV><SPAN class=184574804-03012003><FONT face=Arial color=#0000ff 
>   size=2>James</FONT></SPAN></DIV>
>   <BLOCKQUOTE dir=ltr 
>   style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px
> solid; MARGIN-RIGHT: 0px">
>     <DIV></DIV>
>     <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT 
>     face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> Bill
> Burke 
>     [mailto:[EMAIL PROTECTED]] <BR><B>Sent:</B> Thursday, January 02,
> 2003 
>     5:08 PM<BR><B>To:</B> 
>     [EMAIL PROTECTED]<BR><B>Subject:</B> RE:
> [JBoss-dev] 
>     Jboss + Junit?<BR><BR></FONT></DIV>
>     <DIV><SPAN class=853480623-02012003><FONT face=Arial color=#0000ff 
>     size=2>Our Junit extensions support all of what you 
> want.</FONT></SPAN></DIV>
>     <DIV><SPAN class=853480623-02012003><FONT face=Arial color=#0000ff 
>     size=2></FONT></SPAN>&nbsp;</DIV>
>     <DIV><SPAN class=853480623-02012003><FONT face=Arial color=#0000ff 
>     size=2>Its under testsuite/...</FONT></SPAN></DIV>
>     <DIV><SPAN class=853480623-02012003><FONT face=Arial color=#0000ff 
>     size=2></FONT></SPAN>&nbsp;</DIV>
>     <DIV><SPAN class=853480623-02012003><FONT face=Arial color=#0000ff
> size=2>We 
>     need somebody to document this stuff.&nbsp; Somebody volunteered
> once, but 
>     never got back to me.</FONT></SPAN></DIV>
>     <DIV><SPAN class=853480623-02012003><FONT face=Arial color=#0000ff 
>     size=2></FONT></SPAN>&nbsp;</DIV>
>     <DIV><SPAN class=853480623-02012003><FONT face=Arial color=#0000ff 
>     size=2>Bill</FONT></SPAN></DIV>
>     <BLOCKQUOTE dir=ltr 
>     style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px
> solid; MARGIN-RIGHT: 0px">
>       <DIV class=OutlookMessageHeader dir=ltr align=left><FONT
> face=Tahoma 
>       size=2>-----Original Message-----<BR><B>From:</B> 
>       [EMAIL PROTECTED] 
>       [mailto:[EMAIL PROTECTED]]<B>On Behalf
> Of 
>       </B>James Higginbotham<BR><B>Sent:</B> Thursday, January 02, 2003
> 4:23 
>       PM<BR><B>To:</B> 
>       [EMAIL PROTECTED]<BR><B>Subject:</B>
> [JBoss-dev] 
>       Jboss + Junit?<BR><BR></FONT></DIV><!-- Converted from text/rtf
> format -->
>       <P><FONT face=Arial size=2>Hi,</FONT> </P>
>       <P><FONT face=Arial size=2>I wanted to drop this note on the dev
> list 
>       since this question is in regards to a previous posting on the dev
> list. I 
>       had heard that the jboss team had made some extensions to Junit, is
> that 
>       right? If so, what were they in a nutshell? Can someone point me to
> the 
>       source as well?</FONT></P>
>       <P><FONT face=Arial size=2>Also, does anyone know if there is a
> project 
>       out that provides Junit as an mbean such that unit tests can be
> deployed 
>       and run within the jboss runtime and test local EJB methods,
> utilize hot 
>       deploy (like the junit custom classloader concept), etc? I was just
> 
>       wondering if anyone had considered such a thing, knowing full well
> that it 
>       would be a JB only thing and that more cross-server solutions have
> been 
>       made (Cactus for one). It seems to be that it would be a more
> beneficial 
>       solution - write, compile, deploy, test within one VM in theory,
> possibly 
>       kicked off from the beanshell in Emacs (David should like that
> one!). Ok, 
>       so I'm dreaming a little.. Thoughts?</FONT></P>
>       <P><FONT face=Arial size=2>James</FONT> 
> </P></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>
> 


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to