I'm trying to run my tests outside Jboss Embleddable.
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.
You can't really use SeamTest with Embedded JBoss.