Camel
  1. Camel
  2. CAMEL-3213

facility to debug the camel test case in eclipse with spring osgi framework

    Details

    • Type: Test Test
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.4.0
    • Fix Version/s: Future
    • Component/s: osgi, tests
    • Labels:
      None

      Description

      To debug the camel test case in osgi framework with eclipse ide; if using PAX-EXAM , it is difficult than spring-osgi-test, because pax-exam ask for remote debug and ask for change the code of test-code to add remote debugging options;

      But if we use spring-osgi , it will loading some exhausted and expired bundles by default. Some bundles are expired and hardly to find in the maven repository;

      here give a patch to refine the default loaded bundles by spring-osgi-test, and also it support a CamelTestSupport-like interface to write test case, so the already written test cases can easily changed to run in spring osgi framework;
      Hope it's useful to you

        Activity

        Hide
        ext2 added a comment -

        camel-test:
        is a spring patch to default loading bundles.also support a CamelTestSupport liked interface to write test case;

        came-test-demo:
        contains a testCase to use camel-test

        using spring-osgi-test, it will facilitate you to debug the testcase in Eclipse ide;
        But spring-osgi-test still has it's disadvantage to pax-exam; especially it's import-package resolve strategy: only resolve the first started test-case. so we may encounter class not found problem sometimes;
        To resolve this problem you'd better support a manually manifest.

        Show
        ext2 added a comment - camel-test: is a spring patch to default loading bundles.also support a CamelTestSupport liked interface to write test case; came-test-demo: contains a testCase to use camel-test using spring-osgi-test, it will facilitate you to debug the testcase in Eclipse ide; But spring-osgi-test still has it's disadvantage to pax-exam; especially it's import-package resolve strategy: only resolve the first started test-case. so we may encounter class not found problem sometimes; To resolve this problem you'd better support a manually manifest.
        Hide
        Claus Ibsen added a comment -

        Not a Camel issue per see.

        If you use blueprint we have a camel-test-blueprint component that can debug easily.

        Show
        Claus Ibsen added a comment - Not a Camel issue per see. If you use blueprint we have a camel-test-blueprint component that can debug easily.

          People

          • Assignee:
            Claus Ibsen
            Reporter:
            ext2
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development