diff options
author | 2020-05-19 09:15:44 +0200 | |
---|---|---|
committer | 2020-05-19 09:15:44 +0200 | |
commit | 0023364bb5bd18eb791d53ef1be6bbe7309dd4ed (patch) | |
tree | 4fcdb99f8a55a4b9ffe05fde2303e26f98b03e32 | |
parent | 2f46ae18eea991bcf30d18ab1bb20a5f9b6fc1fd (diff) |
Add unit test for StatusCode
Issue-ID: SDC-2327
Signed-off-by: Marcin Kowalski <m.kowalski3@partner.samsung.com>
Change-Id: Ib3f1a672b07c38a7c4252624ff9e68fe35d0947e
-rw-r--r-- | security-util-lib/src/test/java/org/onap/sdc/security/logging/enums/StatusCodeTest.java | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/security-util-lib/src/test/java/org/onap/sdc/security/logging/enums/StatusCodeTest.java b/security-util-lib/src/test/java/org/onap/sdc/security/logging/enums/StatusCodeTest.java new file mode 100644 index 0000000..72cf01c --- /dev/null +++ b/security-util-lib/src/test/java/org/onap/sdc/security/logging/enums/StatusCodeTest.java @@ -0,0 +1,39 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2020 Samsung. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + * =================================================================== + * + */ + +package org.onap.sdc.security.logging.enums; + +import org.junit.Test; + +import static org.junit.Assert.assertEquals; + +public class StatusCodeTest { + + @Test + public void testGetStatusCodeEnum() { + assertEquals(StatusCode.ERROR.getStatusCodeEnum(), "ERROR"); + assertEquals(StatusCode.STARTED.getStatusCodeEnum(), "STARTED"); + assertEquals(StatusCode.COMPLETE.getStatusCodeEnum(), "COMPLETE"); + assertEquals(StatusCode.INPROGRESS.getStatusCodeEnum(), "INPROGRESS"); + + } +} |