tree: c8c01b953a1d0da6dacbb636ee585cd712352a68 [path history] [tgz]
  1. alternatives/
  2. ambiguous-deps/
  3. config/
  4. decorators/
  5. events/
  6. implicit/
  7. injection-point/
  8. interceptors/
  9. javaee-component-resources/
  10. javaee-integration/
  11. lib/
  12. managed-beans/
  13. open-issues/
  14. osgi-cdi/
  15. portable-extensions/
  16. producer-methods/
  17. programmatic-lookup/
  18. qualifiers/
  19. scopes/
  20. smoke-tests/
  21. specialization/
  22. stereotypes/
  23. transactions/
  24. unproxyable-deps/
  25. unsatisfied-deps/
  26. build.xml
  27. pom.xml
  28. README.md
  29. README_Embedded.txt
  30. report.xml
  31. resultCount.sh
  32. run_test.sh
  33. todo.txt
appserver/tests/appserv-tests/devtests/cdi/README.md

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