Skip to content
Snippets Groups Projects
Commit a67db0ab authored by Smitha Manjunath's avatar Smitha Manjunath
Browse files

increase code coverage of notification-core to 80%

parent d8aaceb4
No related branches found
No related tags found
3 merge requests!232Update os-core-lib-azure,!231initial commit,!203Increase code coverage of Core module to 80%
Pipeline #102163 failed
Pipeline: Notification

#102168

    ......@@ -54,7 +54,7 @@ public class CredentialHeadersProviderTest {
    when(serviceAccountJwtClient.getIdToken("opendes")).thenReturn("sampleAuthToken");
    DpsHeaders dpsHeaders = headersProvider.getObject();
    assertNotNull(headersProvider.getObject());
    assertNotNull(dpsHeaders);
    assertEquals(dpsHeaders.getHeaders().get("content-type"), "application/json");
    assertEquals(dpsHeaders.getHeaders().get("authorization"), "sampleAuthToken");
    assertEquals(dpsHeaders.getHeaders().get("data-partition-id"), "opendes");
    ......
    ......@@ -18,6 +18,7 @@ import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import java.io.IOException;
    import static org.junit.Assert.assertEquals;
    import static org.junit.Assert.assertNotNull;
    import static org.mockito.ArgumentMatchers.any;
    import static org.mockito.Mockito.doNothing;
    ......@@ -52,6 +53,7 @@ public class NotificationFilterTest {
    notificationFilter.doFilter(servletRequest, servletResponse, filterChain);
    assertNotNull(dpsHeaders.getHeaders().get("correlation-id"));
    assertEquals(dpsHeaders.getHeaders().get("content-type"),"application/json");
    }
    }
    \ No newline at end of file
    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