4 Replies Latest reply on Dec 10, 2009 11:42 PM by Emir Calabuch

    Excluding EJB deployment in unit test

    Rick Kilcoyne Newbie
      Anyone have a clean way of excluding an EJB from deployment when running unit tests? I have an MDB that uses @Depends to ensure it's deployed after Seam is started. Its dependency (jboss.web.deployment:war=/mywarname) is not deployed in the seam test environment, therefore the test environment fails to start due to the unmet dependency.

      The simple, ham-handed way to fix this is to comment the @Depend annotations in all my MDBs when running unit test, but I'm sure there's a better way.

      If you have suggestions, I'm all ears. Willing to trade GWT/GXT/Seam info!