1 Reply Latest reply on May 16, 2011 5:05 AM by Magnus Smith

    known working GF3.1 embedded/Arquillian/Security ?

    Michael Grom Newbie

      Hello!

       

      I got quite frustrated setting up unit tests using maven for Glassfish 3.1 development - I've tried EJBContainer Embedded API to no avail and came across Arquillian which looks really impressive. However, we use security annotations with our session beans and I would therefore need to enable security within embedded Glassfish 3.1 and have a mock user executing the session bean code. I've tried the GlassFishTestHelper class and ran into the empty Server name list issue - tried using the config of the locally installed full glassfish also failed (see post) - now I got completely confused which version of arquillian-junit, arquillian-glassfish-embedded-3 / arquillian-glassfish-embedded-3.1 and glassfish-embedded-all work together and enable me either using the GlassFishTestHelper approach _or_ plain ProgrammaticLogin with a pre-configured realm from the local Glassfish V3.1.

       

      Does somebody have this up and running?

       

      kind regards

      Michael