diff options
author | Prudence Au <prudence.au@amdocs.com> | 2018-08-21 15:35:51 -0400 |
---|---|---|
committer | Prudence Au <prudence.au@amdocs.com> | 2018-08-21 15:51:02 -0400 |
commit | 4941e70b8bd9700be474d3ebe40def9d70d23693 (patch) | |
tree | 9ce6bbe4e2472fc900608239deac052a39dfd125 /src/main/java/org/onap/pomba/contextbuilder/aai/util | |
parent | b1b32354811fd9c856bf9ce611d36591d7a81404 (diff) |
Add JUnit tests
Change-Id: Iedc215a9d77670a697822683457e7eeb4a7cc335
Issue-ID: LOG-521
Signed-off-by: Prudence Au <prudence.au@amdocs.com>
Diffstat (limited to 'src/main/java/org/onap/pomba/contextbuilder/aai/util')
-rw-r--r-- | src/main/java/org/onap/pomba/contextbuilder/aai/util/RestUtil.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/onap/pomba/contextbuilder/aai/util/RestUtil.java b/src/main/java/org/onap/pomba/contextbuilder/aai/util/RestUtil.java index 8681d21..a997ebc 100644 --- a/src/main/java/org/onap/pomba/contextbuilder/aai/util/RestUtil.java +++ b/src/main/java/org/onap/pomba/contextbuilder/aai/util/RestUtil.java @@ -121,10 +121,10 @@ public class RestUtil { authorization = headers.getRequestHeaders().getFirst(AUTHORIZATION); if (authorization != null && !authorization.trim().isEmpty() && authorization.startsWith("Basic")) { if (!authorization.equals(basicAuthorization)) { - throw new AuditException(Status.UNAUTHORIZED, AuditError.MISMATCH); + throw new AuditException(AuditError.MISMATCH, Status.UNAUTHORIZED); }; } else { - throw new AuditException(Status.UNAUTHORIZED, AuditError.MISSING_AUTHORIZATION_HEADER); + throw new AuditException(AuditError.MISSING_AUTHORIZATION_HEADER, Status.UNAUTHORIZED); } } |