diff --git a/components/apimgt/org.wso2.carbon.apimgt.api/src/main/java/org/wso2/carbon/apimgt/api/ExceptionCodes.java b/components/apimgt/org.wso2.carbon.apimgt.api/src/main/java/org/wso2/carbon/apimgt/api/ExceptionCodes.java index cc28953d59ee..3f910b83dcc1 100644 --- a/components/apimgt/org.wso2.carbon.apimgt.api/src/main/java/org/wso2/carbon/apimgt/api/ExceptionCodes.java +++ b/components/apimgt/org.wso2.carbon.apimgt.api/src/main/java/org/wso2/carbon/apimgt/api/ExceptionCodes.java @@ -598,7 +598,7 @@ public enum ExceptionCodes implements ErrorHandler { OPERATION_OR_RESOURCE_TYPE_OR_METHOD_NOT_DEFINED(902031, "Operation type/http method is not specified for the operation/resource", 400, - "Operation type/http method is not specified for the operation/resource: %s"), + "Operation type/http method is not specified for the operation/resource: %s", false), RESOURCE_URI_TEMPLATE_NOT_DEFINED(902032, "Resource URI template value not defined", 400, "Resource URI template value (target) not defined", false); diff --git a/components/apimgt/org.wso2.carbon.apimgt.rest.api.publisher.v1.common/src/test/java/org/wso2/carbon/apimgt/rest/api/publisher/v1/common/mappings/PublisherCommonUtilsTest.java b/components/apimgt/org.wso2.carbon.apimgt.rest.api.publisher.v1.common/src/test/java/org/wso2/carbon/apimgt/rest/api/publisher/v1/common/mappings/PublisherCommonUtilsTest.java index 2a59ec113775..a294ddcb453a 100644 --- a/components/apimgt/org.wso2.carbon.apimgt.rest.api.publisher.v1.common/src/test/java/org/wso2/carbon/apimgt/rest/api/publisher/v1/common/mappings/PublisherCommonUtilsTest.java +++ b/components/apimgt/org.wso2.carbon.apimgt.rest.api.publisher.v1.common/src/test/java/org/wso2/carbon/apimgt/rest/api/publisher/v1/common/mappings/PublisherCommonUtilsTest.java @@ -130,7 +130,7 @@ private ApiTypeWrapper createMockAPIProduct() { } @Test - public void testValidateEndpointsDefaultType() { + public void testValidateEndpointsDefaultType() throws APIManagementException { // endpointConfig APIDTO apiDto = Mockito.mock(APIDTO.class); @@ -150,7 +150,7 @@ public void testValidateEndpointsDefaultType() { } @Test - public void testValidateValidEndpoints() { + public void testValidateValidEndpoints() throws APIManagementException { // endpointConfig APIDTO apiDto = Mockito.mock(APIDTO.class); @@ -181,7 +181,7 @@ public void testValidateValidEndpoints() { } @Test - public void testValidateInvalidProductionEndpoint() { + public void testValidateInvalidProductionEndpoint() throws APIManagementException { // endpointConfig APIDTO apiDto = Mockito.mock(APIDTO.class); @@ -212,7 +212,7 @@ public void testValidateInvalidProductionEndpoint() { } @Test - public void testValidateInvalidSandboxEndpoint() { + public void testValidateInvalidSandboxEndpoint() throws APIManagementException { // endpointConfig APIDTO apiDto = Mockito.mock(APIDTO.class); @@ -243,7 +243,7 @@ public void testValidateInvalidSandboxEndpoint() { } @Test - public void testValidateValidExternalEndpoints() { + public void testValidateValidExternalEndpoints() throws APIManagementException { // endpointConfig APIDTO apiDto = Mockito.mock(APIDTO.class); @@ -284,7 +284,7 @@ public void testValidateValidExternalEndpoints() { } @Test - public void testValidateInvalidExternalEndpoints() { + public void testValidateInvalidExternalEndpoints() throws APIManagementException { // endpointConfig APIDTO apiDto = Mockito.mock(APIDTO.class); @@ -325,7 +325,7 @@ public void testValidateInvalidExternalEndpoints() { } @Test - public void testValidateEndpointsNullEndpointConfig() { + public void testValidateEndpointsNullEndpointConfig() throws APIManagementException { APIDTO apiDto = Mockito.mock(APIDTO.class); @@ -347,7 +347,7 @@ public void testValidateEndpointsNullEndpointConfig() { } @Test - public void testValidateEndpointsNullAdvertiseInfo() { + public void testValidateEndpointsNullAdvertiseInfo() throws APIManagementException { // endpointConfig APIDTO apiDto = Mockito.mock(APIDTO.class); @@ -375,7 +375,7 @@ public void testValidateEndpointsNullAdvertiseInfo() { } @Test - public void testValidateEndpointsNullExternalEndpoint() { + public void testValidateEndpointsNullExternalEndpoint() throws APIManagementException { // endpointConfig APIDTO apiDto = Mockito.mock(APIDTO.class);