Skip to content
Snippets Groups Projects
Commit c9e1388d authored by Aalekh Jain's avatar Aalekh Jain
Browse files

Added constructor for UT in `LegalTagPublisherImpl`

parent a8bc4c67
No related branches found
No related tags found
1 merge request!61Improve code coverage
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment