Uploaded image for project: 'SwitchYard'
  1. SwitchYard
  2. SWITCHYARD-36

Make it easier to unit test Bean services

    Details

    • Type: Enhancement
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: M1
    • Component/s: component-bean
    • Labels:
      None

      Description

      It would be nice if we could eliminate the service registration and exchange creation logic for testing bean services. Developers can always use the lower-level exchange route if required, but we should also provide:
      1) Simple way to say "invoke service 'xyz' with payload 'foo'"
      2) A way to assert that the service was successfully invoked
      3) A way to satisfy reference dependencies inside a Bean service (maybe the dev just writes test classes annotated with @Service)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                tfennelly Tom Fennelly
                Reporter:
                kcbabo Keith Babo
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: