Description
Extract tests that do not need an ApplicationContext and DB into a unit test class RadiologyOrderServiceTest (which extends BaseContextMockTest). This will speed up our builds and make it easy to separate unit from integration tests later.
You can see an example of how the service dependencies are mocked and injected at
- placeRadiologyOrder
- throw illegal argument exception given null
- throw illegal argument exception if given radiology order has no study
- throw api exception on saving an existing radiology order
- discontinueRadiologyOrder
- throw illegal argument exception if given radiology order is null
- throw illegal argument exception if given radiology order with orderId null
- throw illegal argument exception if given orderer is null
- throw api exception if given radiology order is discontinued
- throw api exception if given radiology order is in progress
- throw api exception if given radiology order is completed
- getRadiologyOrder
- throw illegal argument exception if given null
- getRadiologyOrderByUuid
- throw illegal argument exception if given null
- getRadiologyOrders
- throw illegal argument exception if given null
Gliffy Diagrams
Attachments
Issue Links
- relates to
-
RAD-382 Create RadiologyReportServiceTest
-
- Approved
-