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

The @StartLevelAware(autostart = true) does not work with karaf deployer in case of @RunAsClient tests

XMLWordPrintable

    • Hide

      1. Create some test bundle to run on Karaf environment.
      2. Create @RunAsClient test in this bundle with deployment annotation @StartLevelAware(autostart = true).
      3. There could not be property "autostartBundle" in arquillian.xml .
      4. Run test using maven

      R: Test bundle under karaf is installed, but no activated.
      E: Test bundle under karaf is installed and active.

      Show
      1. Create some test bundle to run on Karaf environment. 2. Create @RunAsClient test in this bundle with deployment annotation @StartLevelAware(autostart = true). 3. There could not be property "autostartBundle" in arquillian.xml . 4. Run test using maven R: Test bundle under karaf is installed, but no activated. E: Test bundle under karaf is installed and active.
    • Workaround Exists
    • Hide

      Use
      <property name="autostartBundle">true</property>
      in arquillian.xml

      Show
      Use <property name="autostartBundle">true</property> in arquillian.xml

      The annotation @StartLevelAware(autostart = true) doesn't have effect to start test bundle under Karaf environment in case of @RunAsClient tests.

      I must use property
      <property name="autostartBundle">true</property>
      in arquillian configuration.xml to start test bundle.

              Unassigned Unassigned
              mswiech_jira Martin Swiech (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: