CDI developer tests README

To checkout CDI devtests

Test setup

  • set S1AS_HOME, APS_HOME as appropriate export APS_HOME= directory export S1AS_HOME= directory
  • start GlassFish $S1AS_HOME/bin/asadmin start-domain domain1
  • start Derby $S1AS_HOME/bin/asadmin start-database

To run all CDI developer tests

  • cd $APS_HOME/devtests/cdi
  • ant all
  • results can be found at APS_HOME/test_results.html

Test setup teardown

  • stop GlassFish $S1AS_HOME/bin/asadmin stop-domain domain1
  • asadmin stop-database $S1AS_HOME/bin/asadmin stop-database

To run a single CDI developer test

  • after performing tasks under “Test setup”
  • cd $APS_HOME/devtests/cdi/[test-dir]
  • ant all
  • perform tasks listed under “Test setup teardown”

To run CDI developer test suite with Security Manager on

  • start domain and enable security manager by asadmin create-jvm-options -Djava.security.manager
  • stop domain
  • Add the following permission block to $S1AS_HOME/domains/domain1/config/server.policy grant codeBase “file:${com.sun.aas.instanceRoot}/applications/-” { permission java.lang.reflect.ReflectPermission “suppressAccessChecks”; };
  • restart domain
  • run tests