dheeraj12347 commented on PR #13543:
URL: https://github.com/apache/cloudstack/pull/13543#issuecomment-4913041616
Hi @DaanHoogland , @Pearl1594 and @soreana
I updated the unit test to mock Parameter.allowedValues() by adding:
Mockito.when(parameterMock.allowedValues()).thenReturn(new String[]{});
This fixes the NullPointerException in ApiDiscoveryServiceImplTest, and I
verified that the test passes locally with:
mvn -pl plugins/api/discovery \
-Dtest=ApiDiscoveryServiceImplTest \
-DfailIfNoTests=false test
Please let me know if there are any other changes you'd like me to make.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]