diff options
author | a.sreekumar <ajith.sreekumar@bell.ca> | 2021-07-19 17:09:02 +0100 |
---|---|---|
committer | a.sreekumar <ajith.sreekumar@bell.ca> | 2021-07-19 17:09:55 +0100 |
commit | d3f2a5b966e49f4018d9913a2d91ed3a1f7cebbf (patch) | |
tree | 17b471a0450995cc4b7c5a54dec5f7c652c04bdd /main/src/test | |
parent | c0b019187866fe832ba614ceaca1f764952c9ff2 (diff) |
Use lombok annotations in policy-api
Change-Id: I858b3bff44804f3bf0c04bd637fafa0c01af2e57
Issue-ID: POLICY-3392
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
Diffstat (limited to 'main/src/test')
-rw-r--r-- | main/src/test/java/org/onap/policy/api/main/startstop/TestApiActivator.java | 5 | ||||
-rw-r--r-- | main/src/test/java/org/onap/policy/api/main/startstop/TestMain.java | 6 |
2 files changed, 6 insertions, 5 deletions
diff --git a/main/src/test/java/org/onap/policy/api/main/startstop/TestApiActivator.java b/main/src/test/java/org/onap/policy/api/main/startstop/TestApiActivator.java index 3e482a62..b899e014 100644 --- a/main/src/test/java/org/onap/policy/api/main/startstop/TestApiActivator.java +++ b/main/src/test/java/org/onap/policy/api/main/startstop/TestApiActivator.java @@ -2,6 +2,7 @@ * ============LICENSE_START======================================================= * Copyright (C) 2018 Samsung Electronics Co., Ltd. All rights reserved. * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved. + * Modifications Copyright (C) 2021 Bell Canada. 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. @@ -46,8 +47,8 @@ public class TestApiActivator { final ApiParameterGroup parGroup = new ApiParameterHandler().getParameters(arguments); final ApiActivator activator = new ApiActivator(parGroup); activator.initialize(); - assertTrue(activator.getParameterGroup().isValid()); - assertEquals(CommonTestData.API_GROUP_NAME, activator.getParameterGroup().getName()); + assertTrue(activator.getApiParameterGroup().isValid()); + assertEquals(CommonTestData.API_GROUP_NAME, activator.getApiParameterGroup().getName()); activator.terminate(); } } diff --git a/main/src/test/java/org/onap/policy/api/main/startstop/TestMain.java b/main/src/test/java/org/onap/policy/api/main/startstop/TestMain.java index 0c4eb4ed..6c8c514d 100644 --- a/main/src/test/java/org/onap/policy/api/main/startstop/TestMain.java +++ b/main/src/test/java/org/onap/policy/api/main/startstop/TestMain.java @@ -2,7 +2,7 @@ * ============LICENSE_START======================================================= * Copyright (C) 2018 Samsung Electronics Co., Ltd. All rights reserved. * Modifications Copyright (C) 2019-2020 AT&T Intellectual Property. All rights reserved. - * Modifications Copyright (C) 2020 Bell Canada. All rights reserved. + * Modifications Copyright (C) 2020-2021 Bell Canada. 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. @@ -46,8 +46,8 @@ public class TestMain { "src/test/resources/parameters/ApiConfigParametersXXX.json", NetworkUtil.allocPort()); final String[] apiConfigParameters = {"-c", "src/test/resources/parameters/ApiConfigParametersXXX.json"}; final Main main = new Main(apiConfigParameters); - assertTrue(main.getParameters().isValid()); - assertEquals(CommonTestData.API_GROUP_NAME, main.getParameters().getName()); + assertTrue(main.getParameterGroup().isValid()); + assertEquals(CommonTestData.API_GROUP_NAME, main.getParameterGroup().getName()); main.shutdown(); } |