3 Replies Latest reply on Dec 15, 2010 3:44 PM by luizruiz

    Stuck with unit testing, JBoss embedded

    evdelst

      Hi,


      I am stuck with getting the TestNG unit tests to work with a MySQL datasource.


      The hibernate conf is read correclty (according to the log), but I keep getting the following error:


      Failed to invoke @Configuration method org.jboss.seam.mock.SeamTest.init:Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
         [testng] 
         [testng] *** CONTEXTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}
         [testng] 
         [testng] jboss.jdbc:datasource=na,service=metadata
         [testng]  -> jboss.jdbc:service=metadata{Create:** NOT FOUND **}
         [testng]  -> jboss.jdbc:service=metadata{Start:** NOT FOUND **}
         [testng] 
         [testng] 
         [testng] *** CONTEXTS IN ERROR: Name -> Error
         [testng] 
         [testng] jboss.jdbc:service=metadata -> ** NOT FOUND **



      I think something simp;le is missing regarding to MySQL (in the normal Jboss, there is a standardjboss.xml etc.).


      As far as I know, I'm using the same config as the examples, only a different datasource.


      Kind regards,


      Edwin van der Elst