1 Reply Latest reply on Mar 11, 2008 9:37 PM by Pete Muir

    Running Tests on (pure) JSE environment

    Rodrigo Yoshima Newbie

      I'm trying to run my tests outside Jboss Embleddable.


      Seam Doc


      My questions are:


      1. Is it really necessary jboss-embeddable.all at IDE classpath for SeamTest to run?


      2. My current test code is:


             @BeforeSuite
           public void init() throws Exception {
                startSeam();
           }
      
           @Test (expectedExceptions = DomainException.class)
           public void umProfessorNaoPodeEstarEmDuasSalasAoMesmoTempo() throws Exception {
      
                CarreiraRepository carreiraRepository = (CarreiraRepository) Component.getInstance("carreiraRepository");
      
                      // do the tests
              }
      



      Is there a problem?


      3. The error I'm getting is:


      FAILED CONFIGURATION: @BeforeSuite init
      java.lang.NoClassDefFoundError: org/jboss/deployers/spi/DeploymentException
           at java.lang.Class.forName0(Native Method)
           at java.lang.Class.forName(Class.java:164)
           at org.jboss.seam.mock.BaseSeamTest.embeddedJBossAvailable(BaseSeamTest.java:1051)


      Chers.