diff options
Diffstat (limited to 'main/src/test/java/org/onap/policy/api/main/rest/TestCommonRestController.java')
-rw-r--r-- | main/src/test/java/org/onap/policy/api/main/rest/TestCommonRestController.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/test/java/org/onap/policy/api/main/rest/TestCommonRestController.java b/main/src/test/java/org/onap/policy/api/main/rest/TestCommonRestController.java index 68377003..dc921488 100644 --- a/main/src/test/java/org/onap/policy/api/main/rest/TestCommonRestController.java +++ b/main/src/test/java/org/onap/policy/api/main/rest/TestCommonRestController.java @@ -2,7 +2,7 @@ * ============LICENSE_START======================================================= * ONAP Policy API * ================================================================================ - * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved. + * Copyright (C) 2019-2020 AT&T Intellectual Property. All rights reserved. * Modifications Copyright (C) 2019 Nordix Foundation. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); @@ -24,7 +24,7 @@ package org.onap.policy.api.main.rest; import static org.junit.Assert.assertNull; -import static org.junit.Assert.assertTrue; +import static org.junit.Assert.assertSame; import java.util.UUID; import javax.ws.rs.core.Response; @@ -42,7 +42,7 @@ public class TestCommonRestController { UUID requestId = UUID.randomUUID(); ResponseBuilder rb = crc.addLoggingHeaders(crc.addVersionControlHeaders(Response.status(Response.Status.OK)), requestId); - assertTrue(rb.equals(rb.header("X-ONAP-RequestID", requestId))); + assertSame(rb, rb.header("X-ONAP-RequestID", requestId)); } /* |