refactoring

revert-70aa11f8
GDLMadushanka 7 years ago
parent f561c5d5e2
commit 122a045056

@ -30,7 +30,6 @@ import org.wso2.carbon.device.mgt.extensions.push.notification.provider.mqtt.int
import org.wso2.carbon.event.output.adapter.core.exception.OutputEventAdapterException;
import org.wso2.carbon.event.output.adapter.core.internal.CarbonOutputEventAdapterService;
import org.wso2.carbon.registry.core.exceptions.RegistryException;
import java.io.File;
import java.io.IOException;
import java.util.HashMap;
@ -85,6 +84,6 @@ public class MQTTBasedPushNotificationProviderTest {
mqttDataHolder.setOutputEventAdapterService(carbonOutputEventAdapterService);
NotificationStrategy notificationStrategy = mqttBasedPushNotificationProvider.
getNotificationStrategy(pushNotificationConfig);
Assert.assertNotNull(notificationStrategy,"null notificationStrategyReceived");
Assert.assertNotNull(notificationStrategy, "null notificationStrategyReceived");
}
}

@ -35,6 +35,7 @@ import org.wso2.carbon.event.output.adapter.core.exception.OutputEventAdapterExc
import org.wso2.carbon.event.output.adapter.core.internal.CarbonOutputEventAdapterService;
import org.wso2.carbon.registry.core.exceptions.RegistryException;
import org.wso2.carbon.device.mgt.common.operation.mgt.Operation;
import static org.wso2.carbon.device.mgt.core.operation.mgt.PolicyOperation.POLICY_OPERATION_CODE;
import java.io.File;
import java.io.IOException;
import java.lang.reflect.Field;
@ -44,9 +45,6 @@ import java.util.List;
import java.util.Map;
import java.util.Properties;
import static org.wso2.carbon.device.mgt.core.operation.mgt.PolicyOperation.POLICY_OPERATION_CODE;
/*
Unit tests for MQTTNotificationStrategy class
*/

Loading…
Cancel
Save