Very helpful; thanks!

With this, I got it running:  Behaviours running as a JUnit test suite.



(Things I've noticed...
 1. Eclipse doesn't like the "BehaviourClass: " prefix on test suite (class) 
names.  Trimming that makes double-click work again.
 2. Eclipse also doesn't like something about the methods.  IE: Double-clicking 
on behavior methods does not navigate to them.  It's not (just) the 
'CamelCaseConverter.toPhrase()' changes to spacing and capitalization.  I 
suspect that the Eclipse JUnit test (suite) runner may be objecting to the 
hierarchical organization of the test suites.  But I'm not sure.
 3. I'm puzzling over why all the ant extension behaviors are failing with 
'IllegalArgumentException: URI is not absolute' exceptions -- when run with the 
JBehavior runner (org.jbehave.core.Run) and under JUnit.  I'm running under 
Windows Vista, with Eclipse 3.3.  It's objecting to 
"/C:/Java/jbehave-1.0.1/bin/org/jbehave/ant/BehaviourRunnerTask.class", after 
stripping the "file:" prefix.  Odd, but I'm not really worried about the ant 
functionality at the moment.

I don't expect you to *do* anything about my observations.  But I thought it 
might help if I shared them.)


Thanks for the help!
         - jeff



  ----- Original Message ----- 
  From: Alexandre Martins 
  To: JBehave Development List 
  Sent: Monday, May 14, 2007 9:49 PM
  Subject: [jbehave-dev] Patch for JUnitAdapter


  Hi everybody, 
  today while I was writing a JUnitAdapter for my behaviours I realized that 
it's ignoring the behaviour methods 
  of nested Behaviours. In the example below, it would ignore the Foo and Bar 
behaviour methods. 

  public class AllBehaviours implements Behaviours {
      public Class[] getBehaviours() {
          return new Class[] { AllCoreBehaviours.class };
      }
  }

  public class AllCoreBehaviours implements Behaviours { 
      public Class[] getBehaviours() {
          return new Class[] {
                  FooBehaviour.class,
                  BarBehaviour.class
          };
      }
  }

  I wrote the code to make it possible and I'm sending attached the patch for 
you to take a look. 
  I hope I can help you as you've been helping me.
  Cheers,
  ______________________
  Alexandre Martins Nunes
  http://m.artins.net 


------------------------------------------------------------------------------


  ---------------------------------------------------------------------
  To unsubscribe from this list please visit:

      http://xircles.codehaus.org/manage_email

Reply via email to