Search in sources :

Example 1 with LinkBlackDuckResponse

use of com.synopsys.integration.blackduck.api.core.response.LinkBlackDuckResponse in project blackduck-common-api by blackducksoftware.

the class LinkBlackDuckResponseTest method testLinkResponseEquality.

@Test
public void testLinkResponseEquality() {
    final LinkBlackDuckResponse linkResponse1 = new LinkSingleResponse<>("uri", ProjectView.class);
    final LinkBlackDuckResponse linkResponse2 = new LinkMultipleResponses<>("uri", ProjectView.class);
    final LinkBlackDuckResponse linkResponse3 = new LinkSingleResponse<>("uri", ProjectView.class);
    assertNotEquals(linkResponse1, linkResponse2);
    assertEquals(linkResponse1, linkResponse3);
}
Also used : LinkSingleResponse(com.synopsys.integration.blackduck.api.core.response.LinkSingleResponse) LinkMultipleResponses(com.synopsys.integration.blackduck.api.core.response.LinkMultipleResponses) LinkBlackDuckResponse(com.synopsys.integration.blackduck.api.core.response.LinkBlackDuckResponse) Test(org.junit.jupiter.api.Test)

Aggregations

LinkBlackDuckResponse (com.synopsys.integration.blackduck.api.core.response.LinkBlackDuckResponse)1 LinkMultipleResponses (com.synopsys.integration.blackduck.api.core.response.LinkMultipleResponses)1 LinkSingleResponse (com.synopsys.integration.blackduck.api.core.response.LinkSingleResponse)1 Test (org.junit.jupiter.api.Test)1