Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-577

Test-control: Add delegation of container boot

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 0.7
    • None
    • CdiControl, TestControl
    • None

    Description

      container.boot(); is used by Test-Control.

      This is nice for simple tests with cdictrl-openejb but I think it would be nice to have the possibility to target the boot(Map<?, ?> properties) that is available for the openejb container. I want Test-Control to delegate to me so I can boot myself.

      I am thinking something like:

      @TestControl(bootDelegate = PropertyAwareEjbBootDelegate.class)

      public interface BootDelegate {
      public void boot(CdiContainer cdiContainer);
      }

      That way tests could be way more dynamic and end users could boot the container in any way they want.

      Attachments

        Activity

          People

            Unassigned Unassigned
            karlkilden Karl Kildén
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: