Hi everybody,
I'm trying to use the JUnitAdapter but it's not working, maybe I'm doing
something wrong.
The code is:

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

public class AllBehavioursAsJUnitTests extends TestSuite {
   public static Test suite() {
       JUnitAdapter.setBehaviours(new AllBehaviours());
       Test suite = JUnitAdapter.suite();
       System.out.println("total test cases: " + suite.countTestCases());
       return suite;
   }
}

It prints    -    total test cases: 0
Could anyone help me please?
Cheers.
______________________
Alexandre Martins Nunes
http://m.artins.net

Reply via email to