Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-272

Allow @Deployment to be optional

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • None
    • OSGi Containers
    • None

      OSGi test cases frequently generate non-trivial bundle deployments as part of their test methods.

      The bundle that contains the test case is automatically generated by ARQ. To be precise, the test class is always added to the @Deployment. The bundle manifest is generated or extended by the required Import/Export-Package statements.

      If @Deployment was missing, ARQ could generate an Archive that contains just the test class, which would reduce the noise in ARQ OSGi tests considerably.

      Currently this code is required in every OSGi test case that does not operate on a single bundle deployment.

      @Deployment
      public static Archive<?> createDeployment()

      { return ShrinkWrap.create(JavaArchive.class, "empty-bundle"); }

            tdiesler@redhat.com Thomas Diesler
            tdiesler@redhat.com Thomas Diesler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: