diff --git a/provider/legal-azure/src/main/java/org/opengroup/osdu/legal/azure/jobs/LegalTagPublisherImpl.java b/provider/legal-azure/src/main/java/org/opengroup/osdu/legal/azure/jobs/LegalTagPublisherImpl.java index 9eeb90ddf784b1587c4a9b95f6a226ae676eeb79..4232d5829ef6c65b56f16358c932c422adbe08c0 100644 --- a/provider/legal-azure/src/main/java/org/opengroup/osdu/legal/azure/jobs/LegalTagPublisherImpl.java +++ b/provider/legal-azure/src/main/java/org/opengroup/osdu/legal/azure/jobs/LegalTagPublisherImpl.java @@ -38,6 +38,16 @@ public class LegalTagPublisherImpl implements ILegalTagPublisher { @Inject private JaxRsDpsLog logger; + // Constructor made for unit testing + public LegalTagPublisherImpl (TopicClient topicClient, JaxRsDpsLog logger) { + this.topicClient = topicClient; + this.logger = logger; + } + + public LegalTagPublisherImpl() { + + } + @Override public void publish(String projectId, DpsHeaders headers, StatusChangedTags tags) throws Exception { Gson gson = new Gson();