diff options
author | emaclee <lee.anjella.macabuhay@est.tech> | 2022-06-08 11:41:59 +0100 |
---|---|---|
committer | emaclee <lee.anjella.macabuhay@est.tech> | 2022-06-10 10:31:44 +0100 |
commit | e883b97dd85a37b16c1c981e907799a304e0a23d (patch) | |
tree | 9ad8b777dc83482c1710d3910da2f3a11fc81db1 /src/test | |
parent | 2cd8b98223bd49975fcca0ec7f1d4673a4163074 (diff) |
Fix sonar code smells
- Remove this unused method parameter "operation"
(https://sonarcloud.io/project/issues?resolved=false&types=CODE_SMELL&id=onap_cps-ncmp-dmi-plugin&open=AYEgIe-wVOe7T_lfxJBt)
- Change method to private
Issue-ID: CPS-475
Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
Change-Id: I07e9b8150da935387f2a63c5b0e622d5157412de
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/groovy/org/onap/cps/ncmp/dmi/notifications/async/AsyncTaskExecutorIntegrationSpec.groovy | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/groovy/org/onap/cps/ncmp/dmi/notifications/async/AsyncTaskExecutorIntegrationSpec.groovy b/src/test/groovy/org/onap/cps/ncmp/dmi/notifications/async/AsyncTaskExecutorIntegrationSpec.groovy index 54c0fe09..b377a37b 100644 --- a/src/test/groovy/org/onap/cps/ncmp/dmi/notifications/async/AsyncTaskExecutorIntegrationSpec.groovy +++ b/src/test/groovy/org/onap/cps/ncmp/dmi/notifications/async/AsyncTaskExecutorIntegrationSpec.groovy @@ -117,7 +117,7 @@ class AsyncTaskExecutorIntegrationSpec extends Specification { def 'Publish and Subscribe message - failure'() { when: 'a failure event is published' def exception = new HttpClientRequestException('some cm handle', 'Node not found', HttpStatus.INTERNAL_SERVER_ERROR) - objectUnderTest.publishAsyncFailureEvent(TEST_TOPIC, '67890', DataAccessRequest.OperationEnum.READ, exception) + objectUnderTest.publishAsyncFailureEvent(TEST_TOPIC, '67890', exception) and: 'the topic is polled' def records = consumer.poll(Duration.ofMillis(1500)) then: 'the record received is the event sent' |