1 Reply Latest reply on Dec 17, 2007 8:31 PM by ssilvert

    Junit 4

    kragoth

      Our project is using junit 4.4 for all our normal unit tests.

      If I attempt to use junit 4.4 with jsf-unit I get the following error.

      javax.servlet.ServletException: Servlet execution threw an exception
       org.jboss.jsfunit.framework.JSFUnitFilter.doFilter(JSFUnitFilter.java:123)
      
      root cause
      
      java.lang.NoClassDefFoundError: junit/runner/TestSuiteLoader
       org.apache.cactus.server.runner.ServletTestRunner.run(ServletTestRunner.java:296)
       org.apache.cactus.server.runner.ServletTestRunner.doGet_aroundBody0(ServletTestRunner.java:186)
       org.apache.cactus.server.runner.ServletTestRunner.doGet_aroundBody1$advice(ServletTestRunner.java:217)
       org.apache.cactus.server.runner.ServletTestRunner.doGet(ServletTestRunner.java)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
       org.jboss.jsfunit.framework.JSFUnitFilter.doFilter(JSFUnitFilter.java:123)
      



      Is there a plan to support junit 4 anytime soon?

        • 1. Re: Junit 4
          ssilvert

          This will probably depend on Cactus.

          At Javapolis last week, I had the opportunity to sit down with Petar Tahchiev, who is reviving the Cactus project. One of the things he talked about was support for JUnit 4 and TestNG. He's planning to do a release in the next couple of months but I don't remember if JUnit 4 was targeted for that release or not. I'm pretty sure it's on the road map though.

          To anyone who is interested, I'm sure that Petar would love to have some help on this. If you can't find his email and you want to help out, just send me a note and I'll put you in touch.

          Stan