1 Reply Latest reply on Nov 5, 2007 9:43 AM by pmuir

    Please help me with answering this on unit/integrated tests

    tiwaryamit

      Hi .
      I have started on Seam a few weeks and looks like it is going to be our framework for next set of web development. I was interested in hibernate2 example which came with Seam download. There were no unit/integration tests provided. Does it mean that we can't have unit/integrated tests without embedded JBoss in Tomcat? Is there any way using which I will be able to write unit/integration tests in plain tomcat deployment scenario. Please help me with answers/suggestions to these queries as it is a big road block for me since last two days.
      Please help me.

      ps: I tried migrating the test cases from booking example here, but when I run ant test, it throws the below exception.
      "
      testng] ERROR 05-11 18:51:49,517 [org.jboss.dependency.plugins.AbstractController.incrementState():456] Error installing to Start: name=jboss:database=localDB,service=Hypersonic state=Create mode=Manual requiredState=Installed
      [testng] java.sql.SQLException: Wrong database file version
      ".
      Mine is an Oracle Datasource configured in context.xml.

      Have a great day ahead.

      Thanks
      Amit

        • 1. Re: Please help me with answering this on unit/integrated te
          pmuir

          You would need a way of starting a tomcat container and deploying your application to it from SeamTest (i.e. java). All SeamTest does is start a copy of Embedded with the project to test on the classpath (and relevant libraries). This is the second request I've seen for this recently, so if you get it working, then you should post about it.