refactor packaging of siddhi extensions

apim420
Amalka Subasinghe 2 years ago
parent 68eb8a1644
commit 7c38a7280b

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.extension.siddhi.device; package io.entgra.device.mgt.plugins.extension.siddhi.device;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
@ -24,7 +24,7 @@ import org.wso2.carbon.device.mgt.common.DeviceIdentifier;
import org.wso2.carbon.device.mgt.common.notification.mgt.Notification; import org.wso2.carbon.device.mgt.common.notification.mgt.Notification;
import org.wso2.carbon.device.mgt.common.notification.mgt.NotificationManagementException; import org.wso2.carbon.device.mgt.common.notification.mgt.NotificationManagementException;
import org.wso2.carbon.device.mgt.common.notification.mgt.NotificationManagementService; import org.wso2.carbon.device.mgt.common.notification.mgt.NotificationManagementService;
import org.wso2.extension.siddhi.device.utils.DeviceUtils; import io.entgra.device.mgt.plugins.extension.siddhi.device.utils.DeviceUtils;
import org.wso2.siddhi.core.config.ExecutionPlanContext; import org.wso2.siddhi.core.config.ExecutionPlanContext;
import org.wso2.siddhi.core.exception.ExecutionPlanRuntimeException; import org.wso2.siddhi.core.exception.ExecutionPlanRuntimeException;
import org.wso2.siddhi.core.executor.ExpressionExecutor; import org.wso2.siddhi.core.executor.ExpressionExecutor;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.extension.siddhi.device; package io.entgra.device.mgt.plugins.extension.siddhi.device;
import feign.Feign; import feign.Feign;
import feign.Logger; import feign.Logger;
@ -30,11 +30,11 @@ import org.apache.commons.logging.LogFactory;
import org.json.JSONArray; import org.json.JSONArray;
import org.wso2.carbon.device.mgt.common.operation.mgt.Activity; import org.wso2.carbon.device.mgt.common.operation.mgt.Activity;
import org.wso2.carbon.device.mgt.common.operation.mgt.Operation; import org.wso2.carbon.device.mgt.common.operation.mgt.Operation;
import org.wso2.extension.siddhi.device.client.OAuthRequestInterceptor; import io.entgra.device.mgt.plugins.extension.siddhi.device.client.OAuthRequestInterceptor;
import org.wso2.extension.siddhi.device.client.configs.SiddhiExtensionConfigReader; import io.entgra.device.mgt.plugins.extension.siddhi.device.client.configs.SiddhiExtensionConfigReader;
import org.wso2.extension.siddhi.device.client.dto.OperationRequest; import io.entgra.device.mgt.plugins.extension.siddhi.device.client.dto.OperationRequest;
import org.wso2.extension.siddhi.device.client.services.OperationService; import io.entgra.device.mgt.plugins.extension.siddhi.device.client.services.OperationService;
import org.wso2.extension.siddhi.device.utils.ClientUtils; import io.entgra.device.mgt.plugins.extension.siddhi.device.utils.ClientUtils;
import org.wso2.siddhi.core.config.ExecutionPlanContext; import org.wso2.siddhi.core.config.ExecutionPlanContext;
import org.wso2.siddhi.core.exception.ExecutionPlanRuntimeException; import org.wso2.siddhi.core.exception.ExecutionPlanRuntimeException;
import org.wso2.siddhi.core.executor.ExpressionExecutor; import org.wso2.siddhi.core.executor.ExpressionExecutor;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.extension.siddhi.device; package io.entgra.device.mgt.plugins.extension.siddhi.device;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
@ -25,7 +25,7 @@ import org.wso2.carbon.device.mgt.common.Device;
import org.wso2.carbon.device.mgt.common.exceptions.DeviceManagementException; import org.wso2.carbon.device.mgt.common.exceptions.DeviceManagementException;
import org.wso2.carbon.device.mgt.common.EnrolmentInfo; import org.wso2.carbon.device.mgt.common.EnrolmentInfo;
import org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderService; import org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderService;
import org.wso2.extension.siddhi.device.utils.DeviceUtils; import io.entgra.device.mgt.plugins.extension.siddhi.device.utils.DeviceUtils;
import org.wso2.siddhi.core.config.ExecutionPlanContext; import org.wso2.siddhi.core.config.ExecutionPlanContext;
import org.wso2.siddhi.core.exception.ExecutionPlanRuntimeException; import org.wso2.siddhi.core.exception.ExecutionPlanRuntimeException;
import org.wso2.siddhi.core.executor.ExpressionExecutor; import org.wso2.siddhi.core.executor.ExpressionExecutor;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.extension.siddhi.device; package io.entgra.device.mgt.plugins.extension.siddhi.device;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
@ -24,7 +24,7 @@ import org.json.JSONArray;
import org.wso2.carbon.device.mgt.common.Device; import org.wso2.carbon.device.mgt.common.Device;
import org.wso2.carbon.device.mgt.common.exceptions.DeviceManagementException; import org.wso2.carbon.device.mgt.common.exceptions.DeviceManagementException;
import org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderService; import org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderService;
import org.wso2.extension.siddhi.device.utils.DeviceUtils; import io.entgra.device.mgt.plugins.extension.siddhi.device.utils.DeviceUtils;
import org.wso2.siddhi.core.config.ExecutionPlanContext; import org.wso2.siddhi.core.config.ExecutionPlanContext;
import org.wso2.siddhi.core.exception.ExecutionPlanRuntimeException; import org.wso2.siddhi.core.exception.ExecutionPlanRuntimeException;
import org.wso2.siddhi.core.executor.ExpressionExecutor; import org.wso2.siddhi.core.executor.ExpressionExecutor;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.extension.siddhi.device; package io.entgra.device.mgt.plugins.extension.siddhi.device;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
@ -24,7 +24,7 @@ import org.wso2.carbon.device.mgt.common.Device;
import org.wso2.carbon.device.mgt.common.exceptions.DeviceManagementException; import org.wso2.carbon.device.mgt.common.exceptions.DeviceManagementException;
import org.wso2.carbon.device.mgt.common.EnrolmentInfo; import org.wso2.carbon.device.mgt.common.EnrolmentInfo;
import org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderService; import org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderService;
import org.wso2.extension.siddhi.device.utils.DeviceUtils; import io.entgra.device.mgt.plugins.extension.siddhi.device.utils.DeviceUtils;
import org.wso2.siddhi.core.config.ExecutionPlanContext; import org.wso2.siddhi.core.config.ExecutionPlanContext;
import org.wso2.siddhi.core.exception.ExecutionPlanRuntimeException; import org.wso2.siddhi.core.exception.ExecutionPlanRuntimeException;
import org.wso2.siddhi.core.executor.ExpressionExecutor; import org.wso2.siddhi.core.executor.ExpressionExecutor;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.extension.siddhi.device; package io.entgra.device.mgt.plugins.extension.siddhi.device;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
@ -24,7 +24,7 @@ import org.json.JSONArray;
import org.wso2.carbon.device.mgt.common.Device; import org.wso2.carbon.device.mgt.common.Device;
import org.wso2.carbon.device.mgt.common.exceptions.DeviceManagementException; import org.wso2.carbon.device.mgt.common.exceptions.DeviceManagementException;
import org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderService; import org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderService;
import org.wso2.extension.siddhi.device.utils.DeviceUtils; import io.entgra.device.mgt.plugins.extension.siddhi.device.utils.DeviceUtils;
import org.wso2.siddhi.core.config.ExecutionPlanContext; import org.wso2.siddhi.core.config.ExecutionPlanContext;
import org.wso2.siddhi.core.exception.ExecutionPlanRuntimeException; import org.wso2.siddhi.core.exception.ExecutionPlanRuntimeException;
import org.wso2.siddhi.core.executor.ExpressionExecutor; import org.wso2.siddhi.core.executor.ExpressionExecutor;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.extension.siddhi.device; package io.entgra.device.mgt.plugins.extension.siddhi.device;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
@ -25,7 +25,7 @@ import org.wso2.carbon.device.mgt.common.exceptions.DeviceManagementException;
import org.wso2.carbon.device.mgt.common.group.mgt.GroupManagementException; import org.wso2.carbon.device.mgt.common.group.mgt.GroupManagementException;
import org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderService; import org.wso2.carbon.device.mgt.core.service.DeviceManagementProviderService;
import org.wso2.carbon.device.mgt.core.service.GroupManagementProviderService; import org.wso2.carbon.device.mgt.core.service.GroupManagementProviderService;
import org.wso2.extension.siddhi.device.utils.DeviceUtils; import io.entgra.device.mgt.plugins.extension.siddhi.device.utils.DeviceUtils;
import org.wso2.siddhi.core.config.ExecutionPlanContext; import org.wso2.siddhi.core.config.ExecutionPlanContext;
import org.wso2.siddhi.core.exception.ExecutionPlanRuntimeException; import org.wso2.siddhi.core.exception.ExecutionPlanRuntimeException;
import org.wso2.siddhi.core.executor.ExpressionExecutor; import org.wso2.siddhi.core.executor.ExpressionExecutor;

@ -16,14 +16,14 @@
* under the License. * under the License.
*/ */
package org.wso2.extension.siddhi.device; package io.entgra.device.mgt.plugins.extension.siddhi.device;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.wso2.carbon.device.mgt.common.DeviceIdentifier; import org.wso2.carbon.device.mgt.common.DeviceIdentifier;
import org.wso2.carbon.device.mgt.common.group.mgt.GroupManagementException; import org.wso2.carbon.device.mgt.common.group.mgt.GroupManagementException;
import org.wso2.carbon.device.mgt.core.service.GroupManagementProviderService; import org.wso2.carbon.device.mgt.core.service.GroupManagementProviderService;
import org.wso2.extension.siddhi.device.utils.DeviceUtils; import io.entgra.device.mgt.plugins.extension.siddhi.device.utils.DeviceUtils;
import org.wso2.siddhi.core.config.ExecutionPlanContext; import org.wso2.siddhi.core.config.ExecutionPlanContext;
import org.wso2.siddhi.core.exception.ExecutionPlanRuntimeException; import org.wso2.siddhi.core.exception.ExecutionPlanRuntimeException;
import org.wso2.siddhi.core.executor.ExpressionExecutor; import org.wso2.siddhi.core.executor.ExpressionExecutor;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.extension.siddhi.device.client; package io.entgra.device.mgt.plugins.extension.siddhi.device.client;
import feign.Feign; import feign.Feign;
import feign.Logger; import feign.Logger;
@ -36,13 +36,13 @@ import org.wso2.carbon.identity.jwt.client.extension.JWTClient;
import org.wso2.carbon.identity.jwt.client.extension.dto.AccessTokenInfo; import org.wso2.carbon.identity.jwt.client.extension.dto.AccessTokenInfo;
import org.wso2.carbon.identity.jwt.client.extension.exception.JWTClientException; import org.wso2.carbon.identity.jwt.client.extension.exception.JWTClientException;
import org.wso2.carbon.user.api.UserStoreException; import org.wso2.carbon.user.api.UserStoreException;
import org.wso2.extension.siddhi.device.client.configs.SiddhiExtensionConfigReader; import io.entgra.device.mgt.plugins.extension.siddhi.device.client.configs.SiddhiExtensionConfigReader;
import org.wso2.extension.siddhi.device.client.dto.OAuthApplication; import io.entgra.device.mgt.plugins.extension.siddhi.device.client.dto.OAuthApplication;
import org.wso2.extension.siddhi.device.client.dto.RegistrationProfile; import io.entgra.device.mgt.plugins.extension.siddhi.device.client.dto.RegistrationProfile;
import org.wso2.extension.siddhi.device.client.exception.APIMClientOAuthException; import io.entgra.device.mgt.plugins.extension.siddhi.device.client.exception.APIMClientOAuthException;
import org.wso2.extension.siddhi.device.client.services.DCRService; import io.entgra.device.mgt.plugins.extension.siddhi.device.client.services.DCRService;
import org.wso2.extension.siddhi.device.utils.ClientUtils; import io.entgra.device.mgt.plugins.extension.siddhi.device.utils.ClientUtils;
import org.wso2.extension.siddhi.device.utils.DeviceUtils; import io.entgra.device.mgt.plugins.extension.siddhi.device.utils.DeviceUtils;
/** /**
* This is a request interceptor to add oauth token header. * This is a request interceptor to add oauth token header.

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.extension.siddhi.device.client.configs; package io.entgra.device.mgt.plugins.extension.siddhi.device.client.configs;
import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlRootElement;

@ -16,12 +16,12 @@
* under the License. * under the License.
*/ */
package org.wso2.extension.siddhi.device.client.configs; package io.entgra.device.mgt.plugins.extension.siddhi.device.client.configs;
import org.w3c.dom.Document; import org.w3c.dom.Document;
import org.wso2.carbon.utils.CarbonUtils; import org.wso2.carbon.utils.CarbonUtils;
import org.wso2.extension.siddhi.device.client.exception.APIMClientException; import io.entgra.device.mgt.plugins.extension.siddhi.device.client.exception.APIMClientException;
import org.wso2.extension.siddhi.device.client.exception.InvalidConfigurationStateException; import io.entgra.device.mgt.plugins.extension.siddhi.device.client.exception.InvalidConfigurationStateException;
import javax.xml.XMLConstants; import javax.xml.XMLConstants;
import javax.xml.bind.JAXBContext; import javax.xml.bind.JAXBContext;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.extension.siddhi.device.client.dto; package io.entgra.device.mgt.plugins.extension.siddhi.device.client.dto;
import org.wso2.carbon.device.mgt.common.operation.mgt.Operation; import org.wso2.carbon.device.mgt.common.operation.mgt.Operation;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.extension.siddhi.device.client.dto; package io.entgra.device.mgt.plugins.extension.siddhi.device.client.dto;
/** /**
* DTO class to be used when registering an ApiM application. * DTO class to be used when registering an ApiM application.

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.extension.siddhi.device.client.exception; package io.entgra.device.mgt.plugins.extension.siddhi.device.client.exception;
/** /**
* This holds api client exception. * This holds api client exception.

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.extension.siddhi.device.client.exception; package io.entgra.device.mgt.plugins.extension.siddhi.device.client.exception;
/** /**
* This holds api client exception. * This holds api client exception.

@ -17,7 +17,7 @@
* *
*/ */
package org.wso2.extension.siddhi.device.client.exception; package io.entgra.device.mgt.plugins.extension.siddhi.device.client.exception;
/** /**
* This error is thrown when there is an issue with the client. * This error is thrown when there is an issue with the client.

@ -16,10 +16,10 @@
* under the License. * under the License.
*/ */
package org.wso2.extension.siddhi.device.client.services; package io.entgra.device.mgt.plugins.extension.siddhi.device.client.services;
import org.wso2.extension.siddhi.device.client.dto.OAuthApplication; import io.entgra.device.mgt.plugins.extension.siddhi.device.client.dto.OAuthApplication;
import org.wso2.extension.siddhi.device.client.dto.RegistrationProfile; import io.entgra.device.mgt.plugins.extension.siddhi.device.client.dto.RegistrationProfile;
import javax.ws.rs.Consumes; import javax.ws.rs.Consumes;
import javax.ws.rs.POST; import javax.ws.rs.POST;

@ -16,10 +16,10 @@
* under the License. * under the License.
*/ */
package org.wso2.extension.siddhi.device.client.services; package io.entgra.device.mgt.plugins.extension.siddhi.device.client.services;
import org.wso2.carbon.device.mgt.common.operation.mgt.Activity; import org.wso2.carbon.device.mgt.common.operation.mgt.Activity;
import org.wso2.extension.siddhi.device.client.dto.OperationRequest; import io.entgra.device.mgt.plugins.extension.siddhi.device.client.dto.OperationRequest;
import javax.ws.rs.Consumes; import javax.ws.rs.Consumes;
import javax.ws.rs.POST; import javax.ws.rs.POST;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.extension.siddhi.device.utils; package io.entgra.device.mgt.plugins.extension.siddhi.device.utils;
import okhttp3.OkHttpClient; import okhttp3.OkHttpClient;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;

@ -15,7 +15,7 @@
* specific language governing permissions and limitations * specific language governing permissions and limitations
* under the License. * under the License.
*/ */
package org.wso2.extension.siddhi.device.utils; package io.entgra.device.mgt.plugins.extension.siddhi.device.utils;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;

@ -16,11 +16,11 @@
# under the License. # under the License.
# #
isInGroup=org.wso2.extension.siddhi.device.IsInGroupFunctionExecutor isInGroup=io.entgra.device.mgt.plugins.extension.siddhi.device.IsInGroupFunctionExecutor
getDevicesOfUser=org.wso2.extension.siddhi.device.GetDevicesOfUserFunctionExecutor getDevicesOfUser=io.entgra.device.mgt.plugins.extension.siddhi.device.GetDevicesOfUserFunctionExecutor
hasDevicesOfUser=org.wso2.extension.siddhi.device.HasDevicesOfUserFunctionExecutor hasDevicesOfUser=io.entgra.device.mgt.plugins.extension.siddhi.device.HasDevicesOfUserFunctionExecutor
getDevicesOfStatus=org.wso2.extension.siddhi.device.GetDevicesOfStatusFunctionExecutor getDevicesOfStatus=io.entgra.device.mgt.plugins.extension.siddhi.device.GetDevicesOfStatusFunctionExecutor
hasDevicesOfStatus=org.wso2.extension.siddhi.device.HasDevicesOfStatusFunctionExecutor hasDevicesOfStatus=io.entgra.device.mgt.plugins.extension.siddhi.device.HasDevicesOfStatusFunctionExecutor
isEnrolled=org.wso2.extension.siddhi.device.IsEnrolledFunctionExecutor isEnrolled=io.entgra.device.mgt.plugins.extension.siddhi.device.IsEnrolledFunctionExecutor
addNotification=org.wso2.extension.siddhi.device.AddNotificationFunctionProcessor addNotification=io.entgra.device.mgt.plugins.extension.siddhi.device.AddNotificationFunctionProcessor
addOperation=org.wso2.extension.siddhi.device.AddOperationFunctionProcessor addOperation=io.entgra.device.mgt.plugins.extension.siddhi.device.AddOperationFunctionProcessor

@ -16,7 +16,7 @@
* under the License. * under the License.
* *
*/ */
package org.wso2.extension.siddhi.device; package io.entgra.device.mgt.plugins.extension.siddhi.device;
import org.apache.tomcat.jdbc.pool.PoolProperties; import org.apache.tomcat.jdbc.pool.PoolProperties;
import org.testng.annotations.BeforeClass; import org.testng.annotations.BeforeClass;
@ -31,8 +31,8 @@ import org.wso2.carbon.device.mgt.core.metadata.mgt.dao.MetadataManagementDAOFac
import org.wso2.carbon.device.mgt.core.notification.mgt.dao.NotificationManagementDAOFactory; import org.wso2.carbon.device.mgt.core.notification.mgt.dao.NotificationManagementDAOFactory;
import org.wso2.carbon.device.mgt.core.operation.mgt.dao.OperationManagementDAOFactory; import org.wso2.carbon.device.mgt.core.operation.mgt.dao.OperationManagementDAOFactory;
import org.wso2.carbon.device.mgt.core.util.DeviceManagerUtil; import org.wso2.carbon.device.mgt.core.util.DeviceManagerUtil;
import org.wso2.extension.siddhi.device.test.util.DataSourceConfig; import io.entgra.device.mgt.plugins.extension.siddhi.device.util.DataSourceConfig;
import org.wso2.extension.siddhi.device.test.util.TestUtils; import io.entgra.device.mgt.plugins.extension.siddhi.device.util.TestUtils;
import javax.sql.DataSource; import javax.sql.DataSource;
import javax.xml.bind.JAXBContext; import javax.xml.bind.JAXBContext;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.extension.siddhi.device; package io.entgra.device.mgt.plugins.extension.siddhi.device;
import org.apache.log4j.Logger; import org.apache.log4j.Logger;
import org.testng.Assert; import org.testng.Assert;
@ -46,10 +46,10 @@ import org.wso2.carbon.registry.core.service.RegistryService;
import org.wso2.carbon.user.core.UserStoreException; import org.wso2.carbon.user.core.UserStoreException;
import org.wso2.carbon.user.core.service.RealmService; import org.wso2.carbon.user.core.service.RealmService;
import org.wso2.carbon.utils.multitenancy.MultitenantConstants; import org.wso2.carbon.utils.multitenancy.MultitenantConstants;
import org.wso2.extension.siddhi.device.test.util.SiddhiTestHelper; import io.entgra.device.mgt.plugins.extension.siddhi.device.util.SiddhiTestHelper;
import org.wso2.extension.siddhi.device.test.util.TestDataHolder; import io.entgra.device.mgt.plugins.extension.siddhi.device.util.TestDataHolder;
import org.wso2.extension.siddhi.device.test.util.TestDeviceManagementService; import io.entgra.device.mgt.plugins.extension.siddhi.device.util.TestDeviceManagementService;
import org.wso2.extension.siddhi.device.utils.DeviceUtils; import io.entgra.device.mgt.plugins.extension.siddhi.device.utils.DeviceUtils;
import org.wso2.siddhi.core.ExecutionPlanRuntime; import org.wso2.siddhi.core.ExecutionPlanRuntime;
import org.wso2.siddhi.core.SiddhiManager; import org.wso2.siddhi.core.SiddhiManager;
import org.wso2.siddhi.core.event.Event; import org.wso2.siddhi.core.event.Event;

@ -15,7 +15,7 @@
* specific language governing permissions and limitations * specific language governing permissions and limitations
* under the License. * under the License.
*/ */
package org.wso2.extension.siddhi.device.test.util; package io.entgra.device.mgt.plugins.extension.siddhi.device.util;
import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlRootElement;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.extension.siddhi.device.test.util; package io.entgra.device.mgt.plugins.extension.siddhi.device.util;
import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicInteger;

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.wso2.extension.siddhi.device.test.util; package io.entgra.device.mgt.plugins.extension.siddhi.device.util;
import org.wso2.carbon.device.mgt.common.Device; import org.wso2.carbon.device.mgt.common.Device;
import org.wso2.carbon.device.mgt.common.DeviceIdentifier; import org.wso2.carbon.device.mgt.common.DeviceIdentifier;
@ -26,7 +26,6 @@ import org.wso2.carbon.device.mgt.core.dto.DeviceType;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import java.util.Properties;
public class TestDataHolder { public class TestDataHolder {

@ -15,7 +15,7 @@
* specific language governing permissions and limitations * specific language governing permissions and limitations
* under the License. * under the License.
*/ */
package org.wso2.extension.siddhi.device.test.util; package io.entgra.device.mgt.plugins.extension.siddhi.device.util;
import org.wso2.carbon.device.mgt.common.*; import org.wso2.carbon.device.mgt.common.*;
import org.wso2.carbon.device.mgt.common.exceptions.DeviceManagementException; import org.wso2.carbon.device.mgt.common.exceptions.DeviceManagementException;

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.wso2.extension.siddhi.device.test.util; package io.entgra.device.mgt.plugins.extension.siddhi.device.util;
import org.wso2.carbon.device.mgt.common.Device; import org.wso2.carbon.device.mgt.common.Device;
import org.wso2.carbon.device.mgt.common.DeviceIdentifier; import org.wso2.carbon.device.mgt.common.DeviceIdentifier;

@ -15,7 +15,7 @@
* specific language governing permissions and limitations * specific language governing permissions and limitations
* under the License. * under the License.
*/ */
package org.wso2.extension.siddhi.device.test.util; package io.entgra.device.mgt.plugins.extension.siddhi.device.util;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
@ -28,8 +28,6 @@ import java.sql.Connection;
import java.sql.ResultSet; import java.sql.ResultSet;
import java.sql.SQLException; import java.sql.SQLException;
import java.sql.Statement; import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
public class TestUtils { public class TestUtils {

@ -24,8 +24,8 @@
<test name="Extension Unit Tests" preserve-order="true"> <test name="Extension Unit Tests" preserve-order="true">
<classes> <classes>
<class name="org.wso2.extension.siddhi.device.BaseDeviceManagementTest"/> <class name="io.entgra.device.mgt.plugins.extension.siddhi.device.BaseDeviceManagementTest"/>
<class name="org.wso2.extension.siddhi.device.ExtensionTestCase"/> <class name="io.entgra.device.mgt.plugins.extension.siddhi.device.ExtensionTestCase"/>
</classes> </classes>
</test> </test>
</suite> </suite>

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.extension.siddhi.execution.json; package io.entgra.device.mgt.plugins.extension.siddhi.execution.json;
import org.json.JSONArray; import org.json.JSONArray;
import org.wso2.siddhi.core.config.ExecutionPlanContext; import org.wso2.siddhi.core.config.ExecutionPlanContext;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.extension.siddhi.execution.json; package io.entgra.device.mgt.plugins.extension.siddhi.execution.json;
import org.json.JSONException; import org.json.JSONException;
import org.json.JSONObject; import org.json.JSONObject;

@ -16,5 +16,5 @@
# under the License. # under the License.
# #
getProperty=org.wso2.extension.siddhi.execution.json.GetPropertyFunctionExtension getProperty=io.entgra.device.mgt.plugins.extension.siddhi.execution.json.GetPropertyFunctionExtension
getArray=org.wso2.extension.siddhi.execution.json.GetArrayFunctionExtension getArray=io.entgra.device.mgt.plugins.extension.siddhi.execution.json.GetArrayFunctionExtension

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.extension.siddhi.execution.json; package io.entgra.device.mgt.plugins.extension.siddhi.execution.json;
import org.apache.log4j.Logger; import org.apache.log4j.Logger;
import org.testng.Assert; import org.testng.Assert;
@ -28,7 +28,7 @@ import org.wso2.siddhi.core.event.Event;
import org.wso2.siddhi.core.query.output.callback.QueryCallback; import org.wso2.siddhi.core.query.output.callback.QueryCallback;
import org.wso2.siddhi.core.stream.input.InputHandler; import org.wso2.siddhi.core.stream.input.InputHandler;
import org.wso2.siddhi.core.util.EventPrinter; import org.wso2.siddhi.core.util.EventPrinter;
import org.wso2.extension.siddhi.execution.json.test.util.SiddhiTestHelper; import io.entgra.device.mgt.plugins.extension.siddhi.execution.json.util.SiddhiTestHelper;
import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicInteger;

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
package org.wso2.extension.siddhi.execution.json.test.util; package io.entgra.device.mgt.plugins.extension.siddhi.execution.json.util;
import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicInteger;

@ -24,7 +24,7 @@
<test name="Extension Unit Tests" preserve-order="true"> <test name="Extension Unit Tests" preserve-order="true">
<classes> <classes>
<class name="org.wso2.extension.siddhi.execution.json.ExtensionTestCase"/> <class name="io.entgra.device.mgt.plugins.extension.siddhi.execution.json.ExtensionTestCase"/>
</classes> </classes>
</test> </test>
</suite> </suite>

Loading…
Cancel
Save